Do not notify call observers if data has not changed.

This commit is contained in:
Alex Hart
2025-03-10 15:09:31 -03:00
committed by Greyson Parrelli
parent f2950e279b
commit 7191a40aba

View File

@@ -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!")
}