Commit Graph

1511 Commits

Author SHA1 Message Date
Andrea Cavalli
09e23b61cf Fix json formatting, fix cmake windows support 2020-10-25 10:08:13 +01:00
Andrea Cavalli
017073e0a2 Add memory optimize and memory stats methods 2020-10-25 03:20:24 +02:00
Andrea Cavalli
184510fc66 Fix remaining compilation errors 2020-10-21 22:23:31 +02:00
Andrea Cavalli
40db0efc2d Fix compilation errors 2020-10-21 22:18:54 +02:00
Andrea Cavalli
adafcf66a3 Convert hard null checks to soft null checks 2020-10-21 22:17:26 +02:00
Andrea Cavalli
17230da76a Merge commit 'cecdae448e88603c98d7d079855c992be6df739f' 2020-10-20 23:20:56 +02:00
Andrea Cavalli
76dbe45ad8 Memory cleanup for caching
Remove cached deleted messages from dialogs
Comment out unused variables
2020-10-20 23:16:24 +02:00
levlam
b03e0a827e Remove wrong because of call through send_closure_later CHECK.
GitOrigin-RevId: c61586c3dde988c3174f4ce3e05fe0f08d7af468
2020-10-14 19:03:36 +03:00
levlam
a487d20e2d Fix service message reply_to_message_id.
GitOrigin-RevId: b0c430c6c04167b15e4b195d86d584e376f88efe
2020-10-14 17:30:55 +03:00
levlam
a57d9ccbea Don't add dummy message sender for bots on TDLib's side.
GitOrigin-RevId: d1ab4f7ca2739d30b0960f655478404d34d40757
2020-10-13 17:25:25 +03:00
Andrea Cavalli
fc5b0e9d06 Merge commit '6b1f6b829d0d71f5d50662b1ff58b7869c1e1d7f'
Conflicts:
	td/telegram/Client.cpp
	td/telegram/cli.cpp
2020-10-12 16:15:14 +02:00
Andrea Cavalli
0da9b62eda Merge commit '7207d76a809598d019e17fb04b2edc46789c6e22'
Conflicts:
	td/telegram/Client.cpp
2020-10-12 16:12:59 +02:00
Andrea Cavalli
f423fc0d81 Merge commit '35a9a93fc9adfbced4d5f59baf0c72a2f807f28a'
Conflicts:
	td/telegram/Client.cpp
	td/telegram/StickersManager.cpp
	td/telegram/WebPagesManager.cpp
2020-10-12 16:10:48 +02:00
Andrea Cavalli
ccaec7e042 Merge commit '3fc140b4a260c606e5c6d79ef148d4beeb37048a'
Conflicts:
	td/telegram/Client.cpp
	td/telegram/Client.h
2020-10-12 15:41:34 +02:00
levlam
c1309d7657 Do not return deleted secret chats and replace migrated basic groups with corresponding supergroups in recently found chats.
GitOrigin-RevId: e50390583e3956a4eb8fdb92ec8a82f04cc7914f
2020-10-12 11:33:16 +03:00
levlam
fbeea0b108 Add is_deleted_secret_chat method.
GitOrigin-RevId: eae2a7bcdf92587bbd77cf7c42c210b74107d8a4
2020-10-12 10:56:01 +03:00
levlam
fb1307ff60 Check for unneeded chat actions only while trying to send it.
GitOrigin-RevId: 7067f21e42ba0d3c3dc797f72341681e32998e6a
2020-10-12 01:48:13 +03:00
levlam
84ea5b06c9 Minor.
GitOrigin-RevId: 1e722a9e8ad6ddd894f9fd4e1b05529aa4aa6a15
2020-10-10 22:02:59 +03:00
levlam
30471b7099 Do not send chat actions to offline users like the main Android client.
GitOrigin-RevId: 6299f69ade490fa10bad74779b30a0d73a145ff2
2020-10-09 15:42:57 +03:00
levlam
35a9a93fc9 Fix std::...::erase return value usages.
GitOrigin-RevId: d9729ccd619e3b99554f1e1c2262d8826f0a8571
2020-10-08 23:04:40 +03:00
levlam
54f32ebc80 Add source to resolve_dependencies_force.
GitOrigin-RevId: b09c73df688eea5872d65ec56f0ae1cb10717542
2020-10-08 22:54:24 +03:00
levlam
13f7c8a1aa Add reply_info to messageThreadInfo.
GitOrigin-RevId: fd417ea9ed2f95d79ca3346e4fcb52f4bf8882f2
2020-10-08 21:30:21 +03:00
levlam
e5e9eb3838 Add MessageReplyInfo::get_message_reply_info_object.
GitOrigin-RevId: 8d46914fd096afca99942bec63f2c6f65f9cbb9e
2020-10-08 21:17:24 +03:00
Andrea Cavalli
459e08c1b4 Merge commit '62d7423bc3f1925eb777e4f5e43de8c48ebf3191' 2020-10-07 00:26:37 +02:00
levlam
77fff9c578 Use GroupAnonymousBot as a fallback sender for bots instead of 777000.
GitOrigin-RevId: 30e2ff3c9db2efc05b3bcbfd610ad8d6492ad66e
2020-10-05 00:51:45 +03:00
levlam
c916566e76 Fix MessagesManager::get_chat_object.
GitOrigin-RevId: a5dddba5f844b8064fe7083c8532f9d2286b9dba
2020-10-03 21:47:12 +03:00
Andrea Cavalli
6a3a55f244 Merge commit '99163ff431a23938a6060d7c8268a5a1e8571310'
Conflicts:
	td/telegram/MessagesManager.cpp
2020-10-02 17:34:08 +02:00
Andrea Cavalli
011d5c123a Rename chat_unload_delay and fix its implementation 2020-10-02 17:32:24 +02:00
levlam
99163ff431 Fix canGetMessageThread.
GitOrigin-RevId: 688fd7615bc841284611393f77e8598e7d9cba13
2020-10-02 15:01:11 +03:00
levlam
ce1138ea13 Fix handling of wrong is_outgoing flag.
GitOrigin-RevId: 2b5a98ddc37139aaae39615fb5719cd0ed84ed7a
2020-10-02 14:31:41 +03:00
levlam
86e7186bae Rename "chat_unload_delay" option and fix its implementation.
GitOrigin-RevId: a81de53455816c959986cd3924674600d0086adc
2020-10-02 12:42:16 +03:00
Andrea Cavalli
e0b335bc3e
Option "chat_unload_delay" for bots (#1219)
* Option "chat_unload_delay"

This option allows to override the default chat unload delay. The allowed range is from 60 to 86400 seconds (1 day)
2020-10-02 12:19:43 +03:00
Andrea Cavalli
e8e9dc4abf Merge commit '7d5b47990b4878f6a2a560d8cf064e28d46672ed' 2020-10-01 23:45:32 +02:00
Andrea Cavalli
96cf4f15a4 Merge commit '711b0cfd4f2aa163858b94e97db25d6be4adcfcb'
Conflicts:
	td/telegram/MessagesManager.cpp
2020-10-01 23:45:02 +02:00
levlam
7d5b47990b Do not handle errors of messages.getReplies in channels.
GitOrigin-RevId: f80a65a578fa4ced3596acc635fa6759feb8e844
2020-10-01 22:57:24 +03:00
levlam
610443fc22 Send updateMessageInteractionInfo after ReplyInfo change, only if reply info is visible.
GitOrigin-RevId: ccafd95ce42cfe318a4a9fb096e0580093decf4c
2020-10-01 22:43:13 +03:00
levlam
ca1594c8ec Update reply info if linked_channel_id is changed.
GitOrigin-RevId: 629721095881d2c9a401519d26f75bbbba4446f9
2020-10-01 22:28:54 +03:00
levlam
711b0cfd4f Introduce DialogAction class.
GitOrigin-RevId: f94011c1b70cdc17115bfbb981c6e000110adfbf
2020-10-01 19:28:10 +03:00
Andrea Cavalli
235e766c5d Typo 2020-10-01 15:28:16 +02:00
Andrea Cavalli
f6d7221e75 Syntax fix 2020-10-01 15:15:49 +02:00
levlam
c332f26352 Introduce messageReplyInfo.
GitOrigin-RevId: 10e757b71fde4e29aa81905bfba5fc4ca5523bbb
2020-10-01 16:12:20 +03:00
Andrea Cavalli
41e5ce21ac Merge commit '3d2067475e0764d4765b41aa372e5c3c10a5af5d'
Conflicts:
	td/telegram/MessagesManager.cpp
2020-10-01 14:53:43 +02:00
levlam
d66c404f3a Fix can_get_message_thread flag.
GitOrigin-RevId: 4f44e18cecabd3e7f1aff85a91078b3749e76bfc
2020-10-01 15:52:19 +03:00
levlam
6e9108a69d Disallow message threads in not-linked chats.
GitOrigin-RevId: aaf20c0076c3fe2ceb30b65d1f9fef602aa8e51d
2020-10-01 15:47:58 +03:00
Andrea Cavalli
23af91ce0d Merge commit '7cde6f0adb890300355663f904155570197f8b9d' 2020-10-01 14:37:44 +02:00
levlam
6c63c859c9 Add MessagesManager::get_top_thread_full_message_id.
GitOrigin-RevId: 002b7503278a9a84c96b41088b888220498b10f6
2020-10-01 15:25:54 +03:00
levlam
6944b4d435 Pass expected_idalog_id instead of channel_id in GetDiscussionMessageQuery.
GitOrigin-RevId: b5e537a49e25c5d342e8dd682cb6ca7e4bfc2686
2020-10-01 14:47:02 +03:00
Andrea Cavalli
c83fc13a60 Merge commit '1d9989cbd700492ffe636385d5578946f62139d9'
Conflicts:
	td/telegram/ContactsManager.cpp
	td/telegram/ContactsManager.h
	td/telegram/MessagesDb.cpp
	td/telegram/MessagesManager.cpp
2020-10-01 13:22:37 +02:00
Andrea Cavalli
d5fc32937f Option "dialog_unload_delay"
This option allows to override the default dialog unload delay. The allowed range is from 0 to 86400 seconds (1 day). Set to -1 to restore the default behavior
2020-10-01 12:38:42 +02:00
Andrea Cavalli
8255ff5ded Merge commit 'a6463970b1b6c88d81cd0360446248abb348f1b0' 2020-10-01 11:59:47 +02:00