Merge pull request #624 from Inhishonor/delayed-sending-icon

Fix the delayed sending icons not disappearing after hitting send
This commit is contained in:
octoshrimpy
2025-12-12 19:49:29 -05:00
committed by GitHub
5 changed files with 30 additions and 7 deletions
@@ -767,6 +767,20 @@ open class MessageRepositoryImpl @Inject constructor(
return message
}
override fun markAsSendingNow(messageId: Long) =
Realm.getDefaultInstance().use { realm ->
realm.refresh()
realm.where(Message::class.java)
.equalTo("id", messageId)
.findFirst()
?.let { message ->
realm.executeTransaction {
message.date = System.currentTimeMillis()
}
}
Unit
}
/**
* Marks the message as sending, in case we need to retry sending it
*/