always use contact chatstate when none is given

This commit is contained in:
Yann Leboulanger 2007-01-29 18:29:51 +00:00
parent dd9949fb2c
commit b971afec24
1 changed files with 2 additions and 0 deletions

View File

@ -1306,6 +1306,8 @@ class ChatControl(ChatControlBase):
# Draw tab label using chatstate
theme = gajim.config.get('roster_theme')
color = None
if not chatstate:
chatstate = self.contact.chatstate
if chatstate is not None:
if chatstate == 'composing':
color = gajim.config.get_per('themes', theme,