Use psi bug workaround less often, so we never see "/me changed topic" anymore, clarify comment
about why we do that. Fixes #2636.
This commit is contained in:
parent
213cfba438
commit
aff110a047
12
src/gajim.py
12
src/gajim.py
|
@ -928,13 +928,15 @@ class Interface:
|
||||||
if not gc_control:
|
if not gc_control:
|
||||||
return
|
return
|
||||||
gc_control.set_subject(array[1])
|
gc_control.set_subject(array[1])
|
||||||
# We can receive a subject with a body that contains "X has set the subject to Y" ...
|
# Standard way, the message comes from the occupant who set the subject
|
||||||
if array[2]:
|
if len(jids) > 1:
|
||||||
gc_control.print_conversation(array[2])
|
|
||||||
# ... Or the message comes from the occupant who set the subject
|
|
||||||
elif len(jids) > 1:
|
|
||||||
gc_control.print_conversation('%s has set the subject to %s' % (
|
gc_control.print_conversation('%s has set the subject to %s' % (
|
||||||
jids[1], array[1]))
|
jids[1], array[1]))
|
||||||
|
# Workaround for psi bug http://flyspray.psi-im.org/task/595 , to be
|
||||||
|
# deleted one day. We can receive a subject with a body that contains
|
||||||
|
# "X has set the subject to Y" ...
|
||||||
|
elif array[2]:
|
||||||
|
gc_control.print_conversation(array[2])
|
||||||
|
|
||||||
def handle_event_gc_config(self, account, array):
|
def handle_event_gc_config(self, account, array):
|
||||||
#('GC_CONFIG', account, (jid, config)) config is a dict
|
#('GC_CONFIG', account, (jid, config)) config is a dict
|
||||||
|
|
Loading…
Reference in New Issue