From 9519d1bd6aa223b9535ba432d0c2d890f5caa217 Mon Sep 17 00:00:00 2001
From: js <js-gajim@webkeks.org>
Date: Fri, 24 Oct 2008 17:10:30 +0000
Subject: [PATCH] A subactivity of other means we have no subactivity.

---
 src/common/pep.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/common/pep.py b/src/common/pep.py
index a3b3ac48c6..38c3825613 100644
--- a/src/common/pep.py
+++ b/src/common/pep.py
@@ -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
-- 
GitLab