get_um_for_contact => get_unread_msgs_for_jid because um is too vague and for_contact lies about expecting contact instance

This commit is contained in:
Nikos Kouremenos 2006-04-10 23:06:11 +00:00
parent 5c3b2ff2e8
commit 86326d849d
2 changed files with 2 additions and 2 deletions

View File

@ -228,7 +228,7 @@ class Logger:
except sqlite.OperationalError, e:
print >> sys.stderr, str(e)
def get_um_for_contact(self, jid):
def get_unread_msgs_for_jid(self, jid):
''' get unread messages for jid '''
if not jid:
return

View File

@ -888,7 +888,7 @@ class RosterWindow:
def add_account_contacts(self, account):
for jid in gajim.contacts.get_jid_list(account):
self.add_contact_to_roster(jid, account)
results = gajim.logger.get_um_for_contact(jid)
results = gajim.logger.get_unread_msgs_for_jid(jid)
for result in results:
tim = time.localtime(float(result[2]))
self.on_message(jid, result[1], tim, account, msg_type= 'chat', msg_id=result[0])