comparison frontends/src/quick_frontend/quick_contact_list.py @ 1955:633b5c21aefd

backend, frontend: messages refactoring (huge commit, not finished): /!\ database schema has been modified, do a backup before updating message have been refactored, here are the main changes: - languages are now handled - all messages have an uid (internal to SàT) - message updating is anticipated - subject is now first class - new naming scheme is used newMessage => messageNew, getHistory => historyGet, sendMessage => messageSend - minimal compatibility refactoring in quick_frontend/Primitivus, better refactoring should follow - threads handling - delayed messages are saved into history - info messages may also be saved in history (e.g. to keep track of people joining/leaving a room) - duplicate messages should be avoided - historyGet return messages in right order, no need to sort again - plugins have been updated to follow new features, some of them need to be reworked (e.g. OTR) - XEP-0203 (Delayed Delivery) is now fully handled in core, the plugin just handle disco and creation of a delay element - /!\ jp and Libervia are currently broken, as some features of Primitivus It has been put in one huge commit to avoid breaking messaging between changes. This is the main part of message refactoring, other commits will follow to take profit of the new features/behaviour.
author Goffi <goffi@goffi.org>
date Tue, 24 May 2016 22:11:04 +0200
parents ccfe45302a5c
children 02d21a589be2
comparison
equal deleted inserted replaced
1943:ccfe45302a5c 1955:633b5c21aefd
547 @param use_bare_jid (bool): if True, cumulate the alerts of all the resources sharing the same bare JID 547 @param use_bare_jid (bool): if True, cumulate the alerts of all the resources sharing the same bare JID
548 @param filter_(iterable, None): alert to take into account, 548 @param filter_(iterable, None): alert to take into account,
549 None to count all of them 549 None to count all of them
550 @return (list[unicode,None]): list of C.ALERT_* or None for undefined ones 550 @return (list[unicode,None]): list of C.ALERT_* or None for undefined ones
551 """ 551 """
552 return [] # FIXME: temporarily disabled
552 if not use_bare_jid: 553 if not use_bare_jid:
553 alerts = self._alerts.get(entity, []) 554 alerts = self._alerts.get(entity, [])
554 else: 555 else:
555 alerts = [] 556 alerts = []
556 for contact, contact_alerts in self._alerts: 557 for contact, contact_alerts in self._alerts: