23rd
f9df37960b
Slightly improved code style in MainWidget.
2022-06-09 07:06:01 +03:00
23rd
43c0197445
Removed Ui::hideLayer from places that can be in non-primary windows.
2022-06-09 07:06:01 +03:00
John Preston
a780fbd09b
Add "ctrl-click-chat-new-window" option.
2022-06-07 22:05:37 +04:00
John Preston
ca731968ca
Improve premium sticker sync / preview.
2022-05-19 17:27:03 +04:00
John Preston
5478a8c014
Show reply info in scheduled forwards.
2022-05-19 17:27:03 +04:00
23rd
b14b1a415f
Removed Q_OBJECT from Dialogs::Widget.
2022-03-15 18:02:30 +03:00
John Preston
6dd720b76e
Don't show downloads bar while message is visible.
2022-03-09 14:52:44 +04:00
23rd
3ebb9af8f8
Removed Ui::hideSettingsAndLayer().
2022-03-04 11:25:10 +03:00
John Preston
aa3357eee1
Show connecting / proxy status above downloads.
...
Fixes #24125 .
2022-03-01 18:39:08 +03:00
23rd
5718789d53
Replaced Ui::InformBox and Ui::ConfirmBox with GenericBox.
2022-02-28 09:08:01 +03:00
John Preston
1710863231
Update some icons.
2022-02-27 20:26:52 +03:00
23rd
f095522cd7
Provided float player delegate only from primary MainWidget.
2022-02-25 19:41:16 +03:00
23rd
e8a5ddad37
Removed width calculation of dialogs list when this list is disabled.
2022-02-25 19:41:16 +03:00
John Preston
d89d8b09da
Preload chats in support switch.
2022-02-08 00:24:11 +03:00
John Preston
18e6e2da9e
Open specific chat only in one window.
2022-01-04 19:36:33 +03:00
John Preston
54247cd11b
Create dialogs widget only in the primary window.
2022-01-04 16:44:53 +03:00
23rd
3aacae2cb2
Added behavior to hide spoilers when switching sections.
2021-12-29 21:22:34 +03:00
John Preston
5e7e7eaa83
FullMsgId rely on PeerId instead of ChannelId.
2021-12-22 10:11:57 +00:00
John Preston
01c2be3f01
Add some checks for actions in a locked state.
2021-12-07 10:01:56 +04:00
John Preston
551e1f787c
Move volume dropdown management to audio player.
2021-11-26 18:00:21 +04:00
John Preston
8d66680a96
Show info about request chat admin incoming message.
2021-11-26 18:00:20 +04:00
John Preston
4f02f722ae
Fix order of playlist and volume / settings dropdowns.
2021-11-26 18:00:20 +04:00
John Preston
74cfaff100
Migrate Media::Player::Instance to rpl.
2021-11-26 18:00:20 +04:00
John Preston
92e2b91f81
Add repeat / order controls to the audio player.
2021-11-26 18:00:20 +04:00
John Preston
395100584f
Add a second dropdown with playback mode controls.
2021-11-26 18:00:20 +04:00
John Preston
b47e29b182
Fix custom chat themes in scheduled messages.
2021-11-26 18:00:19 +04:00
John Preston
773755d70e
Send as a channel in HistoryWidget.
2021-11-26 18:00:18 +04:00
John Preston
8a1140c09f
Extract Media::Player::Dropdown widget.
2021-11-18 21:51:10 +04:00
John Preston
4efeaacf5c
Add send context menu to StickerSetBox.
2021-11-02 20:11:20 +04:00
Ilya Fedin
847c01d605
Add Qt 6 support
...
Tested only on Linux so far
2021-10-21 13:15:00 +04:00
23rd
159beb138a
Moved api peer photo processing to separated file.
...
Removed MainWidget::deletePhotoLayer.
2021-10-20 22:56:19 +03:00
23rd
80461bd9fe
Moved ConfirmBox to Ui namespace.
2021-10-19 06:34:27 +03:00
23rd
6148edbc7d
Moved ConfirmBox to td_ui.
2021-10-19 06:34:27 +03:00
23rd
e3ef7d6631
Removed MainWidget::highlightStartTime.
2021-09-30 18:45:38 +03:00
23rd
21aa1f49d7
Moved views increment scheduler from MainWidget to separate file.
2021-09-30 18:45:38 +03:00
John Preston
ab0d2bf9c6
Initial chat theme changing.
2021-09-28 19:27:41 +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
John Preston
9dfc60026e
Add simple forwarding options on bar click.
2021-08-31 19:47:38 +03:00
John Preston
f5a323e40a
Move all background helper methods to chat_theme module.
2021-08-30 20:32:57 +03:00
23rd
76813db3ad
Completed ability to recover cloud password with email.
2021-08-17 15:08:57 +03:00
John Preston
2667bb3568
Move background caching to Window::SessionController.
2021-08-16 10:26:08 +03:00
John Preston
c2b1187948
Start support of linear gradient wallpapers.
2021-08-16 10:26:08 +03:00
John Preston
85cc3b30a0
Don't use MTP* for WallPaper flags.
2021-08-12 12:32:30 +03:00
23rd
479611f6df
Removed ui_getPeerForMouseAction.
2021-07-27 02:50:08 +03:00
23rd
a030907598
Refactored sending bot commands.
2021-07-27 02:50:08 +03:00
23rd
34cac3092f
Moved utils for sending bot commands to separated file.
2021-07-27 02:50:08 +03:00
23rd
82165bec5e
Replaced MainWidget::replyToItem with history element delegate.
2021-07-26 17:39:18 +03:00
John Preston
565877630f
Dither default background to avoid color banding.
2021-07-23 15:42:17 +03:00
John Preston
4276b6cce0
Use rpl for Window::Theme::Background updates.
2021-07-15 16:42:36 +03:00
Ilya Fedin
79cc797aff
Fix -Wunused-variable warnings
2021-07-13 21:43:34 +03:00
John Preston
2ffda9f240
Don't use MTP* for ChatAdminRight / ChatRestriction.
2021-07-08 13:34:06 +03:00
23rd
a631a28092
Removed App::pixmapFromImageInPlace.
2021-07-06 12:13:06 +03:00
John Preston
5519bb3523
Allow reporting private groups as well.
...
Fixes #7451 .
2021-06-24 17:44:55 +04:00
23rd
bb76818cc8
Split adaptive changed rpl::producer into two.
2021-06-24 11:25:35 +04:00
23rd
7c02d67665
Moved cancelUploadLayer from MainWidget to SessionController.
2021-06-18 09:39:10 +03:00
23rd
7924979dfb
Removed Ui::showPeerHistoryAtItem from facades.
2021-06-17 10:57:46 +04:00
23rd
583c3d3429
Moved static functions from DocumentData to separated file.
2021-06-17 10:57:45 +04:00
23rd
2ed3543b53
Renamed class back from AdaptiveModern to Adaptive.
2021-06-16 09:31:32 +03:00
23rd
80fe2f57e9
Removed Adaptive namespace from Window::Controller and MainWidget.
2021-06-16 09:31:32 +03:00
23rd
bf7f117323
Removed Adaptive namespace from Window::HistoryHider.
2021-06-16 09:31:32 +03:00
23rd
0d814066d6
Removed Adaptive namespace from top bar widgets.
2021-06-16 09:31:32 +03:00
23rd
77c8bf8176
Removed PeerChooseCancel global variable from facades.
2021-06-16 09:31:32 +03:00
John Preston
64a6838764
Fix crash in account switching.
2021-06-11 19:11:58 +04:00
23rd
f98e8f3e04
Fixed stuck of forward bar when using -sendpath argument.
...
Regression was introduced in b3d1602354
.
2021-05-31 08:54:22 +04:00
John Preston
c93ddf6aac
Separate Call/GroupCall delegates and Instance.
2021-05-24 22:45:13 +04:00
John Preston
15d17c8b0e
Add creating of a scheduled group call.
2021-04-06 18:41:16 +04:00
Ilya Fedin
cdf0512515
Remove unused variable in mainwidget
2021-03-15 19:49:06 +03:00
John Preston
68b0a85369
Rename RPCError to MTP::Error.
2021-03-12 16:58:26 +04:00
John Preston
54f06740d5
Remove some App::wnd() calls.
2021-03-03 11:29:26 +04:00
John Preston
8142acc709
Remove legacy #feed code.
2021-02-25 17:03:51 +04:00
John Preston
48821af475
Toggle selection by comments button click.
2021-02-22 23:42:42 +04:00
John Preston
467449ac13
When reporting peer allow to select messages first.
2021-02-22 23:42:42 +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
542abb26b9
Allow sharing link to chats.
2021-01-25 16:47:41 +04:00
23rd
dd01ece14a
Replaced snap util function with std::clamp.
2021-01-24 10:41:10 +03:00
John Preston
b6483cb65c
Use shared_ptr<Memento> for sections.
2020-12-14 18:48:10 +04:00
23rd
dc7a754418
Added ability to prevent application lock and account switch.
2020-12-14 17:09:24 +04:00
23rd
24b8377a2a
Added initial implementation of display sections prevent.
2020-12-14 17:09:24 +04:00
23rd
c8643aa1ee
Wrapped raw SectionMemento with unique_ptr.
2020-12-14 17:09:24 +04:00
John Preston
7f7ac64c6d
Init top bar blobs geometry safely.
2020-12-09 15:43:54 +04:00
John Preston
e3a73378e7
Add recent members userpics to group call bar.
2020-12-01 09:45:23 +03:00
John Preston
9e5006dd67
Add group call settings box.
2020-12-01 09:45:22 +03:00
John Preston
abb81c764e
Allow discarding group call when leaving.
2020-12-01 09:45:22 +03:00
John Preston
41591ff2e9
Add group calls top bar.
2020-12-01 09:45:21 +03:00
23rd
5eba680483
Added play button for recorded voice data.
2020-11-17 12:58:07 +03:00
John Preston
b3eb7858e6
Save local drafts in scheduled / replies sections.
...
Fix inline bot switch inline in scheduled / replies sections.
2020-11-17 12:58:07 +03:00
John Preston
4a0efb9114
Remove Q_OBJECT from HistoryWidget.
2020-11-17 12:58:07 +03:00
John Preston
4a8b59b788
Pass reply info to Window::PeerMenu.
2020-11-17 12:58:06 +03:00
John Preston
10adbecb9c
Support creating polls in RepliesSection.
2020-11-17 12:56:51 +03:00
John Preston
b7319c00b9
Fix go to original button in Pinned section.
2020-10-30 18:32:22 +03:00
John Preston
ae298818a8
Implement message bar with animations.
2020-10-30 18:32:17 +03:00
John Preston
3d54a263b8
Stop playing documents when items are deleted.
2020-10-23 15:22:38 +03:00
John Preston
c693fcb2b0
Reopen third column in Replies section.
...
Fixes #8674 , fixes #8687 .
2020-10-01 17:20:08 +03:00
23rd
015277c4d3
Disabled top moving of dialogs when window has normal adaptive layout.
...
Fixed #8370 .
2020-09-30 21:11:24 +03:00
John Preston
745bbfe268
Fix fast reply from message corner in Replies section.
2020-09-30 21:11:24 +03:00
John Preston
889139f31f
Handle links to replies section.
2020-09-29 19:03:28 +03:00
John Preston
61d89113d4
Handle correctly comment links for public channels.
2020-09-29 19:03:26 +03:00
John Preston
78d83a2c69
Show local sending messages in replies section.
2020-09-29 19:03:24 +03:00
John Preston
31e1ed216a
Add comments button to channel posts.
2020-09-29 19:03:23 +03:00
John Preston
1849f01b15
Jump to near reply inside a replies thread.
2020-09-29 19:03:22 +03:00
John Preston
55edb3bdfe
Update API scheme to layer 119. Count replies.
2020-09-29 19:03:18 +03:00
John Preston
49c230b898
Update API scheme to layer 118.
2020-09-29 19:03:18 +03:00
23rd
759e802eba
Added ability to pass Api::SendOptions from TabbedSelector.
2020-08-11 18:13:40 +04:00
23rd
5c097887ef
Added ability to edit media in scheduled messages.
2020-07-17 18:22:38 +03:00
John Preston
c62b39e287
Fix possible crash in call top bar hiding.
2020-07-17 08:32:51 +04:00
23rd
9445ce4b09
Moved sending of bot's CallbackData and CallbackGame to separate file.
2020-07-14 19:03:41 +04:00
John Preston
f10b2194e6
Add option for a native window frame.
...
Fixes #2958 .
2020-07-07 21:34:25 +04:00
John Preston
7d0eb3ba8e
Fix crash in MainWidget setup with audio player.
2020-06-30 19:05:12 +04:00
John Preston
c15019dee6
Fix crashes in MainWidget and ApiWrap.
2020-06-30 18:26:44 +04:00
John Preston
10ced19841
Fix crash in redundant checkStartUrl call.
2020-06-30 17:23:21 +04:00
23rd
0227b5f2fa
Removed Notify::inlineKeyboardMoved as completely unused code.
2020-06-29 06:26:09 +04:00
23rd
b629e0c43a
Replaced Notify::replyMarkupUpdated with Data::MessageUpdate.
2020-06-29 06:26:02 +04:00
John Preston
79a361ba43
Move call management to Core::App.
2020-06-25 21:57:36 +04:00
John Preston
2b5d3b022d
Fix player closing on logout.
2020-06-25 19:01:10 +04:00
John Preston
bf7aae5fc6
Allow float video player across accounts.
2020-06-25 18:17:37 +04:00
John Preston
5d6a494934
Move some more settings to Core::App.
2020-06-25 16:25:53 +04:00
John Preston
90a9cb4f8d
Fix playing music from a different account.
2020-06-25 15:12:50 +04:00
John Preston
65050bf9dd
Move export management to Core::App.
2020-06-25 11:14:05 +04:00
John Preston
28cafb129e
Load local stickers / gifs in Session().
2020-06-24 16:52:06 +04:00
John Preston
e7b8a52278
Move terms lock from Core::App to Session.
2020-06-24 11:56:16 +04:00
John Preston
34ef54e40b
Display check on the active account.
2020-06-23 21:53:43 +04:00
23rd
0696a2d5c0
Replaced mapping to rpl::empty_value with rpl::to_empty.
2020-06-23 21:53:43 +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
3a5ede534e
Count all accounts in Core::App().unreadBadge.
2020-06-23 21:53:41 +04:00
John Preston
357caf8007
Keep separate MTP::Config's for separate accounts.
2020-06-23 21:53:41 +04:00
John Preston
c83659f0c7
Fix logouting from the passcode.
2020-06-23 21:53:41 +04:00
John Preston
f450f81215
Remove non-UI calls to App::main.
2020-06-23 21:53:40 +04:00
John Preston
3c4e959468
Replace observer_peer with rpl interface.
2020-06-23 21:53:40 +04:00
John Preston
b0f9ad71dd
Check some more App::main()s.
2020-06-23 21:53:40 +04:00
John Preston
0ad7dcaef9
Remove MTP::MainInstance() global access point.
2020-06-23 21:53:40 +04:00
John Preston
0b028b959b
Move updates handling MainWidget -> Api::Updates.
2020-06-23 21:53:39 +04:00
John Preston
ee43027bea
Remove some usages of App::main().
2020-06-23 21:53:39 +04:00
John Preston
ea86433be5
Remove some activeAccount() calls.
2020-06-23 21:53:39 +04:00
John Preston
ad4afe9293
Move session data localstorage -> storage_account.
2020-06-23 21:53:39 +04:00
John Preston
fc174f742a
Move stickers code to Data::Stickers class.
2020-06-23 21:53:38 +04:00
John Preston
27af83267e
Move autolock checking to Core::Application.
2020-06-23 21:53:38 +04:00
John Preston
4b354b0928
Use Main::Session in download/upload.
2020-06-23 21:53:38 +04:00
John Preston
3878a1b212
Remove some more Auth() calls.
2020-06-23 21:53:38 +04:00
John Preston
99704e973b
Always keep current self-userpic loaded.
2020-06-16 19:40:43 +04:00
John Preston
bdbcd8e540
Use Main::Session in entities parsing.
2020-06-08 12:05:17 +04:00
John Preston
36fbdfb380
Simplify Image, remove ImageSource.
2020-06-01 18:09:33 +04:00
John Preston
6513422e40
Remove legacy image-related code.
2020-06-01 18:09:33 +04:00
John Preston
ae9ed820ee
Fix sticker set icons display.
2020-06-01 18:09:33 +04:00
John Preston
803593cd8d
Change Stickers::Set from value to object type.
2020-06-01 18:09:33 +04:00
John Preston
956c3af0ae
Start DocumentData::thumbnail move to DocumentMedia.
2020-06-01 18:09:30 +04:00
John Preston
40f12a2584
Keep document byte data only in DocumentMedia.
2020-06-01 18:09:30 +04:00
John Preston
97bab388ea
Use rpl for file download progress notifications.
2020-06-01 18:09:30 +04:00
John Preston
cb5863177f
Apply edition updates to search result previews.
2020-05-12 20:29:18 +04:00
John Preston
1fa22398a9
Fix returning of tabbed panel in third column.
2020-05-05 16:55:05 +04:00