Arseniy Lartsev
23c8b812a1
Implement sending images
2020-05-16 00:16:06 +02:00
Arseniy Lartsev
f2574aa4e7
Use requested group when adding contacts
2020-05-13 12:31:03 +02:00
Arseniy Lartsev
c9749a5ae6
Removed unused functions
2020-05-13 11:40:19 +02:00
Eion Robb
d01e1add9e
Fix printf macros for win32
2020-05-13 11:35:26 +02:00
Arseniy Lartsev
07ab43b170
Use user ID for libpurple user name, instead of phone number
2020-05-13 11:21:19 +02:00
Arseniy Lartsev
09951ef8b8
Receive and show stickers as clickable links
2020-05-12 10:57:32 +02:00
Arseniy Lartsev
42f2441764
Show list of members in basic groups
2020-05-11 19:44:46 +02:00
Arseniy Lartsev
8cda4074b9
Support sending messages to group chats
2020-05-10 14:24:15 +02:00
Arseniy Lartsev
75a1f01358
Implemented receiving group chat messages
2020-05-09 18:58:04 +02:00
Arseniy Lartsev
2e998560e3
Create libpurple chats for group chats at login
2020-05-09 15:13:49 +02:00
Arseniy Lartsev
e9390f91fd
Create libpurple chats if we get added to groups while online
2020-05-09 14:53:48 +02:00
Arseniy Lartsev
7b85148cda
More straightforward handling of updateNewChat
...
Add libpurple buddies as soon as updateNewChat has arrived and phone
number is known, regardles of whether it happens at login or later while
online.
2020-05-08 19:50:55 +02:00
Arseniy Lartsev
b76219c12d
Added support for receiving photos (kind of)
...
Pidgin shows them as clickable URLs, and on my systems, opens them with
konqueror of all things. But guess that's good enough.
2020-05-08 17:01:12 +02:00
Arseniy Lartsev
c234b8e494
Aded more paranoid null checks
2020-05-07 21:44:45 +02:00
Arseniy Lartsev
142b42e3f2
Fixed glitches when getting messaged by someone new (untested)
...
When a new user adds us to their contact list, we get their information,
their online status and their first message before we know their phone
number. Correctly handle this situation and add them to contact list
after a message is received and their phone number becomes known.
2020-05-05 20:19:40 +02:00
Arseniy Lartsev
aea4305867
Collected all phone-number-related functions in one place
2020-05-04 17:32:33 +02:00
Arseniy Lartsev
5b0bacda99
Completely finished adding contacts
2020-05-04 17:16:13 +02:00
Arseniy Lartsev
00cef86071
Revert "Prevent contact duplication in some theoretical situation"
...
This reverts commit d50c766562bb55f2fe11de8b13469bc865455851.
2020-05-04 16:20:47 +02:00
Arseniy Lartsev
d50c766562
Prevent contact duplication in some theoretical situation
...
In any case, make sure to equate phone numbers with and without leading
plus
2020-05-04 16:20:43 +02:00
Arseniy Lartsev
22e18cd8ec
Refactored adding/renaming libpurple buddies at login
...
Same function could now be called for post-login updates, though there
does not seem to be any need for that at the moment
2020-05-04 14:08:57 +02:00
Arseniy Lartsev
3c835bb06f
Replaced all function-specific idle callbacks with straight calls
...
Everything outside of TdTransceiver is now single-threaded, so there is
no longer any need for these idle callbacks
2020-05-02 13:40:48 +02:00
Arseniy Lartsev
de9163a7ea
Create/request private chats for contacts without chat history
...
Upon login, tdlib will not inform of private chats for contacts without
chat history, thus private chats need to be "created" (with "return
existing if already exists" logic in tdlib) explicitly
2020-05-02 12:42:47 +02:00
Arseniy Lartsev
4186b9fdcf
Finished adding contact - should be possible to message it right after
...
But not possible to message after restarting the messenger without
having message prior to restart
2020-03-24 00:14:19 +01:00
Arseniy Lartsev
29d57d05bb
Maybe implemented adding contacts
...
At least, handle failure when it fails
2020-03-21 14:34:45 +01:00
Arseniy Lartsev
3b0686a5bf
Maybe finished remote typing notifications in private chats
2020-03-21 14:34:34 +01:00
Arseniy Lartsev
a1e961adc5
Fixed user status updates
2020-03-11 23:46:39 +01:00
Arseniy Lartsev
a9faaa7e6c
Set local alias for the libpurple account to "firt-name last-name"
...
This is done only upon login for now
2020-03-08 23:46:10 +01:00
Arseniy Lartsev
82f389b9fe
Tried to implement user status updates
2020-02-27 22:27:56 +01:00
Arseniy Lartsev
9c73cb085b
Implemented sending messages to private chats
2020-02-27 21:53:56 +01:00
Arseniy Lartsev
04f429dd53
Ditched chats history requests
...
tdlib notifies about accumulated unread messages same as it
does about messages coming while online
2020-02-27 21:17:02 +01:00
Arseniy Lartsev
b5f75ee823
Work around a server-side oddity when looking for unread messages
2020-02-23 15:52:40 +01:00
Arseniy Lartsev
1b8ced79d0
Moved everything protected by "data mutex" to a separate class
2020-02-23 14:02:47 +01:00