Bug 458307

Summary: Possible for two chatboxes to synchronize their chat contents
Product: [Applications] NeoChat Reporter: Jan Bidler <janbidler00>
Component: GeneralAssignee: Tobias Fella <fella>
Status: RESOLVED FIXED    
Severity: normal CC: carl, james.h.graham
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Jan Bidler 2022-08-25 17:54:40 UTC
SUMMARY
The chatbox content is shared if both the main window and a detached window have the same room

- Have room A on main window
- Open room A in detached window
- Type in chatbox of main window
- Notice that what you typed magically appears in detached window

- Type in chatbox of detached window
- Notice that what you typed magically disappears once focus is lost, to match chatbox contents of main window
STEPS TO REPRODUCE
1. Have room A on main window
2. Open room A in detached window
3. Send a message in detached window
4. Type in Chatbox of main window

OBSERVED RESULT
Notice that what you typed magically appears in detached window

EXPECTED RESULT
Chatbox contents should not be synced

SOFTWARE/OS VERSIONS
Linux: Arch Linux
KDE Frameworks Version: 5.95.0
Qt Version: 5.15.5
NeoChat: self compiled flatpak

ADDITIONAL INFORMATION
Video showcasing the scenario
https://invent.kde.org/network/neochat/uploads/c2cb1f24b83cae5c50020e93ecf35ef3/2022-08-21_12-26-47.mp4
Comment 1 Jan Bidler 2022-08-25 17:55:18 UTC
Whoops, accidentally forgot to remove the copy-pasted instructions originally written in the GitLab MR.
Comment 2 James Graham 2022-10-14 17:52:40 UTC
Resolved by https://invent.kde.org/network/neochat/-/merge_requests/518