kopia lustrzana https://github.com/ryukoposting/Signal-Android
Fix timing issue with receipt updates.
rodzic
b9ce38b85b
commit
7f4ab67f98
|
@ -456,14 +456,17 @@ public class MmsSmsDatabase extends Database {
|
||||||
|
|
||||||
for (MessageUpdate update : messageUpdates) {
|
for (MessageUpdate update : messageUpdates) {
|
||||||
threadDatabase.updateSilently(update.getThreadId(), false);
|
threadDatabase.updateSilently(update.getThreadId(), false);
|
||||||
ApplicationDependencies.getDatabaseObserver().notifyMessageUpdateObservers(update.getMessageId());
|
|
||||||
ApplicationDependencies.getDatabaseObserver().notifyVerboseConversationListeners(Collections.singleton(update.getThreadId()));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
db.setTransactionSuccessful();
|
db.setTransactionSuccessful();
|
||||||
} finally {
|
} finally {
|
||||||
db.endTransaction();
|
db.endTransaction();
|
||||||
|
|
||||||
|
for (MessageUpdate update : messageUpdates) {
|
||||||
|
ApplicationDependencies.getDatabaseObserver().notifyMessageUpdateObservers(update.getMessageId());
|
||||||
|
ApplicationDependencies.getDatabaseObserver().notifyVerboseConversationListeners(Collections.singleton(update.getThreadId()));
|
||||||
|
}
|
||||||
|
|
||||||
if (messageUpdates.size() > 0) {
|
if (messageUpdates.size() > 0) {
|
||||||
notifyConversationListListeners();
|
notifyConversationListListeners();
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue