feat(manager/social): chat purge

This commit is contained in:
rhunk
2023-10-15 00:30:31 +02:00
parent a38e96906d
commit c533983fb3
4 changed files with 200 additions and 16 deletions

View File

@ -28,6 +28,7 @@ class CoreMessagingBridge(
private val context: ModContext
) : MessagingBridge.Stub() {
private val conversationManager get() = context.feature(Messaging::class).conversationManager
override fun getMyUserId() = context.database.myUserId
override fun fetchMessage(conversationId: String, clientMessageId: String): Message? {
return runBlocking {
@ -116,7 +117,7 @@ class CoreMessagingBridge(
override fun updateMessage(
conversationId: String,
clientMessageId: String,
clientMessageId: Long,
messageUpdate: String
): String? {
return runBlocking {