Skip to content
Commit 13499792 authored by Florian Müllner's avatar Florian Müllner
Browse files

chatView: Improve handling of initial pending messages

When a room has pending messages when we join, we currently
simply insert them into the log. While simple, there are
two issues with that approach:

 - we will always display the nick for the first pending
   message, so grouping will be wrong if the last message
   from the logs was from the same nick
 - if the message was already seen by the logger, we will
   duplicate it in the chat log (e.g. when mission-control
   restarts us after a crash)

Address those issues by caching pending messages and only
inserting them with the first batch of (de-duplicated) logs
instead of immediately.

https://bugzilla.gnome.org/show_bug.cgi?id=768907
parent 2ed8ad3a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment