From 7191a40abaa73ade5380e26ad295fb7ad39b4b5f Mon Sep 17 00:00:00 2001 From: Alex Hart Date: Mon, 10 Mar 2025 15:09:31 -0300 Subject: [PATCH] Do not notify call observers if data has not changed. --- .../java/org/thoughtcrime/securesms/database/CallTable.kt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/org/thoughtcrime/securesms/database/CallTable.kt b/app/src/main/java/org/thoughtcrime/securesms/database/CallTable.kt index 41413ea87d..03b4075e1d 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/database/CallTable.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/database/CallTable.kt @@ -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!") }