buffer: Don't print out our leave event if we're rejoining.

This commit is contained in:
Damir Jelić 2018-08-26 20:52:18 +02:00
parent 084cb1985e
commit cca6464cc7

View file

@ -1224,7 +1224,10 @@ class RoomBuffer(object):
break
if leave_index:
timeline_events = info.timeline.events[leave_index:]
timeline_events = info.timeline.events[leave_index+1:]
# Handle our leave as a state event since we're not in the
# nicklist anymore but we're already printed out our leave
self.handle_state_event(info.timeline.events[leave_index])
else:
timeline_events = info.timeline.events