Commit Graph

5002 Commits

Author SHA1 Message Date
levlam
d9aa50e1be Use get_dialogs_from_list instead of get_dialogs. 2021-08-12 15:16:13 +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
086ec3d2e5 Add td_api::getPhoneNumberInfoSync. 2021-08-30 22:26:02 +03:00
levlam
a68402719c Improve logging for secret chats. 2021-08-30 19:28:54 +03:00
levlam
8699d0aadb Make country information static. 2021-08-30 19:20:40 +03:00
levlam
44556b3309 Add CountryInfoManager::get_phone_number_info_object. 2021-08-30 17:51:09 +03:00
levlam
c5a2105b61 Improve getPhoneNumberInfo. 2021-08-30 17:11:45 +03:00
levlam
788c13f834 Update built-in list of countries. 2021-08-29 18:03:26 +03:00
levlam
aaff89a6c3 Make get_document_object methods const. 2021-08-28 14:16:29 +03:00
levlam
b1eb6db7b5 Minor logging improvements. 2021-08-26 21:44:29 +03:00
levlam
209dd8b41b Don't drop fully uploaded partial secure location. 2021-08-26 21:20:55 +03:00
levlam
897a4e26a7 Allow RemoteFileLocation logging. 2021-08-26 20:34:51 +03:00
levlam
cf7c14fb59 Remove unneeded document.is_changed. 2021-08-26 18:50:28 +03:00
levlam
ca03135f02 Use (1 << 30) as pts overflow mark. At least 1e9 must be used, because pts can jump from 1 to 1e9 when switching to tmessages. 2021-08-26 18:05:27 +03:00
levlam
e31a48998d Remove "Filling gap" warnings during getDifference. 2021-08-26 17:23:18 +03:00
levlam
fcfbb38f63 Fix MessageId::is_valid_scheduled. 2021-08-25 11:29:57 +03:00
levlam
8559392f6f Fix Dialog pts in run_after_channel_difference. 2021-08-25 11:21:17 +03:00
levlam
628648cd6c Use set_dialog_last_pinned_message_id instead of on_update_dialog_last_pinned_message_id. 2021-08-25 11:09:24 +03:00
levlam
dbdf69d076 Simplify on_update_dialog_last_pinned_message_id. 2021-08-25 11:03:07 +03:00
levlam
bba085318e Return BackgroundType from on_get_background. 2021-08-24 17:13:51 +03:00
levlam
8e7eba4f8c Reload ChannelFull in get_channel_statistics_dc_id. 2021-08-23 11:59:37 +03:00
levlam
828e1e22a0 Skip unneeded getFullChannel requests. 2021-08-23 11:10:46 +03:00
levlam
d229c5daed Fix handling of empty permissions in chatMemberStatusRestricted. 2021-08-21 19:57:01 +03:00
levlam
1a2faf5ae6 Add feedback_link to WebPageInstantView. 2021-08-21 10:22:41 +03:00
levlam
6393923d3a Make internalLinkTypeUnknownDeepLink self-contained. 2021-08-20 20:56:07 +03:00
levlam
df11403739 Make internalLinkTypeMessage self-contained. 2021-08-20 20:27:39 +03:00
levlam
618742acc2 Make internalLinkTypeChatInvite self-contained. 2021-08-20 18:44:02 +03:00
levlam
241718eae8 Extract pts and qts updates and apply them during getDifference. 2021-08-20 17:21:31 +03:00
levlam
a7e2e85119 Simplify check that all updates were processed. 2021-08-20 15:04:24 +03:00
levlam
7129a6d090 Apply typings and other short updates immediately. 2021-08-20 14:18:11 +03:00
levlam
7261c9579f Improve logging. 2021-08-20 10:57:19 +03:00
levlam
a6ba1240c1 Fix applying of postponed updates. 2021-08-20 10:29:57 +03:00
levlam
4988e94c02 Don't save pts too often for bots. 2021-08-19 20:36:26 +03:00
levlam
0f50f7a0f4 Ensure that channel Dialog exists before setting retry timeout. 2021-08-19 08:57:01 +03:00
levlam
5c2441021e Add fast path in remove_invalid_entities. 2021-08-18 21:37:31 +03:00
levlam
23f5c52ad9 Support applying multiple postponed updates at once. 2021-08-18 17:40:28 +03:00
levlam
2eaa026bb7 Increase number of stored recently found chats. 2021-08-17 18:11:32 +03:00
levlam
7ac3c2bdb9 Update accumulated_pts_count_ when a pending pts update is processed. 2021-08-16 14:02:15 +03:00
levlam
c19a0751f0 Apply postponed pts/qts updates after each getDifference iteration. 2021-08-16 13:35:30 +03:00
levlam
b9b9f56b24 Process pending pts updates as fast as possible. 2021-08-16 12:19:30 +03:00
levlam
0f5127602a Cancel previous gap timeout if processed a pending update. 2021-08-16 08:38:29 +03:00
levlam
78534b15cf Minor improvememnts. 2021-08-16 01:30:38 +03:00
levlam
82918559b8 Refactor processing of differenceSlice. 2021-08-16 01:00:49 +03:00
levlam
2e524bb819 Fix log message. 2021-08-16 00:11:48 +03:00
levlam
2128c2e5ad Improve getDifference logging. 2021-08-15 22:54:18 +03:00
levlam
1f486a694b Switch back from getDifference to updates processing as fast as possible. 2021-08-15 22:34:03 +03:00
levlam
d7dd6ff1ea Improve logging. 2021-08-15 22:31:24 +03:00
levlam
d161323858 Add delay before reading history on server in non-joined channels with wrong server_unread_count. 2021-08-15 14:46:19 +03:00
levlam
6194d9ec14 Drop pending seq/qts updates received before seq/qts overflow. 2021-08-15 13:52:00 +03:00
levlam
8ac0b02a6d Improve warnings on long gap fill. 2021-08-15 12:51:57 +03:00
levlam
9a5872fe27 Use update receive time to calculate proper gap time. 2021-08-15 12:46:38 +03:00
levlam
9b801645f0 Set gap timeout if it has decreased. 2021-08-15 11:43:00 +03:00
levlam
957150a59c Add space before supeflous phone number digits. 2021-08-13 21:06:54 +03:00
levlam
e62655efdf Add message.has_timestamped_media. 2021-08-13 14:49:24 +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
a59a916f21 Fix MessageEntity constructors. 2021-08-13 13:10:54 +03:00
levlam
ec55ca1d5c Improve logging. 2021-08-13 13:03:55 +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
45790b144c Fix ChannelFull dependencies. 2021-08-11 16:52:34 +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
db9db0eff1 Improve for_group flag in media timestamp links. 2021-08-09 20:47:03 +03:00
levlam
4b631b16bf Find MediaTimestamp entities in old messages. 2021-08-09 19:37:47 +03:00
levlam
0c3a9aebd8 Fix CHECK. 2021-08-09 17:48:57 +03:00
levlam
2098f10441 Store media_timestamp in a separate field. 2021-08-06 09:14:52 +03:00
levlam
eee773901c Update max_reply_media_timestamp in replies when needed. 2021-08-06 05:55:43 +03:00
levlam
40d953ba20 Init max media timestamps for scheduled messages. 2021-08-05 10:41:13 +03:00
levlam
0e6584db87 Send updateChatLastMessage if content of the last yyet unsent message changes. 2021-08-05 10:13:06 +03:00
levlam
4ae305d8c4 Update max_media_timestamp when message content is changed. 2021-08-05 09:59:43 +03:00
levlam
2605cd374b Add has_media_timestamps. 2021-08-05 05:41:24 +03:00
levlam
9653cc9e3e Add separate get_message_content_media_duration. 2021-08-05 02:09:04 +03:00
levlam
da3b8f93a0 Hide too big media timestamps. 2021-08-04 09:28:53 +03:00
levlam
304280df69 Add message.can_get_media_timestamp_links. 2021-08-04 07:57:27 +03:00
levlam
45bf232417 Fimd media timestamp entities in find_entities. 2021-08-04 04:26:41 +03:00
levlam
14cf908017 Implement find_media_timestamps. 2021-07-28 08:30:22 +03:00
levlam
bdbf4db9ff Move fix_entity_offsets to a separate function. 2021-07-28 06:48:52 +03:00
levlam
389e92f1f4 Add skip_media_timestamps parameter to get_formatted_text. 2021-07-26 22:48:33 +03:00
levlam
ab71d6a200 Add textEntityTypeMediaTimestamp. 2021-07-26 07:53:36 +03:00
levlam
5c0fb88742 Move GetDeepLinkInfoQuery to LinkManager. 2021-08-08 11:26:51 +03:00
levlam
a4b35648ae Remove stickers_emoji_cache_time key from appConfig. 2021-08-08 11:14:26 +03:00
levlam
3c7cf84216 Don't call ExportChannelMessageLinkQuery for bots. 2021-08-07 09:10:28 +03:00
levlam
6c3294684c Fix parsing of PhotoSizeSource::FullLegacy. 2021-08-07 08:46:56 +03:00
levlam
5a8f8fbe82 Support awaited updates with promise in process_get_channel_difference_updates. 2021-08-06 07:07:03 +03:00
levlam
2f5020ad02 Improve logging. 2021-08-06 06:54:44 +03:00
levlam
86c6115d49 Faster switching back from getDifference to updates. 2021-08-05 21:29:40 +03:00
levlam
5b4a657228 Minor include fixes. 2021-08-05 01:09:39 +03:00
levlam
126fe070dc Remove unused secure_storage::EncryptedFile class. 2021-08-04 05:09:24 +03:00
levlam
d985e3cc84 Use preincrement for iterators. 2021-08-04 03:43:48 +03:00
levlam
f8ab675ad1 Better condition to skip merge of GIF and MP4 animations. 2021-08-03 03:13:56 +03:00
levlam
13d5854e2f Update match_cashtags. 2021-08-03 02:58:12 +03:00
levlam
0dc42e4410 Add source to get_message_sender_object. 2021-08-03 01:58:02 +03:00
levlam
48ce26b6c2 Improve source in get_dimensions. 2021-08-03 01:57:46 +03:00
levlam
9e7bce1b06 Don't warn about sent message ID decrease after message ID overflow. 2021-08-02 07:21:36 +03:00
levlam
aba7118679 Improve logging. 2021-08-02 06:38:18 +03:00
levlam
3b125ce511 Don't try to get full channel if it is inaccessible. 2021-08-02 06:20:59 +03:00
levlam
d1b985430c Add source to ContactsManager::load_user_full. 2021-08-02 06:14:59 +03:00