Fix issue where leave messages were pending forever.

fork-5.53.8
Greyson Parrelli 2020-03-30 10:11:09 -04:00
rodzic f859c5b1b5
commit 728ec1c16d
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -159,7 +159,8 @@ final class V1GroupManager {
if (threadId != -1 && leaveMessage.isPresent()) { if (threadId != -1 && leaveMessage.isPresent()) {
try { 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) { } catch (MmsException e) {
Log.w(TAG, "Failed to insert leave message.", e); Log.w(TAG, "Failed to insert leave message.", e);
} }