2
0
mirror of https://github.com/ars3niy/tdlib-purple synced 2025-08-30 05:27:41 +00:00

181 Commits

Author SHA1 Message Date
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
d7ba8d712b Request information about all contacts from server after connecting
This way, user IDs for contacts with whom there is no chat history
(and thus which are not included in response to getChats) will be known
2020-03-25 16:49:26 +01: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
9bf417ad2e First steps of correct contact addition procedure 2020-03-23 22:56:16 +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
1ae80cd8c2 Started implementing typing notifications from peers
Waiting until someone talks to me now
2020-03-15 21:50:16 +01:00
Arseniy Lartsev
02026dd630 Properly display outgoing messages 2020-03-08 23:46:12 +01:00
Arseniy Lartsev
2cacaeba62 Rename buddies in contact list at login if they've renamed 2020-03-08 23:46:12 +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
c579baefec More properly report connection state to libpurple 2020-02-29 15:30:24 +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
3145d76058 Let libpurple host log new unread messages now 2020-02-23 15:57:22 +01:00
Arseniy Lartsev
d03a558dba At login, mark accumulated messages as read on the server 2020-02-23 15:47:18 +01:00
Arseniy Lartsev
1b8ced79d0 Moved everything protected by "data mutex" to a separate class 2020-02-23 14:02:47 +01:00
Arseniy Lartsev
964dc72173 Show accumulated messages in correct order 2020-02-23 00:33:10 +01:00
Arseniy Lartsev
47028f7114 Display offline messages, or those from another client, at login 2020-02-22 23:15:43 +01:00
Arseniy Lartsev
39a2be0122 Populate contact list and set status for the buddies 2020-02-22 19:03:14 +01:00
Arseniy Lartsev
7d574fd47c Request information about contacts and channels after connecting 2020-02-22 15:53:07 +01:00
Arseniy Lartsev
7963c1fabe Really finished basic login sequence 2020-02-22 15:04:06 +01:00
Arseniy Lartsev
e6fdde89ab Finished basic login sequence 2020-02-22 14:58:32 +01:00
Arseniy Lartsev
2ad154f0de Handle authentication errors 2020-02-22 13:31:10 +01:00
Arseniy Lartsev
2db6875707 Login sequence: send database encryption key and phone number 2020-02-22 12:08:02 +01:00
Arseniy Lartsev
16df148ab0 Login sequence: send TDLib parameters 2020-02-22 11:47:42 +01:00
Arseniy Lartsev
29e8628aba Started implementing proper login sequence with background thread 2020-02-22 11:47:39 +01:00
Arseniy Lartsev
b0095d04c8 Moved tdlib log level setting from client constructor to plugin init 2020-02-17 23:30:24 +01:00
Arseniy Lartsev
531e27d503 Enable tdlib log with level based on libpurple log level 2020-02-16 23:22:36 +01:00
Arseniy Lartsev
87d5e0f60e Added some debug logs through libpurple 2020-02-16 23:22:34 +01:00
Arseniy Lartsev
4a1be64135 Added rudimentary Telegram client class for purple plugin 2020-02-16 23:22:23 +01:00