-
Notifications
You must be signed in to change notification settings - Fork 1.1k
fix(widget): update local Widget Core pointer when changing core #5766
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 1 files at r1.
Reviewable status: complete! 1 of 1 LGTMs obtained
I tried these changes and it fixes the graphical issues showing duplicated friends and stops the crashing when reconnecting, however attempting to send any message to a friend after the reconnect is done and my status is back online causes a crash.
|
Now that v1.17-dev is branched from master and #5778 has been merged to it, I think to continue to work towards (working) reconnect functionality in the future, backing out #5778 on master and continuing this work on top would be reasonable, targeting master branch with the PR. v1.17-dev will have no reconnect button, but master branch and future releases can have a working reconnect button when this is finished. |
@anthonybilinski I'm against re-introducing the reconnect button for now, it's still not very useful. |
bcde006
to
0cbb379
Compare
Pushed the latest version of this PR from my local repository for potential use later, if we want to restore reconnect button functionality. This commit sequence changes the tox instance used by the Core instance, rather than replace the Core instance entirely. I advocate harsh testing before applying this PR, but naively I wouldn't expect any issues with this that couldn't already occur from having a bad connection. Personally tested using qtox normally, then reconnecting, resuming chat, and using AV features post reconnect. |
0cbb379
to
b8cd25b
Compare
@sudden6 even if it's fully working in a future release? I thought removing it was a temporary measure? |
@sudden6 Clicking a button is much easier than closing the client and signing back in manually. |
Widget carried a Core* that wasn't being updated when changing Core, this commit fixes that. Widget::addFriend would add duplicate friends when restarting a Core, so a check was added to prevent adding duplicates of friends.
Fixes #5758
This change is