Notification bug when updating swarm profile
Jami version: beta 202401121232
Scenario
- Alice creates a swarm and invites Bob to join
- Bob joins the swarm and then opens another conversation (or closes Jami)
- While Bob doesn't have the swarm conversation open, Alice updates its title
Current result
Bob is notified that two new messages have been sent in the swarm.
Expected result
Bob shouldn't receive any notifications.
Cause
When a swarm's admin changes its title, the swarm's other members receive two SwarmMessage
s of type "application/update-profile"
. These messages are invisible to the user, but they cause the UI to be updated just like a regular message of type "text/plain"
would (which is the desired behavior). Thus, it seems likely that the bug is due to the different types of messages not being properly distinguished in the code that generates notifications.