A subactivity of other means we have no subactivity.
This commit is contained in:
parent
90b2d8fa8d
commit
9519d1bd6a
|
@ -332,7 +332,7 @@ def user_activity(items, name, jid):
|
|||
del acc.activity['text']
|
||||
if activity is not None:
|
||||
acc.activity['activity'] = activity
|
||||
if subactivity is not None:
|
||||
if subactivity is not None and subactivity != 'other':
|
||||
acc.activity['subactivity'] = subactivity
|
||||
if text is not None:
|
||||
acc.activity['text'] = text
|
||||
|
@ -355,7 +355,7 @@ def user_activity(items, name, jid):
|
|||
del contact.activity['text']
|
||||
if activity is not None:
|
||||
contact.activity['activity'] = activity
|
||||
if subactivity is not None:
|
||||
if subactivity is not None and subactivity != 'other':
|
||||
contact.activity['subactivity'] = subactivity
|
||||
if text is not None:
|
||||
contact.activity['text'] = text
|
||||
|
|
Loading…
Reference in New Issue