wip: trying to track down failure to mark conversation as read in delayed group add

This commit is contained in:
0x330a
2023-06-27 12:42:48 +10:00
parent eb173d72e0
commit dd001640a4
5 changed files with 10 additions and 9 deletions

View File

@@ -194,7 +194,7 @@ interface StorageProtocol {
* Returns the ID of the `TSIncomingMessage` that was constructed.
*/
fun persist(message: VisibleMessage, quotes: QuoteModel?, linkPreview: List<LinkPreview?>, groupPublicKey: String?, openGroupID: String?, attachments: List<Attachment>, runThreadUpdate: Boolean): Long?
fun markConversationAsRead(threadId: Long, lastSeenTime: Long)
fun markConversationAsRead(threadId: Long, lastSeenTime: Long, force: Boolean = false)
fun getLastSeen(threadId: Long): Long
fun updateThread(threadId: Long, unarchive: Boolean)
fun insertDataExtractionNotificationMessage(senderPublicKey: String, message: DataExtractionNotificationInfoMessage, sentTimestamp: Long)

View File

@@ -28,6 +28,7 @@ class BackgroundGroupAddJob(val joinUrl: String): Job {
}
override suspend fun execute(dispatcherName: String) {
Log.d("Loki-DBG", "adding group $joinUrl")
try {
val openGroup = OpenGroupUrlParser.parseUrl(joinUrl)
val storage = MessagingModuleConfiguration.shared.storage