Skip to content

Commit

Permalink
Fix issue where leave messages were pending forever.
Browse files Browse the repository at this point in the history
  • Loading branch information
greyson-signal committed Mar 30, 2020
1 parent f859c5b commit 728ec1c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,8 @@ static boolean leaveGroup(@NonNull Context context, @NonNull GroupId.V1 groupId,

if (threadId != -1 && leaveMessage.isPresent()) {
try {
DatabaseFactory.getMmsDatabase(context).insertMessageOutbox(leaveMessage.get(), threadId, false, null);
long id = DatabaseFactory.getMmsDatabase(context).insertMessageOutbox(leaveMessage.get(), threadId, false, null);
DatabaseFactory.getMmsDatabase(context).markAsSent(id, true);
} catch (MmsException e) {
Log.w(TAG, "Failed to insert leave message.", e);
}
Expand Down

0 comments on commit 728ec1c

Please sign in to comment.