GNOME Bugzilla – Bug 670886
Bottom pane refreshes and destroys my state every time I receive a message.
Last modified: 2018-05-22 15:23:10 UTC
Every time I receive a new message, the bottom pane of the log viewer window (which is called “Previous Conversations” in menus, has the title “History”, and is known as “Archives” in Bugzilla) refreshes, collapsing any conversations I happened to have open. Since I am in a number of busy chat rooms, this means it is essentially impossible to copy-paste from an old conversation without signing out.
It doesn't help that it takes around three seconds to refresh each time. I even have an SSD!
When a new message is received/send, log_window_chats_get_messages() is called. This function clear all the messages currently displayed and re-load them. Ideally before calling this function we should save the state of the different expanders and restore it afterward. Danni: IIRC you're the one who wrote the html/js code; is there a way to do that?
(In reply to comment #2) > When a new message is received/send, log_window_chats_get_messages() is called. > This function clear all the messages currently displayed and re-load them. > > Ideally before calling this function we should save the state of the different > expanders and restore it afterward. No… ideally, the new message would just be appended to the existing view. Why would you reload all the existing messages?
The HTML/JS code just connects to the model signals, and does whatever the model does. So if you don't clear the model, then things should work well. (I think)
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/empathy/issues/506.