fixed bug with history loading and qtox screenshots autoaccept

This commit is contained in:
ingvar1995 2018-09-15 22:29:30 +03:00
parent 3582722faa
commit 1fa13db4e4
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ ALLOWED_FILES = ('toxygen_inline.png', 'utox-inline.png', 'sticker.png')
def is_inline(file_name):
return file_name in ALLOWED_FILES or file_name.startswith('qTox_Screenshot_')
return file_name in ALLOWED_FILES or file_name.startswith('qTox_Screenshot_') or file_name.startswith('qTox_Image_')
class StateSignal(QtCore.QObject):

View File

@ -567,7 +567,7 @@ class Profile(basecontact.BaseContact, Singleton):
data.reverse()
data = data[self._messages.count():self._messages.count() + PAGE_SIZE]
for message in data:
if message.get_type() <= 1: # text message
if message.get_type() <= 1 or message.get_type() >= 5: # text message
data = message.get_data()
self.create_message_item(data[0],
data[2],