mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-28 20:45:17 +00:00
Clear messages if user is kicked
This commit is contained in:
parent
2b0e8a966a
commit
83189ce717
@ -813,6 +813,13 @@ class GroupManagerV2Impl @Inject constructor(
|
||||
)
|
||||
}
|
||||
|
||||
// Clear all messages we have from the group
|
||||
val threadId = storage.getThreadId(Address.fromSerialized(groupId.hexString))
|
||||
if (threadId != null) {
|
||||
storage.clearMessages(threadId)
|
||||
}
|
||||
|
||||
// Insert a message to indicate we were kicked
|
||||
storage.insertIncomingInfoMessage(
|
||||
context = application,
|
||||
senderPublicKey = userId,
|
||||
|
Loading…
Reference in New Issue
Block a user