Skip to content

Commit

Permalink
Merge pull request #351 from RyanRory/SSK-leave-group-fix
Browse files Browse the repository at this point in the history
Fix SSK Closed Group Leaving Issue
  • Loading branch information
nielsandriesse authored Sep 23, 2020
2 parents cf4a10c + 308dafc commit 4104107
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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> {
Expand Down

0 comments on commit 4104107

Please sign in to comment.