Group message deletion

This commit is contained in:
SessionHero01
2024-10-25 17:14:12 +11:00
parent 86a9e07f31
commit ea714a60a2
7 changed files with 102 additions and 66 deletions

View File

@@ -2,7 +2,11 @@ package org.session.libsession.database
data class ServerHashToMessageId(
val serverHash: String,
/**
* This will only be the "sender" when the message is incoming.
*/
val sender: String,
val messageId: Long,
val isSms: Boolean,
val isOutgoing: Boolean,
)

View File

@@ -80,7 +80,7 @@ interface GroupManagerV2 {
* It can be called by a regular member who wishes to delete their own messages.
* It can also called by an admin, who can delete any messages from any member.
*/
suspend fun requestMessageDeletion(groupId: AccountId, messageHashes: List<String>)
suspend fun requestMessageDeletion(groupId: AccountId, messageHashes: Set<String>)
/**
* Handle a request to delete a member's content from the group. This is called when we receive