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

80 Commits

Author SHA1 Message Date
Arseniy Lartsev
8b09081e27 Hopefully fixed "User not found" errors when sending messages to 64-bit ids 2021-12-17 10:50:22 +01:00
Arseniy Lartsev
09b5f4ac25 Added logging for changing chat lists/order 2021-12-07 09:59:06 +01:00
Arseniy Lartsev
59b2c0eb76 tdlib 1.6.6 compatibility: switched to using td_api::chatPosition 2021-12-07 09:59:06 +01:00
Arseniy Lartsev
ab5b78d018 tdlib 1.7.8 compatibility: changed user, group and supergroup id to 64-bit 2021-12-07 09:59:06 +01:00
Arseniy Lartsev
121c3dbddf tdlib 1.7.4 compatibility: chat members can be not only users but also chats
Ignore non-user members: they are only possible in supergroups and then only
as Left or Banned.
2021-12-07 09:59:06 +01:00
Arseniy Lartsev
a4970fd5d5 Cancel any active file transfer at logout 2021-01-09 12:17:38 +01:00
Arseniy Lartsev
82c3f7b753 Removed unused function 2021-01-09 11:33:16 +01:00
Arseniy Lartsev
48b64ae38f Implemented fetching missing history when tdlib skips messages at login
Untested, so keep as dead code
2021-01-03 01:55:51 +01:00
Arseniy Lartsev
183c8254c1 Fetch one batch of history when tdlib skips supergroup messages 2021-01-02 22:57:20 +01:00
Arseniy Lartsev
2149c45762 Added functions to start/stop queueing all messages in a chat
So that all new messages can be postponed while fetching history
2021-01-02 21:54:31 +01:00
Arseniy Lartsev
c8b55eb887 Send read receipts only when conversation has focus 2021-01-01 16:29:03 +01:00
Arseniy Lartsev
de1c07873b Added data structures to store read receipts before sending 2020-12-31 17:10:52 +01:00
Arseniy Lartsev
7be26c1822 Do not show converted animated stickers out of order 2020-10-18 18:33:41 +02:00
Arseniy Lartsev
9cc0d956c6 Prepare to support multiple message non-readiness reasons 2020-10-11 10:51:16 +02:00
Arseniy Lartsev
fe90927a8b Do not display replies out of order 2020-10-10 15:51:16 +02:00
Arseniy Lartsev
1d29d2eda4 Fixed re-joining group chat conversations at reconnect
It broke when changed to report account connected as soon as
authorization ready
2020-10-09 23:40:34 +02:00
Arseniy Lartsev
47eb61b67a Create conversations for newly created outgoing secret chats 2020-10-05 23:29:20 +02:00
Arseniy Lartsev
d5fe929ba9 Added menu item to start secret chat 2020-10-04 20:42:11 +02:00
Arseniy Lartsev
e6b9016a51 Temporary: remove secret chats when they are closed 2020-10-04 20:42:11 +02:00
Arseniy Lartsev
6bbbd518ac Introduced type safety for various tdlib identifiers 2020-10-04 15:17:04 +02:00
Arseniy Lartsev
f8b9e4512c Finished voice calls, at least incoming 2020-07-27 17:39:49 +02:00
Arseniy Lartsev
78846fb133 Started adding voice call support with libtgvoip 2020-07-26 23:45:11 +02:00
Arseniy Lartsev
e4f4eef6cd Don't append space to account alias if there's no last name 2020-07-25 12:51:16 +02:00
Arseniy Lartsev
fdd06e02b2 Show members of supergroups in libpurple chat
Show up to 200 members plus up to 200 administrators
2020-07-05 15:01:24 +02:00
Arseniy Lartsev
230b5bfd9a Implemented room list (mostly for bitlbee and spectrum) 2020-06-11 21:16:08 +02:00
Arseniy Lartsev
3b3746aa4f Try to explain the group member private conversation glitch to user 2020-06-07 01:14:06 +02:00
Arseniy Lartsev
d37bc858f6 Update member list in group chat conversations when
* td_api::user is updated for a member (it could have caused display
  name change)
* td_api::chat is updated for a private chat with a member (the user
  could have become, or stopped being libpurple buddy, so group chat
  member may need to switch from display name to buddy username or vice
  versa)
2020-06-06 22:33:56 +02:00
Arseniy Lartsev
a88faec5cf Properly get chat list at login 2020-06-05 23:20:44 +02:00
Arseniy Lartsev
23f4b75e01 Show avatars for users and group chats 2020-06-04 22:57:01 +02:00
Arseniy Lartsev
296812323a Report progress with PurpleXfer for downloads longer than a second 2020-06-04 01:29:26 +02:00
Arseniy Lartsev
c3d9165813 Prepare to show progress for downloads longer than one second 2020-06-02 18:42:19 +02:00
Arseniy Lartsev
2f1d3329a5 Display supergroup description as chat topic 2020-06-01 11:12:26 +02:00
Arseniy Lartsev
1756fcf382 Added "support" for secret chats 2020-05-31 15:56:50 +02:00
Arseniy Lartsev
c6eba571f5 Don't store all received messages
Always fetch source message for replies from tlib
2020-05-30 10:07:55 +02:00
Arseniy Lartsev
033f1105d1 Some degree of group chat member name deduplication 2020-05-29 21:29:07 +02:00
Arseniy Lartsev
2c5e804d44 Store users' displayed names on AccountData 2020-05-29 19:39:22 +02:00
Arseniy Lartsev
8aef08aed9 Implemented sending files to private chats 2020-05-28 21:36:17 +02:00
Arseniy Lartsev
91f0a36889 Correctly handle "creator, non-member" and "restricted non-member" 2020-05-22 14:02:48 +02:00
Arseniy Lartsev
244a01c92a Implemented removing contacts and private chats on server side 2020-05-21 14:51:52 +02:00
Arseniy Lartsev
1e080dc4cb Fixed wrong purple_debug_... format arguments 2020-05-20 23:36:28 +02:00
Arseniy Lartsev
f9dc917ed8 Fixed adding contacts
It no longer worked after fixing spurious buddies caused by rogue
addNewChat. Now, also add buddies if user::is_contact_ is true.
2020-05-20 21:31:58 +02:00
Arseniy Lartsev
0a55a34625 Changed the way user name is prepended to notifications
Add the user name when deciding to show notifications, and also do it in
private chats
2020-05-20 15:13:06 +02:00
Arseniy Lartsev
8716e82b5b Implemented renaming telegram contacts by user 2020-05-20 13:33:47 +02:00
Arseniy Lartsev
1b6d8aa8c4 Only add things to contact list if telegram chat is in chat list 2020-05-19 16:36:58 +02:00
Arseniy Lartsev
3e6b0663d7 Fetch old messages when they get replied to 2020-05-17 14:19:59 +02:00
Arseniy Lartsev
3b820fdd6a Display server-side "last online" in buddy tooltip and user info 2020-05-16 21:08:05 +02:00
Arseniy Lartsev
007bbeddc2 Implemented user information 2020-05-16 20:49:50 +02:00
Arseniy Lartsev
b2e6b37734 Quote original messages when displaying replies 2020-05-16 13:38:00 +02:00
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