primitivus: implement "Show offline contacts" parameter (sync with "DISCONNECTED_HIDE" action key)

This commit is contained in:
souliane 2014-10-06 12:44:58 +02:00
commit e554934f31
2 changed files with 18 additions and 6 deletions

View file

@ -556,6 +556,8 @@ class QuickApp(object):
self.profiles[profile]['whoami'] = JID(value)
elif (namespace, name) == ("Misc", "Watched"):
self.profiles[profile]['watched'] = value.split()
elif (namespace, name) == ('General', C.SHOW_OFFLINE_CONTACTS):
self.contact_list.showOfflineContacts(C.bool(value))
def contactDeletedHandler(self, jid, profile):
target = JID(jid)

View file

@ -104,3 +104,6 @@ class QuickContactList(object):
self.setCache(jid, 'prority', priority)
self.setCache(jid, 'statuses', statuses)
self.update_jid(jid)
def showOfflineContacts(self, show):
pass