show all incoming chatstate, even if we send only composing.
This commit is contained in:
parent
ab9b5a3210
commit
a3a91eada6
|
@ -1042,9 +1042,9 @@ class ChatControl(ChatControlBase):
|
|||
if cs and st in ('composing_only', 'all'):
|
||||
if contact.show == 'offline':
|
||||
chatstate = ''
|
||||
elif st == 'all' and contact.composing_jep == 'JEP-0085':
|
||||
elif contact.composing_jep == 'JEP-0085':
|
||||
chatstate = helpers.get_uf_chatstate(cs)
|
||||
elif st == 'composing_only' or contact.composing_jep == 'JEP-0022':
|
||||
elif contact.composing_jep == 'JEP-0022':
|
||||
if cs in ('composing', 'paused'):
|
||||
# only print composing, paused
|
||||
chatstate = helpers.get_uf_chatstate(cs)
|
||||
|
@ -1054,14 +1054,14 @@ class ChatControl(ChatControlBase):
|
|||
chatstate = helpers.get_uf_chatstate(cs)
|
||||
|
||||
label_text = '<span %s>%s</span><span %s>%s %s</span>' % \
|
||||
(font_attrs, name, font_attrs_small, acct_info, chatstate)
|
||||
(font_attrs, name, font_attrs_small, acct_info, chatstate)
|
||||
else:
|
||||
# weight="heavy" size="x-large"
|
||||
label_text = '<span %s>%s</span><span %s>%s</span>' % \
|
||||
(font_attrs, name, font_attrs_small, acct_info)
|
||||
(font_attrs, name, font_attrs_small, acct_info)
|
||||
if status_escaped:
|
||||
label_text += '\n<span %s>%s</span>' %\
|
||||
(font_attrs_small, status_escaped)
|
||||
(font_attrs_small, status_escaped)
|
||||
banner_eventbox = self.xml.get_widget('banner_eventbox')
|
||||
self.status_tooltip.set_tip(banner_eventbox, status)
|
||||
self.status_tooltip.enable()
|
||||
|
|
Loading…
Reference in New Issue