Fix timestamp cache for communities

This commit is contained in:
Andrew 2024-05-21 11:27:06 +09:30
parent f114ac84bd
commit a660f45043

View File

@ -373,6 +373,7 @@ object MessageSender {
// Result Handling
private fun handleSuccessfulMessageSend(message: Message, destination: Destination, isSyncMessage: Boolean = false, openGroupSentTimestamp: Long = -1) {
if (message is VisibleMessage) MessagingModuleConfiguration.shared.lastSentTimestampCache.submitTimestamp(message.threadID!!, openGroupSentTimestamp)
val storage = MessagingModuleConfiguration.shared.storage
val userPublicKey = storage.getUserPublicKey()!!
val timestamp = message.sentTimestamp!!