Skip to content
Snippets Groups Projects
Commit 16bc64e7 authored by nkour's avatar nkour
Browse files

[jim++] print status change iwth no status message when we log status changes. fixes #1635

parent 91691221
No related branches found
No related tags found
No related merge requests found
......@@ -208,7 +208,8 @@ def add_lines_for_date(self, year, month, day):
def add_new_line(self, contact_name, tim, kind, show, message):
'''add a new line in textbuffer'''
if not message: # None or ''
if not message and kind not in (constants.KIND_STATUS,
constants.KIND_GCSTATUS):
return
buf = self.history_buffer
end_iter = buf.get_end_iter()
......@@ -236,7 +237,8 @@ def add_new_line(self, contact_name, tim, kind, show, message):
if kind == constants.KIND_GC_MSG:
tag_name = 'incoming'
elif kind in (constants.KIND_SINGLE_MSG_RECV, constants.KIND_CHAT_MSG_RECV):
elif kind in (constants.KIND_SINGLE_MSG_RECV,
constants.KIND_CHAT_MSG_RECV):
contact = gajim.contacts.get_first_contact_from_jid(self.account,
self.jid)
if contact:
......@@ -253,7 +255,8 @@ def add_new_line(self, contact_name, tim, kind, show, message):
else:
contact_name = self.jid.split('@')[0]
tag_name = 'incoming'
elif kind in (constants.KIND_SINGLE_MSG_SENT, constants.KIND_CHAT_MSG_SENT):
elif kind in (constants.KIND_SINGLE_MSG_SENT,
constants.KIND_CHAT_MSG_SENT):
contact_name = gajim.nicks[self.account]
tag_name = 'outgoing'
elif kind == constants.KIND_GCSTATUS:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment