2
0
mirror of https://github.com/ars3niy/tdlib-purple synced 2025-08-28 12:37:40 +00:00

93 Commits

Author SHA1 Message Date
Arseniy Lartsev
9d6ed1f2d2 Support emoji message from tdlib 1.7.9, and print more message types 2021-12-08 00:34:21 +01:00
Arseniy Lartsev
9ad9a7ebb1 tdlib 1.6.9 compatibility: make optionValueInteger value int64 2021-12-07 09:59:06 +01:00
Arseniy Lartsev
367c0fc11d tdlib 1.7.1 compatibility: invite link changes
generateChatInviteLink changed to createChatInviteLink, later tdlib versions
added additional arguments

Basic and supergroup full info now contains chatInviteLink objects
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
41b514634b Finished fetching message history when tdlib skips messages 2021-01-03 13:18:33 +01:00
Arseniy Lartsev
02de71c85f Keep track of last received message in each chat 2021-01-02 19:27:47 +01:00
Arseniy Lartsev
ec01fa2b5f Prepare for sending read receipts only when conversation has focus 2021-01-01 14:16:39 +01:00
Arseniy Lartsev
fa5e3f8a1c Improved log message when failing to download a file 2020-11-25 17:54:04 +01:00
Arseniy Lartsev
1284c6358b Abolished file download callback 2020-10-12 19:48:44 +02:00
Arseniy Lartsev
05be359e9a Sort of merged TgMessageInfo and IncomingMessage 2020-10-11 19:47:47 +02:00
Arseniy Lartsev
2f7915e5d1 Use dedicated function for conversation notification in one final place 2020-10-11 19:20:37 +02:00
Arseniy Lartsev
0f580bba91 Moved some functions for receiving and showing messages to own file 2020-10-11 11:48:51 +02:00
Arseniy Lartsev
ac120f2c67 Working towards displaying messages with "inline" files in-order 2020-10-11 11:39:07 +02:00
Arseniy Lartsev
552f30b18f Use type-safe message id more 2020-10-11 10:55:42 +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
415ac53b1e Use away status instead of offline for all buddies
Telegram's concept of "offline" does't really mean offline
2020-10-07 22:22:42 +02:00
Arseniy Lartsev
8393db3298 Try to display messages in secret chats 2020-10-04 20:42:11 +02:00
Arseniy Lartsev
089913eb26 Set correct "who" for file transfers, and verify in tests 2020-10-04 20:42:11 +02:00
Arseniy Lartsev
b3baa548f6 Create libpurple buddies for secret chats 2020-10-04 20:42:11 +02:00
Arseniy Lartsev
a6062a50df Moved secret-chat-related stuff to a separate file 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
Ben Wiederhake
928570701a Add missed translator note 2020-09-02 22:36:04 +02:00
Arseniy Lartsev
8e38173c75 De-translated some messages, and updated various comments 2020-09-02 21:21:35 +02:00
Arseniy Lartsev
fbd1c548a5 Prevent some bitlbee crashes 2020-08-27 20:42:57 +02:00
Arseniy Lartsev
23a14aa586 A Spectrum workaround for group chat notifications 2020-08-27 20:42:37 +02:00
Arseniy Lartsev
b55728270b Show stickers with PURPLE_MESSAGE_IMAGES 2020-08-27 17:32:17 +02:00
Arseniy Lartsev
6f6c7af73a Set connection to CONNECTED as soon as authorizationStateReady 2020-08-27 17:23:59 +02:00
Ben Wiederhake
6a2342617e Typos in strings and comments
These typos were introduced before this PR.
2020-08-23 19:15:43 +02:00
Ben Wiederhake
d77bd71a95 Add hints to translators how to reorder arguments 2020-08-23 19:15:43 +02:00
Arseniy Lartsev
802f687f71 Set PURPLE_MESSAGE_REMOTE_SEND flag when appropriate 2020-08-23 19:12:22 +02:00
Ben Wiederhake
67b1f50dc8 Capitalize username only at beginning of sentence 2020-08-19 23:40:53 +02:00
Ben Wiederhake
3671598099 i18n: Add translator notes, remove some over-generic dialog titles 2020-08-19 23:40:53 +02:00
Arseniy Lartsev
3662536fa5 Remove formatting tags from outgoing messages 2020-08-18 22:42:00 +02:00
Arseniy Lartsev
2096ab4cb6 Downloads using PurpleXfer: read tdlib file 1 MB at a time
Reading the whole file into a buffer can be a bad idea, what with
large file support in telegram
2020-08-15 19:48:05 +02:00
Arseniy Lartsev
ff3f1c684b Start looking at download behaviour account option, and some renaming 2020-08-14 22:07:22 +02:00
Arseniy Lartsev
9ecc3c94d5 Show author for messages in channel as "Channel post"
Rather than "someone"
2020-08-13 13:40:34 +02:00
Arseniy Lartsev
8888e025b6 Implemented joining public groups by group link or name 2020-08-13 13:34:23 +02:00
Arseniy Lartsev
ae2eae19cd Moved most file-transfer-related functions to separate file 2020-07-26 14:51:51 +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
bc8be5a7dd Correctly handle chats left open since before last logout
They were sometimes not re-joined, leading to non-display of incoming
messages
2020-07-10 22:02:41 +02:00
Arseniy Lartsev
94e8252778 Always use purple_request_action directly
With purple_request_yes_no and the like, buttons don't get translated
2020-07-06 18:41:20 +02:00
Ben Wiederhake
9b1dfb0df2 Move 'char* _(char*)' to a common place 2020-07-06 10:21:27 +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
43ef8db254 Prevent a crash when buddy alias is NULL due to funny namey 2020-07-02 10:00:23 +02:00
Arseniy Lartsev
72d6f59e94 Show animated stickers as inline gifs 2020-06-13 16:01:05 +02:00
Arseniy Lartsev
230b5bfd9a Implemented room list (mostly for bitlbee and spectrum) 2020-06-11 21:16:08 +02:00
Arseniy Lartsev
9f7418dff2 Replaced more purple_account_get_alias with get_name_for_display 2020-06-11 11:29:39 +02:00
Arseniy Lartsev
a556917a92 Do not pass NULL user name to purple_conv_im_write
Bitlbee was crashing on it
2020-06-10 17:44:33 +02:00
Arseniy Lartsev
bf49eb9916 Do not rely on account having alias
This fixes bitlbee crash when viewing message which is a file sent from
ourselves from another client
2020-06-10 17:41:55 +02:00
Arseniy Lartsev
648314d106 Implemented adding users to groups 2020-06-07 14:07:58 +02:00