chat history export
This commit is contained in:
parent
52e6ace847
commit
9516723c7f
4 changed files with 51 additions and 8 deletions
|
@ -65,6 +65,14 @@ class Friend(contact.Contact):
|
|||
self._corr = data + self._corr
|
||||
self._history_loaded = True
|
||||
|
||||
def load_all_corr(self):
|
||||
data = list(self._message_getter.get_all())
|
||||
if data is not None and len(data):
|
||||
data.reverse()
|
||||
data = list(map(lambda tupl: TextMessage(*tupl), data))
|
||||
self._corr = data + self._corr
|
||||
self._history_loaded = True
|
||||
|
||||
def get_corr_for_saving(self):
|
||||
"""
|
||||
Get data to save in db
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue