Better determine when we fully joined a muc
This commit is contained in:
parent
b049746418
commit
e8c5ad64a7
|
@ -370,7 +370,6 @@ class GroupchatControl(ChatControlBase):
|
||||||
|
|
||||||
# sorted list of nicks who mentioned us (last at the end)
|
# sorted list of nicks who mentioned us (last at the end)
|
||||||
self.attention_list = []
|
self.attention_list = []
|
||||||
self.room_creation = int(time.time()) # Use int to reduce mem usage
|
|
||||||
self.nick_hits = []
|
self.nick_hits = []
|
||||||
self.last_key_tabs = False
|
self.last_key_tabs = False
|
||||||
|
|
||||||
|
@ -2056,7 +2055,7 @@ class GroupchatControl(ChatControlBase):
|
||||||
gc_c.affiliation = affiliation
|
gc_c.affiliation = affiliation
|
||||||
gc_c.status = obj.status
|
gc_c.status = obj.status
|
||||||
self.draw_contact(obj.nick)
|
self.draw_contact(obj.nick)
|
||||||
if (time.time() - self.room_creation) > 30 and obj.nick != self.nick \
|
if self.is_connected and obj.nick != self.nick \
|
||||||
and (not obj.status_code or '303' not in obj.status_code) and not \
|
and (not obj.status_code or '303' not in obj.status_code) and not \
|
||||||
right_changed:
|
right_changed:
|
||||||
st = ''
|
st = ''
|
||||||
|
|
Loading…
Reference in New Issue