levlam
|
cd458ce522
|
Improve log message.
|
2022-05-31 16:10:11 +03:00 |
|
levlam
|
dc8d94383a
|
Call get_message_id once in on_get_history.
|
2022-05-31 15:56:38 +03:00 |
|
levlam
|
bcea804864
|
Keep chat position if failed to add last message to it.
|
2022-05-31 15:39:41 +03:00 |
|
levlam
|
1c2ff4fd5a
|
Add note that log messages aren't guaranteed to be encoded in UTF-8.
|
2022-05-31 15:16:34 +03:00 |
|
levlam
|
b4a643cffd
|
Simplify file size error creation.
|
2022-05-31 15:12:40 +03:00 |
|
levlam
|
a282cce5d4
|
Add and use utf8_encode.
|
2022-05-31 15:08:16 +03:00 |
|
levlam
|
bf0caca138
|
Simplify LinkManager::check_link usage.
|
2022-05-31 01:41:01 +03:00 |
|
levlam
|
de34ffb530
|
Always use error code 400 in SecureValue processing errors.
|
2022-05-30 22:59:59 +03:00 |
|
levlam
|
63a4027ab2
|
Add source to on_get_poll.
|
2022-05-29 19:31:36 +03:00 |
|
levlam
|
5b089ee762
|
Log original decrypted message version without local replacements.
|
2022-05-28 23:44:41 +03:00 |
|
levlam
|
d2c6e7726f
|
Avoid fixing last_new_message_id to yet_unsent message in secret chats.
|
2022-05-26 18:51:22 +03:00 |
|
levlam
|
c0890a5f8a
|
Improve error message.
|
2022-05-26 18:35:16 +03:00 |
|
levlam
|
c3f9904052
|
Don't send typings about copied messages.
|
2022-05-26 17:44:14 +03:00 |
|
levlam
|
43e51f8f65
|
Explicitly process reaction notifications as unsupported.
|
2022-05-26 17:23:52 +03:00 |
|
levlam
|
a90dd653af
|
Avoid logging to error if invalid dimensions were provided by app.
|
2022-05-26 17:13:31 +03:00 |
|
levlam
|
f8951e6154
|
Improve log message.
|
2022-05-26 17:01:47 +03:00 |
|
levlam
|
a136ee5caa
|
Locally search for short usernames, beginning with @.
|
2022-05-26 16:53:32 +03:00 |
|
levlam
|
0c839c8169
|
Ignore QUERY_TOO_SHORT errors.
|
2022-05-26 16:38:37 +03:00 |
|
levlam
|
ccbb9183c8
|
Don't try to load administrators in left basic groups.
|
2022-05-26 16:02:14 +03:00 |
|
levlam
|
38b56792cd
|
Reload group call if number of members became negative.
|
2022-05-26 15:32:15 +03:00 |
|
levlam
|
980c4f9f71
|
Silence expected warning.
|
2022-05-26 15:21:56 +03:00 |
|
levlam
|
7962df5e35
|
Fix poll unload.
|
2022-05-26 14:44:30 +03:00 |
|
levlam
|
c5dfa59782
|
Fix MessagesManager::can_delete_dialog.
|
2022-05-24 17:41:32 +03:00 |
|
levlam
|
80f3c88bdb
|
Move get_invite_text and save_app_log to Application.cpp.
|
2022-05-24 14:56:02 +03:00 |
|
levlam
|
d04552045d
|
Add warnings about long application of postponed updates.
|
2022-05-22 22:09:46 +03:00 |
|
levlam
|
15a11d7053
|
Move expected logging about secret chat updates to INFO.
|
2022-05-21 23:07:28 +03:00 |
|
levlam
|
c2a580bbfb
|
Don't try to reload data without authorization.
|
2022-05-20 16:59:14 +03:00 |
|
levlam
|
9c9a74c52d
|
Workaround GCC 7.4.0 false warning.
|
2022-05-19 19:50:02 +03:00 |
|
levlam
|
16959e33e4
|
Use WaitFreeHashMap for message_id_to_dialog_id_.
|
2022-05-19 19:34:48 +03:00 |
|
levlam
|
18cd0dd95e
|
Workaround GCC 12 false positive warnings.
|
2022-05-18 16:59:15 +03:00 |
|
levlam
|
1616513c4c
|
Add and use MessagesManager::is_deleted_message.
|
2022-05-18 12:16:32 +03:00 |
|
levlam
|
e65c0827a4
|
Drop dangling replies to yet unsent messages.
|
2022-05-17 16:27:46 +03:00 |
|
levlam
|
0bf2aaf4f2
|
Resolve identifiers of being added secret messages by their random_id.
|
2022-05-17 16:19:39 +03:00 |
|
levlam
|
19407656b5
|
Add more logging and don't set unused message flags.
|
2022-05-17 15:30:58 +03:00 |
|
levlam
|
f53f750b39
|
Change replied message ID from yet unsent to persistent after the message is sent.
|
2022-05-17 15:06:40 +03:00 |
|
levlam
|
bf37753056
|
Keep reply_to_message_id for forwards to secret chats.
|
2022-05-16 21:10:18 +03:00 |
|
levlam
|
8f42c97252
|
Fix CHECK.
|
2022-05-16 20:00:59 +03:00 |
|
levlam
|
26ceefb2d4
|
Keep reply_to_message_id for yet unsent messages between restarts.
|
2022-05-16 19:47:06 +03:00 |
|
levlam
|
190117c839
|
Add local reply_to_message_id to forwarded by the server messages.
|
2022-05-16 18:11:49 +03:00 |
|
levlam
|
b6c7da172c
|
Log received messages.
|
2022-05-15 18:37:55 +03:00 |
|
levlam
|
883f6d2286
|
Copy can_be_deleted flag to Channel to avoid ChannelFull loading.
|
2022-05-15 12:48:22 +03:00 |
|
levlam
|
5a1a64764b
|
Add check that there are no two new chats added simultaneously.
|
2022-05-15 10:53:06 +03:00 |
|
levlam
|
70050704d2
|
Remove unimplemented UploadCallback::on_progress.
|
2022-05-15 01:13:07 +03:00 |
|
levlam
|
b42c74f561
|
Minor OptionManager::set_option improvements.
|
2022-05-14 20:09:08 +03:00 |
|
levlam
|
514ffd7e77
|
Minor ConfigShared improvements.
|
2022-05-14 19:59:11 +03:00 |
|
levlam
|
c17520fdbc
|
Implement getSupportUser with request promise instead of RequestActor.
|
2022-05-14 18:54:21 +03:00 |
|
levlam
|
1995cbe6bc
|
Simplify getSupportUser implementation.
|
2022-05-14 18:29:34 +03:00 |
|
levlam
|
941206495a
|
Reload data once an hour.
|
2022-05-13 13:56:18 +03:00 |
|
levlam
|
de5f047dba
|
Remove all emoji modifiers, including modifiers in the middle.
|
2022-05-12 18:02:27 +03:00 |
|
levlam
|
f1f6e61cd1
|
Reload all data when going online.
|
2022-05-12 16:40:53 +03:00 |
|
levlam
|
6790c309ac
|
Move data reloading to UpdatesManager.
|
2022-05-12 16:34:13 +03:00 |
|
levlam
|
6f8b513597
|
Improve log message.
|
2022-05-12 15:18:07 +03:00 |
|
levlam
|
c0eb211476
|
Locally fix until_date before sending it to the server.
|
2022-05-12 14:38:45 +03:00 |
|
levlam
|
f9f309d334
|
Simplify SecretInputMedia creation.
|
2022-05-11 01:53:18 +03:00 |
|
levlam
|
35a0a7c383
|
Ignore empty next_offset in group calls with new participants added to the end of the list.
|
2022-05-10 21:48:06 +03:00 |
|
levlam
|
f972b3ad56
|
Add separate function for server group call participant order calculation.
|
2022-05-10 21:37:10 +03:00 |
|
levlam
|
c44c0f3fd3
|
Show unmuted group call participants first.
|
2022-05-10 21:26:58 +03:00 |
|
levlam
|
661c75fa42
|
Log number of group call updates to be processed.
|
2022-05-10 21:02:03 +03:00 |
|
levlam
|
71d5dd526e
|
Separately register scheduled and local polls.
|
2022-05-09 01:58:17 +03:00 |
|
levlam
|
77019caf61
|
Unload unused for some time polls.
|
2022-05-09 01:46:46 +03:00 |
|
levlam
|
3d796860d2
|
Use server-side forward as copy.
|
2022-05-08 23:54:04 +03:00 |
|
levlam
|
995b06b317
|
Drop ChatFull/ChannelFull photo after updating chat/channel photo.
|
2022-05-06 12:41:55 +03:00 |
|
levlam
|
0a91c2b097
|
Remove unused argument.
|
2022-05-05 23:07:42 +03:00 |
|
levlam
|
ab3a8282d4
|
Add warning when receive inconsistent photos in chatPhoto and chatPhotoInfo.
|
2022-05-04 20:08:32 +03:00 |
|
levlam
|
bf05cf1680
|
Update user photo from user full photo.
|
2022-05-04 20:02:35 +03:00 |
|
levlam
|
1191f13f91
|
Fix compilation error.
|
2022-05-04 17:17:40 +03:00 |
|
levlam
|
fc6b1c0ea8
|
Enable back log out.
|
2022-05-03 16:31:58 +03:00 |
|
Arseny Smirnov
|
852fe4f24b
|
Session: force ack when we received unknown answer
|
2022-05-03 17:17:36 +04:00 |
|
levlam
|
fb1efdbba8
|
Return back notification.is_silent.
|
2022-05-03 16:09:40 +03:00 |
|
levlam
|
4b7dab920e
|
Don't update last_success_timestamp_ in Session::on_update with PFS.
|
2022-05-03 16:06:14 +03:00 |
|
Arseny Smirnov
|
0450b05757
|
Session: improve key immunity condition
|
2022-05-03 16:33:09 +04:00 |
|
levlam
|
0d0b641ac6
|
Log out only if there is main auth key, but it isn't logged in.
|
2022-05-02 21:41:04 +03:00 |
|
levlam
|
d95b20b631
|
Try not to override "auth" option.
|
2022-05-02 21:20:39 +03:00 |
|
levlam
|
de15cdb1f0
|
Log out if key check has failed.
|
2022-05-02 21:17:06 +03:00 |
|
levlam
|
746816e7d7
|
Add Global::log_out helper.
|
2022-05-02 20:59:07 +03:00 |
|
levlam
|
d6569d43fd
|
Fix DcAuthManager::check_authorization_is_ok.
|
2022-05-02 20:44:37 +03:00 |
|
levlam
|
134b7e7d01
|
Remove unused function.
|
2022-05-02 20:35:37 +03:00 |
|
Arseny Smirnov
|
449974d425
|
Double check authorization during start up
|
2022-05-02 19:34:01 +04:00 |
|
levlam
|
3886cc9c13
|
Minor SessionType improvements.
|
2022-05-02 13:54:22 +03:00 |
|
alyral
|
76d687e62d
|
Add session type field (#1950)
|
2022-05-02 13:46:16 +03:00 |
|
levlam
|
4652292037
|
Use count instead of find if appropriate.
|
2022-05-01 23:03:06 +03:00 |
|
levlam
|
00aa9f54bd
|
Use ContactsManager::get_dialog_id in on_get_common_dialogs.
|
2022-04-30 21:22:27 +03:00 |
|
levlam
|
68ad0b4317
|
Add ContactsManager::get_dialog_id.
|
2022-04-30 21:13:01 +03:00 |
|
levlam
|
f2dead72ca
|
Use can_delete_dialog in delete_dialog_history.
|
2022-04-29 14:50:54 +03:00 |
|
levlam
|
ddbfc45925
|
Add MessagesManager::can_delete_dialog.
|
2022-04-29 14:33:35 +03:00 |
|
levlam
|
834a541bc3
|
Add apply_pending_user_photo and use it in on_get_user_full.
|
2022-04-29 11:23:27 +03:00 |
|
levlam
|
3cdd08feef
|
Add missing flag assignment.
|
2022-04-29 11:02:53 +03:00 |
|
levlam
|
6a87f0c6ef
|
Avoid updating chat photo minithumbnail to 40x40 full minithumbnail.
|
2022-04-29 10:50:10 +03:00 |
|
levlam
|
58ff3d5e5d
|
Ignore photo size for fake dialog photo.
|
2022-04-28 22:29:10 +03:00 |
|
levlam
|
840cedf49c
|
Drop ChatFull/ChannelFull photos if chat/channel photo is different.
|
2022-04-28 21:18:57 +03:00 |
|
levlam
|
f421cff7f3
|
Add and use is_same_dialog_photo.
|
2022-04-28 21:02:44 +03:00 |
|
levlam
|
d106148618
|
Update chat/channel photo whenever receive new full chat/channel photo.
|
2022-04-28 20:35:44 +03:00 |
|
levlam
|
b6f711044f
|
Add as_dialog_photo.
|
2022-04-28 20:33:24 +03:00 |
|
levlam
|
cdd82c67c9
|
Unify update variable names.
|
2022-04-28 18:39:05 +03:00 |
|
levlam
|
576c96a83d
|
Reload number of unread reactions after receive new edited message.
|
2022-04-28 18:31:25 +03:00 |
|
levlam
|
ad65446480
|
Reget unread reaction count when receive update about unread reaction on unknown message.
|
2022-04-28 17:43:29 +03:00 |
|
levlam
|
36c2ef9e62
|
Ensure that the current user is among recent choosers of the chosen reaction.
|
2022-04-27 22:13:05 +03:00 |
|
levlam
|
ee157920e9
|
Expect that it is not possible to see added reactions under discussion messages.
|
2022-04-27 21:47:50 +03:00 |
|
levlam
|
7cabdbc74f
|
Improve flags initialization in do_forward_messages.
|
2022-04-27 10:02:35 +03:00 |
|
levlam
|
ea66c0984f
|
Return encrypted secure file if can't decrypt it.
|
2022-04-27 02:39:00 +03:00 |
|