mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-01 01:02:41 +00:00
32f7a9c836
With several accounts logged in, sending a message from one of them raises a notification on every other account that shares the room. The device notifies its owner about something the owner has just done, and the more accounts share a room the more copies arrive. Resolve the set of logged-in user ids once per push batch and drop an event whose sender is one of the other accounts, using the filtered-out result the notification pipeline already understands, so it is recorded in push history rather than turned into a fallback notification. The receiving session is removed from that set, which keeps the change a strict no-op for a single account and protects the local echo that the reply action pushes back through the same path. Filtering happens at the one point that sees every kind of push, so messages, polls, call invites, ringing calls and room invites are all covered. Filtering is unconditional and has no setting; multiple accounts sit behind an experimental flag that is off by default, so nothing changes for a stock build.