2
0
mirror of https://github.com/ars3niy/tdlib-purple synced 2025-08-30 21:45:09 +00:00
Commit Graph

207 Commits

Author SHA1 Message Date
Arseniy Lartsev
e74933bd46 Actually use the API id passed to cmake 2020-06-07 00:05:26 +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
eee90dc536 Small refactoring 2020-06-06 21:36:42 +02:00
Arseniy Lartsev
e612a0aa8e Send messages and files to chat members not in buddy list 2020-06-06 20:12:12 +02:00
Arseniy Lartsev
a6aa6f4b1d Prepare writing to users who are not contacts 2020-06-06 14:20:56 +02:00
Arseniy Lartsev
6e2a178b0f Split outgoing messages that are above length or caption limit 2020-06-06 13:57:36 +02:00
Arseniy Lartsev
ba78eb937b Deal with special characters when sending and receiving messages 2020-06-06 11:28:09 +02:00
Arseniy Lartsev
a88faec5cf Properly get chat list at login 2020-06-05 23:20:44 +02:00
Arseniy Lartsev
6bc5db45d8 Notify about message send failures 2020-06-05 20:14:17 +02:00
Arseniy Lartsev
82a53fcd38 Removed wrongful comment 2020-06-05 02:45:54 +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
af2b5adc03 Fixed file transfer problem 2020-06-02 21:32:48 +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
8bfcd0ad61 Finished group description display and changes 2020-06-02 17:38:21 +02:00
Arseniy Lartsev
cb5d2565a1 Handle tdlib fatal errors 2020-06-02 16:58:19 +02:00
Arseniy Lartsev
0c7381e0f0 Change group description when chat topic is changed 2020-06-02 11:52:46 +02:00
Arseniy Lartsev
2f1d3329a5 Display supergroup description as chat topic 2020-06-01 11:12:26 +02:00
Arseniy Lartsev
6d78a59ef1 Fixed some problems after re-enabling compiler warnings 2020-05-31 17:22:04 +02:00
Arseniy Lartsev
1756fcf382 Added "support" for secret chats 2020-05-31 15:56:50 +02:00
Arseniy Lartsev
c33911814d Show video note messages 2020-05-31 14:27:35 +02:00
Arseniy Lartsev
fa965df84e Replaced "two-step" authentication with "two-factor"
It's "two-step" in official client but that's kinda lame
2020-05-31 14:19:09 +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
bafadafa20 Show stickers or sticker thumbnails as inline images 2020-05-29 13:54:07 +02:00
Arseniy Lartsev
76cee47163 Preparations for webp sticker decoding, and some refactoring 2020-05-29 12:16:25 +02:00
Arseniy Lartsev
5acb2c2297 Don't write notifications about downloading stickers 2020-05-29 11:18:54 +02:00
Arseniy Lartsev
8aef08aed9 Implemented sending files to private chats 2020-05-28 21:36:17 +02:00
Arseniy Lartsev
e4febbc8c8 Receive, and display as file:// links, all types of files 2020-05-27 22:14:35 +02:00
Arseniy Lartsev
d65a1639c2 Better handling of downloads with no or empty captions
When caption is empty string, or for stickers which don't have captions,
don't show empty message before downloading, but still show
"Downloading" notification even for stickers.
2020-05-27 20:44:03 +02:00
Arseniy Lartsev
565794cf17 Refactored file downloading code
As a side effect, auto-download limits will be applied to stickers
2020-05-27 20:21:00 +02:00
Arseniy Lartsev
53b1d68d03 Ask about downloading files above configured limit 2020-05-27 00:51:35 +02:00
Arseniy Lartsev
a30aec80a2 Ignore secret photos 2020-05-26 20:27:26 +02:00
Arseniy Lartsev
5f9e4061b7 Added account options for auto-download size limit 2020-05-26 20:06:32 +02:00
Arseniy Lartsev
217fda2063 Removed git commit information (didn't work anyway)
Also log tdlib version when it's determined at run time
2020-05-26 00:15:03 +02:00
Arseniy Lartsev
78759e9eb4 Support authentication with password 2020-05-25 23:53:21 +02:00
Arseniy Lartsev
e0c84cc745 Implemented configuring two-step authentication 2020-05-25 23:21:04 +02:00
Arseniy Lartsev
a2c6b0ea16 Request display name when registering without alias 2020-05-22 22:06:02 +02:00
Arseniy Lartsev
eb48017ffb Deleting and leaving groups, supergroups and channels 2020-05-22 21:21:50 +02:00
Arseniy Lartsev
f7f0310e23 Rearrenged functions in main class 2020-05-22 18:45:15 +02:00
Arseniy Lartsev
eaabaeebdd Implemented creating groups, supergroups and channels 2020-05-22 18:45:14 +02:00
Arseniy Lartsev
91f0a36889 Correctly handle "creator, non-member" and "restricted non-member" 2020-05-22 14:02:48 +02:00
Arseniy Lartsev
d455c2ddc9 Remove chats from contact list when we are no longer group member 2020-05-22 13:46:37 +02:00
Arseniy Lartsev
2b74471a42 Reduced number of arguments to many functions by one 2020-05-22 13:05:11 +02:00
Arseniy Lartsev
9e9dde7fbf Moved some update chat functions out of the main class 2020-05-22 12:49:10 +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
0ce0344e89 Added test case for adding contact from group chat members 2020-05-20 21:52:44 +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
0e0e6901dd Add contacts from group chat members 2020-05-20 21:31:08 +02:00