Commit Graph

126 Commits

Author SHA1 Message Date
John Preston caa1ae4436 Fix inline bots with secondary usernames. 2023-11-01 16:39:46 +04:00
John Preston a197ed9e95 Allow choosing the link for the preview. 2023-10-26 14:08:52 +04:00
John Preston c035ec6917 Allow sending just webpage preview. 2023-10-26 14:08:44 +04:00
John Preston 0e79bd3d12 Show nice padded code blocks. 2023-10-13 10:08:29 +04:00
23rd 98bb520f47 Adjusted code for refactor of input fields in lib_ui. 2023-09-04 17:36:54 +04:00
John Preston 2f9ae75a65 Message edit: check changes correctly. 2023-08-21 11:06:05 +02:00
John Preston a02876562a Finish improved stories reply area theming. 2023-07-20 07:20:08 +04:00
John Preston 75d2b5994f Apply dark theme to reply controls in stories. 2023-07-20 07:20:08 +04:00
John Preston 65afa2c402 Detach ComposeControls from SessionController. 2023-05-17 15:51:52 +04:00
John Preston 2a4c39b9d7 Implement some power saving options. 2023-03-01 09:12:02 +04:00
John Preston 2886ae6909 Block field with toast if texts are not allowed. 2023-02-02 22:12:33 +04:00
John Preston 719466fcac Initial chat-translation feature implementation. 2023-02-02 22:12:32 +04:00
John Preston e73dbf5f65 Implement emoji search / categories. 2023-02-02 22:12:31 +04:00
John Preston 1b73b34810 Make HistoryItem a final class. 2022-12-26 14:24:04 +04:00
23rd 4fabb3f2a2 Replaced some qsl with u""_q literal. 2022-11-30 17:17:14 +03:00
23rd 2acedca6b7 Replaced some qstr with u""_q literal. 2022-11-29 14:12:50 +03:00
John Preston 34a2c5c8ce Display topic name in chats list. 2022-11-02 16:39:13 +04:00
John Preston 5f8fca0355 Don't allow custom emoji pseudo-links in EditLink. 2022-08-15 18:41:37 +03:00
John Preston c126a1e56e Simplify CustomEmojiId. 2022-08-15 13:17:24 +03:00
John Preston 7c284a9453 Drop custom emoji correctly in message edit preview. 2022-08-04 20:55:50 +03:00
John Preston b42f2784ab Allow sending premium emoji to Saved Messages. 2022-08-02 13:20:38 +03:00
John Preston 323c2a6aa5 Don't send custom emoji links to generate previews. 2022-07-26 20:12:11 +03:00
John Preston 5ce8ed80bf Show premium emoji tooltip on paste. 2022-07-26 20:12:11 +03:00
John Preston 0ed434cfaf Show all stickers as emoji after default categories. 2022-07-26 20:12:09 +03:00
John Preston 2fc43a44a4 Don't paste custom emoji for non-premium users. 2022-07-26 20:12:08 +03:00
John Preston ee8d8171f7 Support custom emoji in custom notification replies. 2022-07-26 20:12:08 +03:00
John Preston 7a10d3d82c Support animated emoji in share box comment. 2022-07-26 20:12:08 +03:00
John Preston 806c5ddf29 Support animated emoji in caption edit fields. 2022-07-26 20:12:08 +03:00
John Preston 2499955496 Support custom emoji in the message input field. 2022-07-26 20:12:08 +03:00
John Preston 5fe1988d0a Suggest bot commands only in the start of the field. 2022-06-18 00:01:47 +04:00
23rd 309d4ea702 Added ability to provide field style to EditLinkBox. 2022-03-06 18:11:47 +03:00
23rd cf55f1a7cd Added ability to use EditLinkBox without SessionController. 2022-03-06 18:11:47 +03:00
23rd 87bdfaf731 Added ability to skip dictionaries manager in context menu. 2022-03-06 18:11:47 +03:00
23rd b5aafa521a Replaced EditLinkBox with generic box. 2022-03-04 11:25:10 +03:00
23rd 5e13949eda Added ability to initialize spellchecker without SessionController. 2022-03-04 11:25:10 +03:00
23rd b900ac2b1d Removed Window::SessionController from ManageDictionariesBox. 2022-03-04 11:25:10 +03:00
23rd 0143d22a21 Split qt_adapters to separated files. 2022-01-26 10:33:28 +03:00
23rd 90dedb7b70 Added spoiler support to input field. 2021-12-29 21:22:33 +03:00
Ilya Fedin 847c01d605 Add Qt 6 support
Tested only on Linux so far
2021-10-21 13:15:00 +04:00
23rd 900a7d0b2b Appended references to const auto types in loop to prevent copying.
Suggested by Apple Clang.
2021-09-09 16:32:04 +03:00
23rd b422ec025e Removed Ui::show from classes that have pointer to Controller. 2021-06-17 10:57:45 +04:00
John Preston 1342077dcb Use 48 bit [User/Chat/Channel]Id, 56 bit PeerId. 2021-04-09 15:05:00 +04:00
John Preston 8f0e23bb25 Improve editing messages with link previews.
Now preview state can be one of (allowed, cancelled, empty-in-edit).

In case of editing a message without preview we set the state to
empty-in-edit and it changes to allowed if the links in the message
are changed somehow.

That way we don't need to cancel the preview when editing a message
with a cancelled preview and at the same time adding a link to
a message that had no preview in the first place will add a preview.
2021-01-29 15:27:17 +04:00
John Preston ae298818a8 Implement message bar with animations. 2020-10-30 18:32:17 +03:00
John Preston c535a7c564 Use MaskedInputField for URL input. 2020-09-29 19:03:29 +03:00
23rd edceed28d7 Moved code for send context menu to separate file. 2020-08-11 18:13:40 +04:00
23rd a95a324401 Separated send menu filling to another method. 2020-08-11 18:13:40 +04:00
John Preston 83538675ce Move a lot of settings to Core::Settings. 2020-06-23 21:53:42 +04:00
John Preston 4d6cc58f0d Move session settings to main_session_settings. 2020-06-23 21:53:42 +04:00
John Preston ee43027bea Remove some usages of App::main(). 2020-06-23 21:53:39 +04:00