offline messages part 1
This commit is contained in:
parent
453b5e25be
commit
42617c8816
4 changed files with 38 additions and 4 deletions
|
|
@ -110,6 +110,7 @@ def friend_status_message(tox, friend_num, status_message, size, user_data):
|
|||
friend = profile.get_friend_by_number(friend_num)
|
||||
invoke_in_main_thread(friend.set_status_message, status_message)
|
||||
print 'User #{} has new status: {}'.format(friend_num, status_message)
|
||||
profile.send_messages(friend_num)
|
||||
if profile.get_active_number() == friend_num:
|
||||
invoke_in_main_thread(profile.set_active)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue