diff --git a/sat_frontends/quick_frontend/quick_chat.py b/sat_frontends/quick_frontend/quick_chat.py index e3e3bf3d..19afe61a 100644 --- a/sat_frontends/quick_frontend/quick_chat.py +++ b/sat_frontends/quick_frontend/quick_chat.py @@ -89,6 +89,11 @@ class Message(object): except AttributeError: return False + @property + def history(self): + """True if message come from history""" + return self.extra.get('history', False) + @property def main_message(self): """currently displayed message""" @@ -471,6 +476,7 @@ class QuickChat(quick_widgets.QuickWidget): # if ((self.type == C.CHAT_GROUP and type_ != C.MESS_TYPE_GROUPCHAT) or # (self.type == C.CHAT_ONE2ONE and type_ == C.MESS_TYPE_GROUPCHAT)): # continue + extra['history'] = True self.messages[uid] = Message(self, uid, timestamp, from_jid, to_jid, message, subject, type_, extra, profile) self._onHistoryPrinted()