mirror of
https://github.com/oxen-io/session-android.git
synced 2025-06-20 20:38:28 +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) {
|
override fun removeAllClosedGroupRatchets(groupPublicKey: String) {
|
||||||
val database = databaseHelper.writableDatabase
|
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> {
|
override fun getAllClosedGroupSenderKeys(groupPublicKey: String): Set<ClosedGroupSenderKey> {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user