Skip to content

Commit

Permalink
Remove crash for group remap updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
greyson-signal committed Feb 16, 2023
1 parent 23d0152 commit ce4e84a
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -237,13 +237,13 @@ class GroupTable(context: Context?, databaseHelper: SignalDatabase?) : DatabaseT
}

if (updateCount > 0) {
getGroup(groupId)
Log.i(TAG, "Successfully updated $updateCount rows. GroupId: $groupId, Remaps: $remaps", true)
} else {
throw IllegalStateException("Failed to update group with remapped recipients!")
Log.w(TAG, "Failed to update any rows. GroupId: $groupId, Remaps: $remaps", true)
}
} else {
getGroup(cursor)
}

getGroup(cursor)
} else {
Optional.empty()
}
Expand Down

0 comments on commit ce4e84a

Please sign in to comment.