Skip to content

Reduce OMEMO noise#2113

Merged
jubalh merged 3 commits intomasterfrom
omemo-noise
Mar 19, 2026
Merged

Reduce OMEMO noise#2113
jubalh merged 3 commits intomasterfrom
omemo-noise

Conversation

@jubalh
Copy link
Copy Markdown
Member

@jubalh jubalh commented Mar 18, 2026

This PR improves upon #2104

The messages in that PR were not polished enough. Too much noise was generated.

  • Only show Can't find a OMEMO device id for my@jid.org once per context
  • Reduce noise at /omemo start
  • Properly notify about New OMEMO device by comparing to state on disk

Ref: a26cdf3

jubalh added 3 commits March 18, 2026 21:48
When sending OMEMO messages, we print a warning message for every
participant without a device ID on every single send:

```
Can't find a OMEMO device id for my@jid.org
```

This clutters the UI due to the high volume of repetitive information.

This is solved by tracking suppressed warnings within the window
structure. A warning for a specific JID and type is only shown once
per window context.

Suppression state is stored in the base ProfWin structure and managed
via helper functions (win_warn_needed, win_warn_sent). The state is
lazily initialized to save resources and automatically cleaned up when
the window is closed.

Warnings are explicitly reset when an OMEMO session is started or
ended to ensure users see fresh alerts when toggling encryption.
Removing the UI notification in omemo_start_device_session to reduce
noise during /omemo start.
The information is still available in the debug logs.

And I think for existing sessions its just too much without value.

Ref: b20e3f1
Modify omemo_set_device_list to check against the persistent
known_devices.txt file before notifying the user. This prevents
false-positive security alerts on every restart for devices
that have already been registered and trusted.

Check against the persistent known_devices.txt file before notifying
the user. This ensures that "New OMEMO device" alerts are only shown
for devices that are truly new to this client.

Ref: ce9b514
@jubalh jubalh added this to the next milestone Mar 18, 2026
@jubalh jubalh self-assigned this Mar 18, 2026
@jubalh jubalh merged commit 1f146d1 into master Mar 19, 2026
7 checks passed
@jubalh jubalh deleted the omemo-noise branch March 19, 2026 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant