Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnaël Verrier <elghinn@free.fr>2009-07-07 17:14:56 +0400
committerAnaël Verrier <elghinn@free.fr>2009-07-07 17:14:56 +0400
commit5e2d6efd0b8f2e0b6a7d21a52e7492de6f59626c (patch)
tree3a852ddfdc4905bc9806c63d02bd9b6e1aff8b21
parent23394732c2ea099b5f90cc096b70a1c9a7c9e083 (diff)
* fixed a bug when we remove a contact from our contact list (before we did not remove contact from roster_group table)
-rw-r--r--src/common/logger.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/logger.py b/src/common/logger.py
index be4840a97..fc5913b15 100644
--- a/src/common/logger.py
+++ b/src/common/logger.py
@@ -858,6 +858,8 @@ class Logger:
jid_id = self.get_jid_id(jid)
except exceptions.PysqliteOperationalError, e:
raise exceptions.PysqliteOperationalError(str(e))
+ sql = 'DELETE FROM roster_group WHERE account_jid_id=%d AND jid_id=%d' % (account_jid_id, jid_id)
+ self.cur.execute(sql)
sql = 'DELETE FROM roster_entry WHERE account_jid_id=%d AND jid_id=%d' % (account_jid_id, jid_id)
self.simple_commit(sql)