kopia lustrzana https://github.com/ryukoposting/Signal-Android
Fix issue where leave messages were pending forever.
rodzic
f859c5b1b5
commit
728ec1c16d
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue