mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-25 12:17:22 +00:00
Do not notify call observers if data has not changed.
This commit is contained in:
committed by
Greyson Parrelli
parent
f2950e279b
commit
7191a40aba
@@ -828,9 +828,11 @@ class CallTable(context: Context, databaseHelper: SignalDatabase) : DatabaseTabl
|
||||
)
|
||||
|
||||
if (call != null) {
|
||||
Log.d(TAG, "Updating call database record.")
|
||||
updateGroupCallState(call, peekJoinedUuids)
|
||||
AppDependencies.databaseObserver.notifyCallUpdateObservers()
|
||||
Log.d(TAG, "Updating call database record for call $callId.")
|
||||
if (updateGroupCallState(call, peekJoinedUuids)) {
|
||||
Log.d(TAG, "Change detected for call $callId, notifying update observers.")
|
||||
AppDependencies.databaseObserver.notifyCallUpdateObservers()
|
||||
}
|
||||
} else {
|
||||
Log.d(TAG, "No call database record to update!")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user