Andrea Cavalli
616a40b3b2
Merge remote-tracking branch 'td/master'
2021-09-29 00:33:23 +02:00
levlam
2ce0be4fe7
Remove getChatStatisticsUrl method.
2021-09-28 19:08:36 +03:00
Andrea Cavalli
9ca532c6a6
Merge remote-tracking branch 'td/master'
2021-09-26 23:08:36 +02:00
levlam
c5a2e9a870
Load only chats with known info in MessagesManager::load_dialogs.
2021-09-26 19:38:27 +03:00
Andrea Cavalli
45e855f89d
Remove most memory related features
...
I can't maintain anymore this amount of features while keeping the library constantly updated and without bugs. Every merge was taking me multiple hours of revisioning the code. I give up.
From this commit onwards TDLight will only have small useful customizations that are easy to maintain.
Now the people relying on the OptimizeMemory method can restart the session every N hours to free up the memory.
The real way to keep a low memory usage must involve a huge refactoring to allow the unloading of the caches into the sqlite database, similar to what's already happening with messages data. Only Levlam has the ability to implement this without needing to merge the upstream everytime.
2021-09-25 22:11:42 +02:00
Andrea Cavalli
897d4af16c
Merge remote-tracking branch 'td/master'
2021-09-25 19:24:57 +02:00
levlam
2ec2e4d78f
Use "set"/"toogle" instead of "change".
2021-09-24 10:42:39 +03:00
levlam
e212d1293d
Send stats.getMessagePublicForwards to the correct DC.
2021-09-24 09:07:38 +03:00
levlam
bc4058b8be
Add and use MessagesManager::get_channel_differences_if_needed.
2021-09-23 23:34:55 +03:00
levlam
910f60c145
Use Promise instead of RequestActor in getMessagePublicForwards.
2021-09-23 22:56:38 +03:00
levlam
fbd2309b37
Don't remove emoji modifiers in chat action emojis.
2021-09-23 17:16:59 +03:00
levlam
551103a084
Send updateAnimatedEmojiMessageClicked only in opened chats.
2021-09-18 21:26:22 +03:00
levlam
5de53e09eb
Add updateAnimatedEmojiMessageClicked.
2021-09-17 15:51:42 +03:00
levlam
5fd11e4b7a
Add td_api::clickAnimatedEmojiMessage.
2021-09-16 00:41:40 +03:00
Andrea Cavalli
6e1836a024
Merge remote-tracking branch 'td/master'
2021-09-15 16:03:11 +02:00
levlam
ded0b57905
Add td_api::getRecentlyOpenedChats.
2021-09-14 14:18:37 +03:00
levlam
5bec536803
Add class RecentDialogList.
2021-09-13 20:34:57 +03:00
Andrea Cavalli
c06a3d9dcf
Merge remote-tracking branch 'td/master'
2021-09-10 15:49:57 +02:00
Andrea Cavalli
37b1d48470
Fix compilation warnings and errors
2021-09-10 15:47:26 +02:00
levlam
5c59a10418
Move game-related methods to GameManager.
2021-09-07 10:45:01 +03:00
levlam
0ec10947d5
Fix some misprints.
2021-09-06 13:58:40 +03:00
levlam
96ffd57881
Use Promise isntead of RequestOnceActor to get games high scores.
2021-09-05 10:54:20 +03:00
Andrea Cavalli
a20e8b6db3
Merge remote-tracking branch 'td/master'
2021-09-04 16:03:33 +02:00
levlam
a4f66c69cb
Add td_api::getMessageViewers.
2021-09-03 16:14:03 +03:00
levlam
41c391f140
Update layer to 133.
2021-09-03 12:27:59 +03:00
levlam
d3e8029533
Delete unneded refs from set_typing_query_.
2021-09-17 12:33:59 +03:00
levlam
48f623f132
Simpler and faster have_message_force.
2021-09-16 17:28:33 +03:00
levlam
6beaf41231
Minor improvements.
2021-09-01 20:31:39 +03:00
levlam
2b980ec215
Remove default source from have_dialog_force.
2021-09-01 19:41:00 +03:00
levlam
b1db807868
Add forwardMessages.only_preview.
2021-08-31 23:37:21 +03:00
levlam
23a4c2c8a8
Return Message objects from send_message/forward_messages.
2021-08-31 22:34:46 +03:00
levlam
548ab8d7ee
Add MessagesManager::get_forwarded_messages.
2021-08-31 20:39:32 +03:00
levlam
87e003916c
Add MessagesManager::fix_forwarded_message.
2021-08-31 19:42:37 +03:00
levlam
52d605ed4d
Add MessagesManager::create_message_forward_info.
2021-08-31 19:12:24 +03:00
levlam
dec26260d3
Add const MessagesManager::create_message_to_send.
2021-08-31 17:26:51 +03:00
levlam
f6fc10ab22
Add updateChatTheme.
2021-08-27 20:36:40 +03:00
levlam
c20fd1dd91
Add td_api::setChatTheme.
2021-08-27 19:23:22 +03:00
Andrea Cavalli
e2374c1b71
Fix compilation
2021-08-24 00:53:49 +02:00
Andrea Cavalli
99f8ce6d76
Clean dialogs and related fields
2021-08-23 22:34:34 +02:00
Andrea Cavalli
b7ef62be23
Rename to enable_reactive_pull_backpressure
2021-08-23 21:05:40 +02:00
levlam
5cfabdd589
Add chat.theme_name.
2021-08-23 18:47:32 +03:00
Andrea Cavalli
232ce6e4d3
Merge remote-tracking branch 'td/master'
2021-08-23 02:22:28 +02:00
levlam
2eaa026bb7
Increase number of stored recently found chats.
2021-08-17 18:11:32 +03:00
levlam
1885d232a9
Add parameter is_message_in_dialog to update_message.
2021-08-13 13:36:07 +03:00
levlam
4b06cb9f08
Avoid reply and bot commands registration for messages not in Dialog.
2021-08-13 13:19:58 +03:00
levlam
bff8f7550f
Return MessageThreadInfo from GetDiscussionMessageQuery.
2021-08-13 12:26:47 +03:00
levlam
05c9934074
Add MessageThreadInfo.h.
2021-08-12 22:00:27 +03:00
levlam
307344da1c
Remove promise from load_folder_dialog_list.
2021-08-11 16:32:00 +03:00
levlam
d49fdf3261
Remove offset from getChats and respect app-specified limit.
2021-08-11 15:59:09 +03:00
levlam
c35321b98e
Add loadChats method.
2021-08-10 17:52:31 +03:00
levlam
394e3450de
Send updateMessageContent only for message known to the app.
2021-08-10 16:18:08 +03:00
levlam
bed3448fe1
Don't store server-generated message links.
2021-08-10 15:58:39 +03:00
levlam
4b631b16bf
Find MediaTimestamp entities in old messages.
2021-08-09 19:37:47 +03:00
levlam
eee773901c
Update max_reply_media_timestamp in replies when needed.
2021-08-06 05:55:43 +03:00
levlam
4ae305d8c4
Update max_media_timestamp when message content is changed.
2021-08-05 09:59:43 +03:00
levlam
304280df69
Add message.can_get_media_timestamp_links.
2021-08-04 07:57:27 +03:00
Andrea Cavalli
d341c79aa8
Merge remote-tracking branch 'td/master'
2021-08-03 19:56:27 +02:00
levlam
0dc42e4410
Add source to get_message_sender_object.
2021-08-03 01:58:02 +03:00
Andrea Cavalli
4286622a5a
Merge remote-tracking branch 'td/master'
2021-08-02 10:47:33 +02:00
levlam
9e7bce1b06
Don't warn about sent message ID decrease after message ID overflow.
2021-08-02 07:21:36 +03:00
levlam
3156492c2f
Add source to ContactsManager::load_channel_full.
2021-08-02 05:50:52 +03:00
levlam
1223c72741
Add class EncryptedFile.
2021-08-01 06:17:51 +03:00
Andrea Cavalli
b396f9ccea
Merge remote-tracking branch 'td/master'
2021-07-31 10:44:58 +02:00
levlam
11c3a16353
Check update type once in process_get_channel_difference_updates.
2021-07-31 04:55:05 +03:00
Andrea Cavalli
6257918079
Adjust max channel difference to respect the official server-side limit
2021-07-30 16:42:01 +02:00
Andrea Cavalli
b847c925db
Merge remote-tracking branch 'td/master'
2021-07-30 10:59:01 +02:00
levlam
93ac629a74
Save is_channel_difference_finished for uncreated dialogs.
2021-07-30 06:04:31 +03:00
levlam
f0333aa578
Postpone updates in unknown channel instead of dropping.
2021-07-29 21:43:03 +03:00
Andrea Cavalli
76cd1f1f30
Merge remote-tracking branch 'td/master'
2021-07-29 12:12:01 +02:00
levlam
bc8544299b
Repeat getHistory request if some new server messages aren't received.
2021-07-29 06:07:11 +03:00
levlam
c07562ed52
Repair last message after getChannelDifference if it is still unknown.
2021-07-29 03:32:08 +03:00
levlam
be53ea2e1c
Move retry_get_difference_timeout out of Dialog to allow retries for unknown dialogs.
2021-07-29 02:52:59 +03:00
Andrea Cavalli
6b93b00f6a
Merge remote-tracking branch 'td/master'
2021-07-27 23:35:50 +02:00
levlam
20a98ad7c9
Support media_timestamp in getMessageLink.
2021-07-26 04:01:10 +03:00
Andrea Cavalli
a580242be1
Merge remote-tracking branch 'td/master'
2021-07-23 15:19:00 +02:00
levlam
aa71db8da1
Update message content when has_bots is changed.
2021-07-22 06:54:43 +03:00
levlam
ca480ecaf1
Simplify MessagesManager::send_update_message_content.
2021-07-22 05:53:39 +03:00
levlam
e0c9efc26b
Skip bot command entities if needed.
2021-07-22 05:39:16 +03:00
levlam
cf579c761a
Add Dialog.has_bots flag.
2021-07-22 04:10:40 +03:00
levlam
bf1c94ee0d
Reget message history from database if it is outdated.
2021-07-19 21:38:04 +03:00
levlam
3d84afbea8
Add get_history methods, which with Dialog as parameter.
2021-07-19 20:56:30 +03:00
levlam
4caf74a86f
Don't repair last message by getHistory in a chat created by new message.
2021-07-18 06:16:08 +03:00
Andrea Cavalli
3dde04b17f
Merge remote-tracking branch 'td/master'
2021-07-17 11:15:40 +02:00
levlam
576724f234
Don't fill gaps in non-joined never opened channels.
2021-07-14 22:53:30 +03:00
levlam
0dc4b5a469
Add source to get_messages_from_server.
2021-07-08 17:09:16 +03:00
levlam
40c5d47717
Make inherited classes final if possible.
2021-07-04 05:58:54 +03:00
levlam
edfa5d1d98
Use final instead of override.
2021-07-03 23:51:36 +03:00
Andrea Cavalli
c41ec7df43
Merge remote-tracking branch 'td/master'
2021-06-30 13:31:50 +02:00
levlam
8730e92d7c
Use limit 1 in the first channel difference request.
2021-06-16 05:25:44 +03:00
levlam
a96bf1531a
Use FullMessageId in get_login_button_url.
2021-06-03 23:37:56 +03:00
levlam
126a20c318
Reload voice chat when user opens a voice chat link.
2021-06-03 20:16:14 +03:00
levlam
374b7eeaec
Disable notifications about messages sent before authorization just in case.
2021-05-29 23:08:08 +03:00
levlam
5832a59ee5
Move get_message_link_info to LinkManager.
2021-05-27 20:47:04 +03:00
Andrea Cavalli
2c77e82300
Merge remote-tracking branch 'td/master' into dev
2021-05-27 00:50:41 +02:00
levlam
62db52a23e
Move LoginUrl-related methods to LinkManager.
2021-05-25 02:39:29 +03:00
levlam
9176381cff
Add debug for failed CHECK.
2021-05-09 18:43:39 +03:00
levlam
6baf923f07
Fix handling of left dialogs, which are still pinned in filters.
2021-05-09 00:31:43 +03:00
Andrea Cavalli
40048f12ca
Merge
2021-05-04 22:17:39 +02:00
Andrea Cavalli
ee7ffd085f
Merge remote-tracking branch 'tdlib/master'
2021-04-13 16:11:57 +02:00
levlam
7dbe720fdc
Move can_send_message_content to MessageContent.cpp.
2021-04-13 02:59:33 +03:00
levlam
c7b0063260
Add source to parse_dialog.
2021-04-12 06:04:43 +03:00
levlam
bdb7c833fd
Improve fatal error message.
2021-04-12 04:42:42 +03:00
levlam
2ddeead75f
Save expected active group call ID.
2021-04-12 02:49:28 +03:00
levlam
47a7bc05e2
Use service messages to synchronize active group call state.
2021-04-11 05:37:53 +03:00
Andrea Cavalli
799d106c49
Merge remote-tracking branch 'td/master'
2021-04-10 19:44:10 +02:00
levlam
a0dcd2d9c2
Add optional source to have_dialog_force.
2021-04-08 00:51:32 +03:00
levlam
0a0c9a6f96
Add optional source to get_dialog_force.
2021-04-08 00:42:21 +03:00
levlam
ad17a75f28
Add source to add_new_dialog.
2021-04-07 23:35:09 +03:00
levlam
55662f5db6
Add CHECK debug.
2021-04-06 12:33:08 +03:00
levlam
0b53ace8d0
Improve deletion of deleted being sent messages.
2021-04-04 22:59:56 +03:00
Andrea Cavalli
1928c14a76
Bugfix
2021-04-04 16:58:56 +02:00
Andrea Cavalli
a21920a7bd
Bugfix
2021-04-04 16:23:07 +02:00
Andrea Cavalli
28a655151a
Bugfix
2021-04-04 16:11:40 +02:00
levlam
d44e9e5577
Add source to delete_dialog_messages.
2021-04-04 03:54:27 +03:00
levlam
8039660cfe
Reload objects from server if failed to resolve their dependencies.
2021-04-04 03:23:22 +03:00
Andrea Cavalli
1ce823b0e6
Merge commit '1bbcc01091c8ca92f79821790b8857edb5a1b6b4'
2021-04-03 12:53:29 +02:00
Andrea Cavalli
efb9c6b41d
Add optiona pull-based backpressure system for get_channel_difference
2021-04-03 12:46:22 +02:00
levlam
1bb13c0ab3
Remove unused parameter in add_message_dependencies.
2021-03-31 16:07:45 +03:00
levlam
9700529085
Remove payments proxy methods from MessagesManager.
2021-03-31 04:15:02 +03:00
levlam
f1b949456b
Support tip sending.
2021-03-30 18:45:22 +03:00
levlam
17e8860855
Add paymentForm.id.
2021-03-30 17:18:08 +03:00
levlam
ffc847dbf5
Replace search_among_users with search_among_dialogs.
2021-03-26 02:39:24 +03:00
Andrea Cavalli
78291a96d4
Merge commit '70b71d569b81c66b25f8f77d9536b1d41fbf091d'
2021-03-21 01:04:45 +01:00
Andrea Cavalli
e1771fa7de
Add an experimental option to delay get_channel_difference
2021-03-21 00:27:18 +01:00
levlam
62c9890bcf
Support url_auth_domains.
2021-03-16 01:29:54 +03:00
levlam
95391dc705
Improve logging.
2021-03-15 16:42:03 +03:00
levlam
0339921102
Improve some spelling.
2021-03-15 03:32:14 +03:00
Andrea Cavalli
1ea79d2739
Merge latest commits
2021-03-11 18:25:39 +01:00
levlam
574884510b
Use MessageSender as participant_alias.
2021-03-08 18:08:41 +03:00
levlam
f24ca02f37
Add td_api::voiceChat class.
2021-03-08 17:00:39 +03:00
levlam
159c4f3f00
Remove race in default_join_as updating.
2021-03-08 15:27:47 +03:00
levlam
4eab57cd7b
Add chat.default_join_voice_chat_as_chat_id.
2021-03-08 15:13:36 +03:00
levlam
0615d1f61d
Prevent voice chat data updating during join.
2021-03-07 01:06:51 +03:00
levlam
a93189dade
Support chats as group call participants.
2021-03-05 14:40:54 +03:00
levlam
bcf3643cf7
Update layer to 125.
2021-03-02 17:27:44 +03:00
levlam
eafdf2ebed
Add td_api::getMessageImportConfirmationText.
2021-02-23 02:03:24 +03:00
levlam
c67a0d9d7b
Add class ReportReason.
2021-02-20 03:55:09 +03:00
levlam
3774b13ca1
Add td_api::reportChatPhoto.
2021-02-19 19:11:27 +03:00
levlam
65d4229352
Allow to specify report text for all report chat reasons.
2021-02-12 20:14:59 +03:00
levlam
d6da217b9a
Allow changing message TTL in non-secret chats.
2021-02-09 18:51:08 +03:00
levlam
54b7b0f6e3
Return message ttl for ordinary self-destructing messages.
2021-02-09 17:51:20 +03:00
levlam
cc50f3b143
Support receiving message TTL setting for all chat types.
2021-02-09 17:35:48 +03:00
levlam
876932843a
Support automatic deletion of messages by ttl_period.
2021-02-08 23:41:17 +03:00
levlam
313a58b952
Replace td_api::sendChatSetTtlMessage with td_api::setChatMessageTtl.
2021-02-05 14:21:16 +03:00
levlam
642a9a9efb
Update layer to 124.
2021-02-02 02:00:28 +03:00
levlam
578b8a4dec
Minor performance improvements.
2021-02-14 01:25:17 +03:00
levlam
65a7715248
Pass promise to MessagesManager::on_dialog_deleted.
2021-02-04 16:01:04 +03:00
levlam
cd3abdbeb2
Move dialog participant methods from MessagesManager to ContactsManager.
2021-01-27 02:16:17 +03:00
levlam
0b868c0aad
Add chatActionBarInviteMembers.
2021-01-26 02:22:35 +03:00
Andrea Cavalli
9a01a9da1d
Merge commit 'e72c129f9ce3b7463c7a42406aab0d3ebffdc6be'
...
Conflicts:
td/telegram/MessagesManager.cpp
2021-01-23 22:47:58 +01:00