mirror of
https://github.com/oxen-io/session-android.git
synced 2025-01-12 05:53:38 +00:00
remove the ratchet for only the group that the use left
This commit is contained in:
parent
cf4a10cea8
commit
308dafcdc4
@ -58,7 +58,8 @@ class SharedSenderKeysDatabase(context: Context, helper: SQLCipherOpenHelper) :
|
||||
|
||||
override fun removeAllClosedGroupRatchets(groupPublicKey: String) {
|
||||
val database = databaseHelper.writableDatabase
|
||||
database.delete(closedGroupRatchetTable, null, null)
|
||||
val query = "${Companion.closedGroupPublicKey} = ?"
|
||||
database.delete(closedGroupRatchetTable, query, arrayOf( groupPublicKey ))
|
||||
}
|
||||
|
||||
override fun getAllClosedGroupSenderKeys(groupPublicKey: String): Set<ClosedGroupSenderKey> {
|
||||
|
Loading…
x
Reference in New Issue
Block a user