2
0
mirror of https://github.com/ars3niy/tdlib-purple synced 2025-08-29 04:57:45 +00:00

70 Commits

Author SHA1 Message Date
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