mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-25 02:55:23 +00:00
feat: update libsession-util, adjust docs, update mms and sms to use message sent timestamp instead of -1 for last read in the thread
This commit is contained in:
parent
dcbe548891
commit
cf171fc371
@ -739,7 +739,7 @@ class MmsDatabase(context: Context, databaseHelper: SQLCipherOpenHelper) : Messa
|
||||
)
|
||||
}
|
||||
with (get(context).threadDatabase()) {
|
||||
setLastSeen(threadId)
|
||||
setLastSeen(threadId, message.sentTimeMillis)
|
||||
setHasSent(threadId, true)
|
||||
if (runThreadUpdate) {
|
||||
update(threadId, true, true)
|
||||
|
@ -564,7 +564,7 @@ public class SmsDatabase extends MessagingDatabase {
|
||||
if (runThreadUpdate) {
|
||||
DatabaseComponent.get(context).threadDatabase().update(threadId, true, true);
|
||||
}
|
||||
DatabaseComponent.get(context).threadDatabase().setLastSeen(threadId);
|
||||
DatabaseComponent.get(context).threadDatabase().setLastSeen(threadId, message.getSentTimestampMillis());
|
||||
|
||||
DatabaseComponent.get(context).threadDatabase().setHasSent(threadId, true);
|
||||
|
||||
|
@ -514,9 +514,7 @@ open class Storage(context: Context, helper: SQLCipherOpenHelper, private val co
|
||||
|
||||
toDeleteClosedGroups.forEach { deleteGroup ->
|
||||
val threadId = getThreadId(deleteGroup.encodedId)
|
||||
if (threadId == null) {
|
||||
Log.w("Loki-DBG", "Existing group had no thread to delete")
|
||||
} else {
|
||||
if (threadId != null) {
|
||||
Log.d("Loki-DBG", "Deleting group for thread $threadId")
|
||||
ClosedGroupManager.silentlyRemoveGroup(context,threadId,GroupUtil.doubleDecodeGroupId(deleteGroup.encodedId), deleteGroup.encodedId, localUserPublicKey, delete = true)
|
||||
}
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit 2c18eced69f464ed96aa5bb6ec7c4c6f815e17fe
|
||||
Subproject commit 97084c69f86e67c675095b48efacc86113ccebb0
|
@ -154,7 +154,6 @@ class Poller(private val configFactory: ConfigFactoryProtocol, debounceTimer: Ti
|
||||
Log.w("Loki-DBG", "shared config message handled in configs wasn't SharedConfigurationMessage but was ${message.javaClass.simpleName}")
|
||||
return@forEach
|
||||
}
|
||||
Log.d("Loki-DBG", "Merging config of kind ${message.kind} into ${forConfigObject.javaClass.simpleName}")
|
||||
forConfigObject.merge(hash!! to message.data)
|
||||
} catch (e: Exception) {
|
||||
Log.e("Loki", e)
|
||||
|
Loading…
Reference in New Issue
Block a user