buffer: Don't print out our leave event if we're rejoining.
This commit is contained in:
parent
084cb1985e
commit
cca6464cc7
1 changed files with 4 additions and 1 deletions
|
@ -1224,7 +1224,10 @@ class RoomBuffer(object):
|
||||||
break
|
break
|
||||||
|
|
||||||
if leave_index:
|
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:
|
else:
|
||||||
timeline_events = info.timeline.events
|
timeline_events = info.timeline.events
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue