improve and add comments to make code more readable
This commit is contained in:
parent
f1b8cc1246
commit
947c7c59c4
|
@ -504,6 +504,9 @@ class GroupchatWindow(chat.Chat):
|
||||||
self.subject_tooltip[room_jid].set_tip(event_box, subject)
|
self.subject_tooltip[room_jid].set_tip(event_box, subject)
|
||||||
|
|
||||||
def get_specific_unread(self, room_jid):
|
def get_specific_unread(self, room_jid):
|
||||||
|
# returns the number of the number of unread msgs
|
||||||
|
# for room_jid & number of unread private msgs with each contact
|
||||||
|
# that we have
|
||||||
nb = 0
|
nb = 0
|
||||||
for nick in self.get_nick_list(room_jid):
|
for nick in self.get_nick_list(room_jid):
|
||||||
fjid = room_jid + '/' + nick
|
fjid = room_jid + '/' + nick
|
||||||
|
|
|
@ -271,7 +271,9 @@ class TabbedChatWindow(chat.Chat):
|
||||||
self.paint_banner(jid)
|
self.paint_banner(jid)
|
||||||
|
|
||||||
def get_specific_unread(self, jid):
|
def get_specific_unread(self, jid):
|
||||||
# return the number of unread for contacts in the room when gc, 0 in tc
|
# return the number of unread (private) msgs with contacts in the room
|
||||||
|
# when gc, and that is 0 in tc
|
||||||
|
# FIXME: maybe refactor so this func is not called at all if TC?
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
def show_avatar(self, jid, resource):
|
def show_avatar(self, jid, resource):
|
||||||
|
|
Loading…
Reference in New Issue