* fixed a bug when we remove a contact from our contact list (before we did not remove contact from roster_group table)

This commit is contained in:
Anaël Verrier 2009-07-07 15:14:56 +02:00
parent 23394732c2
commit 5e2d6efd0b
1 changed files with 2 additions and 0 deletions

View File

@ -858,6 +858,8 @@ class Logger:
jid_id = self.get_jid_id(jid) jid_id = self.get_jid_id(jid)
except exceptions.PysqliteOperationalError, e: except exceptions.PysqliteOperationalError, e:
raise exceptions.PysqliteOperationalError(str(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) sql = 'DELETE FROM roster_entry WHERE account_jid_id=%d AND jid_id=%d' % (account_jid_id, jid_id)
self.simple_commit(sql) self.simple_commit(sql)