From 1fa13db4e4343c60d66d78642c82b60eace067e6 Mon Sep 17 00:00:00 2001 From: ingvar1995 Date: Sat, 15 Sep 2018 22:29:30 +0300 Subject: [PATCH] fixed bug with history loading and qtox screenshots autoaccept --- toxygen/file_transfers.py | 2 +- toxygen/profile.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/toxygen/file_transfers.py b/toxygen/file_transfers.py index 7e0b193..1bbabe5 100644 --- a/toxygen/file_transfers.py +++ b/toxygen/file_transfers.py @@ -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): diff --git a/toxygen/profile.py b/toxygen/profile.py index ec5b545..ab73b69 100644 --- a/toxygen/profile.py +++ b/toxygen/profile.py @@ -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],