Fixed bug with sending faux offline inlines

This commit is contained in:
ingvar1995 2020-03-14 15:33:57 +03:00
parent a984b624b5
commit 1554d9e53a
2 changed files with 5 additions and 4 deletions

View File

@ -1099,10 +1099,11 @@ class Profile(basecontact.BaseContact, Singleton):
file_name,
friend.number,
st.get_file_number())
item = self.create_file_transfer_item(tm)
friend.append_message(tm)
st.set_state_changed_handler(item.update_transfer_state)
self._messages.scrollToBottom()
if friend_number == self.get_active_number():
item = self.create_file_transfer_item(tm)
st.set_state_changed_handler(item.update_transfer_state)
self._messages.scrollToBottom()
def send_file(self, path, number=None, is_resend=False, file_id=None):
"""

View File

@ -5,7 +5,7 @@ import sys
import re
program_version = '0.4.2'
program_version = '0.4.3'
def cached(func):