always use contact chatstate when none is given
This commit is contained in:
parent
dd9949fb2c
commit
b971afec24
|
@ -1306,6 +1306,8 @@ class ChatControl(ChatControlBase):
|
||||||
# Draw tab label using chatstate
|
# Draw tab label using chatstate
|
||||||
theme = gajim.config.get('roster_theme')
|
theme = gajim.config.get('roster_theme')
|
||||||
color = None
|
color = None
|
||||||
|
if not chatstate:
|
||||||
|
chatstate = self.contact.chatstate
|
||||||
if chatstate is not None:
|
if chatstate is not None:
|
||||||
if chatstate == 'composing':
|
if chatstate == 'composing':
|
||||||
color = gajim.config.get_per('themes', theme,
|
color = gajim.config.get_per('themes', theme,
|
||||||
|
|
Loading…
Reference in New Issue