Mercurial > libervia-backend
comparison sat_frontends/quick_frontend/quick_chat.py @ 3078:95c94d94872d
quick frontend(chat): store filters used with initial historyGet
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 18 Nov 2019 22:34:13 +0100 |
parents | 1370323e8f6c |
children | ab7e8ade848a |
comparison
equal
deleted
inserted
replaced
3077:ab8be8f1c92d | 3078:95c94d94872d |
---|---|
614 else: | 614 else: |
615 # groupchat | 615 # groupchat |
616 target = self.target.bare | 616 target = self.target.bare |
617 # FIXME: info not handled correctly | 617 # FIXME: info not handled correctly |
618 filters["types"] = C.MESS_TYPE_GROUPCHAT | 618 filters["types"] = C.MESS_TYPE_GROUPCHAT |
619 | |
620 self.history_filters = filters | |
619 | 621 |
620 def _historyGetCb(history): | 622 def _historyGetCb(history): |
621 # day_format = "%A, %d %b %Y" # to display the day change | 623 # day_format = "%A, %d %b %Y" # to display the day change |
622 # previous_day = datetime.now().strftime(day_format) | 624 # previous_day = datetime.now().strftime(day_format) |
623 # message_day = datetime.fromtimestamp(timestamp).strftime(self.day_format) | 625 # message_day = datetime.fromtimestamp(timestamp).strftime(self.day_format) |