John Preston
849deb57e2
Move many widget classes to lib_ui.
2019-10-01 23:59:46 +03:00
John Preston
0c713a930a
Remove app.h / facades.h from precompiled header.
2019-10-01 23:59:46 +03:00
John Preston
76f0abecfd
Show sticker set on Ctrl+Click in stickers list.
2019-09-10 00:48:34 +03:00
John Preston
e3d7bf771f
Update current theme in realtime.
2019-09-06 19:31:07 +03:00
John Preston
6343221d7b
Remove many includes from stdafx.pch.
2019-09-06 19:31:07 +03:00
John Preston
ac8f924909
Show tdesktop cloud themes in a box.
2019-09-06 19:31:06 +03:00
John Preston
d95e54cb1a
Check if it is possible to 'Send now.'
2019-08-30 16:17:46 +03:00
John Preston
0a4f91a53d
Notify about published scheduled messages.
2019-08-29 10:01:28 +03:00
John Preston
3e895d0e85
Make tabbed selector working in scheduled section.
2019-08-27 19:10:37 +03:00
John Preston
03cdddfe18
Allow sending scheduled messages.
2019-08-27 19:10:37 +03:00
John Preston
caef7dde24
Bundle silent and scheduled to Api::SendOptions.
2019-08-27 19:10:37 +03:00
John Preston
815a18be94
Add initial scheduled list implementation.
2019-08-27 19:10:37 +03:00
John Preston
3814b0833d
Keep track of scheduled messages.
2019-08-27 19:10:37 +03:00
John Preston
e1fe373504
Fix localtime-related slowmode errors.
2019-08-20 12:42:37 +03:00
John Preston
d7f7a03eb4
Don't refresh large emoji messages when sent.
2019-08-09 11:51:35 +01:00
John Preston
4bad642190
Remove some more Auth() calls.
2019-08-09 11:50:49 +01:00
John Preston
850940116d
Move HistoryMedia to HistoryView namespace.
2019-08-09 11:50:49 +01:00
John Preston
3f2cc01f48
Allow sending silent messages.
2019-07-27 17:19:04 +02:00
John Preston
bacaf805b5
Pass SessionNavigation to some boxes.
2019-07-25 20:55:11 +02:00
John Preston
ff44094ded
Rename AuthSession to Main::Session.
2019-07-24 13:45:24 +02:00
John Preston
9cf4cf6dca
Move MTP::Instance to Main::Account.
2019-07-24 10:46:23 +02:00
John Preston
22f210ea8e
Support sending albums to slowmode groups.
2019-07-24 08:02:20 +02:00
John Preston
6aa930d510
Remove exceptions in TL parsing.
2019-07-24 08:02:20 +02:00
John Preston
f4754f210c
Update full channel on updateChannel.
2019-07-24 08:02:20 +02:00
John Preston
873b77cf40
Use UserData::isBot where applicable.
2019-07-24 08:02:20 +02:00
John Preston
234b0ffcf0
Disallow accidental failing forwarding.
2019-07-24 08:02:20 +02:00
John Preston
c50ade565a
Track sending and failed messages.
2019-07-24 08:02:20 +02:00
John Preston
01d0479335
Show slowmode button in chat.
2019-07-24 08:02:20 +02:00
John Preston
c5df4db621
Fix possible race conditions in msgid().
2019-07-15 16:00:30 +02:00
John Preston
567bf60644
Use getters in MTP classes.
2019-07-05 16:23:07 +02:00
23rd
1963fca7d3
Fixed media overlay closing with Back mouse button.
...
- Fixed #2998 .
2019-07-04 16:41:46 +02:00
John Preston
4917ca7b32
Remove all legacy global namespace langs.
2019-06-21 11:06:52 +02:00
John Preston
87fc066e67
Use tr:: instead of lang().
2019-06-21 11:06:51 +02:00
John Preston
3a34b15841
Add 'Share my phone number' click handler.
2019-06-21 11:06:45 +02:00
John Preston
5e3734d7bf
ReportSpamPanel -> HistoryView::ContactStatus.
2019-06-21 11:06:45 +02:00
John Preston
30dea3a2e7
Use isConstant bool instead of ContactStatus enum.
2019-06-21 11:06:45 +02:00
John Preston
14b82698f8
Update API scheme to layer 102.
2019-06-21 11:06:44 +02:00
John Preston
90ecec1d2e
Add more assertions in online update.
2019-06-17 14:23:50 +02:00
John Preston
a547f80ae9
Rename Window::Controller to Window::SessionController.
2019-06-06 13:21:40 +03:00
John Preston
f0ed5640db
Fix sending messages with links.
2019-05-28 14:33:35 +02:00
23rd
b4df7b4efd
Replaced observable updatedNotifier() with rpl.
2019-05-27 15:35:03 +02:00
John Preston
db66e93258
Allow to return to the original chat on forward.
2019-05-27 15:10:11 +02:00
John Preston
c4aac5fa0e
Update API scheme to layer 100.
2019-05-27 15:09:06 +02:00
John Preston
7ee16ba45c
Clear hidden animated stickers.
2019-05-27 14:11:26 +02:00
23rd
63fc552636
Fixed inability to close folder with Back mouse button.
...
- Fixed #5997 .
2019-05-12 22:30:19 +03:00
23rd
89a0cd3e81
Fixed closing folder by Escape when opened dialog in one column mode.
...
Dialog should be opened by shortcut.
2019-05-08 23:47:39 +03:00
John Preston
0247e876df
Remove locally saved empty histories.
2019-05-03 15:18:18 +04:00
John Preston
4ad8c4877c
Close archive by escape even if chat is shown.
2019-05-01 16:11:47 +04:00
John Preston
08bddc5579
Move messages data to AuthSession.
2019-05-01 16:11:42 +04:00
John Preston
52b9212625
Display top bar in archive.
2019-05-01 16:11:40 +04:00
John Preston
6dd8f32f66
Fix build on Xcode.
2019-05-01 16:11:39 +04:00
John Preston
2d1dcb36cb
Use folder_id / still_unread_count from updates.
2019-05-01 16:11:38 +04:00
John Preston
8fd811517b
Count unread correctly in folders.
2019-05-01 16:11:37 +04:00
John Preston
58519300ea
Support pinned chats in folders.
2019-05-01 16:11:37 +04:00
John Preston
305a611211
Load dialogs list in ApiWrap and Data::Session.
2019-05-01 16:11:34 +04:00
John Preston
0c0d6bc411
Move chats / contacts lists to Data::Session.
2019-05-01 16:11:33 +04:00
John Preston
76c3e9a529
Display title and userpic of archived chats.
2019-05-01 16:11:14 +04:00
John Preston
9bf8a8108d
Comment out non-folder feed code.
2019-04-25 14:16:30 +04:00
John Preston
905a024aed
Update API scheme to layer 99.
2019-04-25 14:16:29 +04:00
23rd
41b2e7c9c7
Added floating button in dialog list to jump to top.
2019-04-05 14:13:18 +04:00
23rd
5d8888bb8b
Refactored code.
...
- Refactored passing message id to edit media.
- Removed get/setEditMedia from mainwidget.
- Combined onEditMedia and onSendFileConfirm in single method.
- Added argument in FileLoadTask to pass message id to edit media.
- Renamed flags in apiwrap.
- Added check for allowing edit media when use clipboard.
- Removed unused fileIsValidForAlbum.
- Removed LOGs.
- Replaced _isNotAlbum with _isAlbum.
- Removed _viaRemoteContent.
- Removed _newMediaPath.
- Added empty() to MessageGroupId.
2019-04-02 18:14:12 +04:00
23rd
f3102573ea
Improved applying edition.
...
- Fixed cancel single media.
2019-04-02 18:14:12 +04:00
23rd
653fd1bb63
Added initial implementation of cancel of media uploading for editing.
2019-04-02 18:14:12 +04:00
23rd
1ed83cf193
Fixed subscribeToUploader.
2019-04-02 18:14:12 +04:00
23rd
be58e23775
Init edit media.
2019-04-02 18:14:11 +04:00
John Preston
99bb09374d
Use new animations engine everywhere.
2019-04-02 14:33:53 +04:00
John Preston
8759d637ff
Use StorageFileLocation in mtpFileLoader.
2019-03-29 14:24:07 +04:00
John Preston
386600baf9
Save and load sticker set thumbnails.
2019-03-24 12:12:44 +04:00
John Preston
eb1825defd
Add revoking of full history.
2019-03-24 12:12:44 +04:00
John Preston
dd8c526fb7
Prepare code for revoking of full history.
2019-03-24 12:12:43 +04:00
John Preston
2701e63406
Allow revoking only sent messages.
2019-03-24 12:12:43 +04:00
John Preston
a34e998c42
Handle fwd_from without a link to the account.
2019-03-24 12:12:42 +04:00
John Preston
0cd7399dc9
Update API scheme to layer 96.
2019-03-24 12:12:41 +04:00
John Preston
f9f84fd407
Fix idle time checking in MainWidget.
...
Regression was introduced in 78d00bcf22
.
Fixes #5779 , fixes #5780 .
2019-03-13 11:21:56 +04:00
John Preston
13a9b967e9
Use user phrases for support accounts.
2019-03-12 14:38:59 +04:00
John Preston
c063d94aa5
Remove DocumentData::actionOnLoad. Fix GIF open.
2019-03-11 19:07:35 +04:00
John Preston
6887993f92
Report streaming failed.
2019-03-11 12:08:13 +04:00
John Preston
dafa286b18
Show option to download on streaming error.
2019-03-11 12:08:11 +04:00
John Preston
8171828c2a
Fix build on GCC.
2019-03-11 12:08:09 +04:00
John Preston
fde8dd9607
Play streaming audio in player.
2019-03-11 12:08:08 +04:00
23rd
78d00bcf22
Refactored counting idle time.
...
- psIdleTime() was replaced with Platform::LastUserInputTime().
- _lastTimeVideoPlayedAt was moved to Application as _lastNonIdleTime.
- Call of updateNonIdle() was added while voice is recording.
- Fixed #5695 .
- Thanks Preston. =)
2019-03-10 22:02:58 +04:00
John Preston
fe618bd652
Use crl::time/now instead of TimeMs/getms.
2019-02-19 11:06:33 +04:00
23rd
193e454fd4
Fixed sending polls as reply to other messages.
...
Fixes #5550 .
2019-02-17 15:55:44 +04:00
John Preston
032694ad9e
Move files to media/audio and media/clip.
2019-02-13 15:41:33 +03:00
John Preston
26f1ade5ba
Optimize connecting widget.
2019-02-10 21:35:44 +03:00
John Preston
4d9464ed87
Remove flags checking for backgrounds.
...
Also limit image size to 2960px.
Fixes #5641 .
2019-02-04 18:53:00 +03:00
John Preston
c66b2b2291
Fix setting offline on quit.
2019-02-01 12:23:37 +03:00
23rd
769923c6cc
Fixed a keeping online status after application quit.
...
Fixes https://github.com/telegramdesktop/tdesktop/issues/5528 .
2019-02-01 11:52:25 +03:00
John Preston
fd8e9dad92
Fix pattern wallpapers with themes.
2019-01-29 14:52:33 +03:00
John Preston
b6edf4561d
Add support for pattern wallpapers.
2019-01-29 14:52:33 +03:00
John Preston
f506a5ea6c
Save wallpaper settings locally.
2019-01-29 14:52:33 +03:00
John Preston
a1baa23a52
Use both thumbnails in photos and documents.
...
Fixes #5602 .
2019-01-28 13:10:45 +03:00
John Preston
a70e72f75d
Application->Sandbox, Messenger->Application.
2019-01-23 12:51:58 +04:00
John Preston
4111da1dd0
Move some calls from App namespace.
2019-01-22 17:10:01 +04:00
John Preston
314e30272b
Replace SingleTimer with base::Timer.
2019-01-18 16:41:08 +04:00
John Preston
1894b8fcf7
Handle t.me/bg links with wallpapers / colors.
2019-01-18 16:41:07 +04:00
John Preston
e59a68cd68
Refresh wallpaper file references.
2019-01-17 12:21:31 +04:00
John Preston
466c6da5e3
Save wallpaper information.
2019-01-17 12:21:31 +04:00
John Preston
b8cb792831
Read background image async.
2019-01-17 12:21:31 +04:00
John Preston
0f9c2a62fe
Load fullres images of new wallpapers.
2019-01-17 12:21:31 +04:00
John Preston
287b3509ab
Optimize getPeerDialog requests.
2019-01-17 12:21:31 +04:00
John Preston
2a0b9a44dd
Remove supergroup migrate messages.
2019-01-17 12:21:31 +04:00
John Preston
22f1ffc72b
Use different phrases for default restrictions.
2019-01-17 12:21:30 +04:00
John Preston
9728ddeaf9
Handle migration to supergroups in boxes.
2019-01-17 12:21:30 +04:00
John Preston
67d12fa6d2
Improve update handling for legacy chats.
2019-01-17 12:21:30 +04:00
John Preston
18c6be0d3b
Unify legacy and megagroups information edit.
2019-01-17 12:21:29 +04:00
John Preston
eff90395b6
Add EditPeerPermissionsBox.
2019-01-17 12:21:29 +04:00
John Preston
61419b57c8
Prepare legacy group restrictions checking.
2019-01-17 12:21:29 +04:00
John Preston
c5a41e1f55
Divide data/data_peer and remove from PCH.
2019-01-17 12:21:29 +04:00
John Preston
0ce4d66601
Rename restrictionReason to unavailableReason.
2019-01-17 12:21:28 +04:00
John Preston
d2d6b319b6
Update API scheme to layer 93. Broken.
2019-01-17 12:21:28 +04:00
John Preston
1f8626b383
Move App::histories to Data::Session.
2019-01-17 12:21:28 +04:00
John Preston
c11b977f1d
Fix lagging chat list update in support.
2019-01-11 17:30:00 +04:00
John Preston
4002739682
Suggest adding bots to channels as admins.
2018-12-28 15:42:58 +04:00
John Preston
b00ca217b3
Don't autoread mentions with voice/video messages.
...
Voice/video message unread flag is the same that mention unread flag.
If we mark such mentions as read together with all others we mark
media as watched/listened instantly when they appear on the screen.
So now we mark as read only simple mentions, without "unread" media.
2018-12-26 14:30:55 +04:00
John Preston
6d08394adc
Divide history_media_types to several modules.
2018-12-21 17:09:31 +04:00
John Preston
47bdeeef9a
Poll data and updates handling added.
2018-12-21 17:09:31 +04:00
John Preston
eb7201a55b
Strictly match message / media types.
2018-12-21 17:09:30 +04:00
John Preston
7960706e60
Update API scheme to layer 90.
2018-12-17 11:01:30 +04:00
John Preston
e876c9b6a6
Disable support shortcuts when not support mode.
...
Fixes #5453 .
2018-12-13 12:48:31 +04:00
John Preston
b10ccce44a
Warn before running executable files.
2018-12-05 12:30:05 +04:00
John Preston
684ce09bb5
Add some automation for updates posting.
2018-12-04 14:32:46 +04:00
John Preston
0b619e50ba
HistoryHider moved to Window namespace.
2018-11-28 15:48:35 +04:00
John Preston
59ecf375b0
Move tg:// handlers to a separate module.
...
Also move joinGroupByHash and stickerSetBox from MainWidget.
2018-11-26 17:31:13 +04:00
John Preston
ef4f0168f8
Remove Qt MOC dependency for tabbed selector.
2018-11-22 10:50:41 +04:00
John Preston
21fab77c4b
Add support for incomplete login attempts.
2018-11-20 19:50:36 +04:00
John Preston
479a6d9ad2
Add some more shortcuts for Support.
2018-11-20 19:38:40 +04:00
John Preston
b3ffbeb63e
Improve code for Shortcuts handling.
2018-11-20 19:38:40 +04:00
John Preston
4960e08a24
Display occupied chats using drafts for support.
2018-11-20 19:38:39 +04:00
John Preston
36b702702b
Support [inputN|n]otifyBroadcasts setting.
2018-11-16 20:17:58 +04:00
John Preston
78da810114
Extend pinned messages support.
...
Support them in saved messages and normal groups.
2018-11-16 20:17:58 +04:00
John Preston
162da089ec
Handle t.me/setlanguage links.
...
Also support custom langpacks with base langpacks.
2018-11-16 20:17:58 +04:00
John Preston
ef64d9c188
Show round videos in Info layer.
2018-11-05 17:18:54 +04:00
John Preston
466444e17d
Extract float player controller.
2018-11-05 15:16:09 +04:00
John Preston
595134cab5
Move image-related modules to ui/image/.
2018-11-04 15:51:37 +04:00
John Preston
113f665295
Move Image and derived to ui/image.
2018-11-04 15:51:36 +04:00
John Preston
b847c8424a
Use single emoji sprite and scale + cache it.
2018-10-15 09:03:29 +03:00
John Preston
20e303d3e6
Read chats only on sending (support).
2018-10-09 19:27:16 +03:00
John Preston
a70613d929
Fix client side generated changelogs display.
...
Also use message date if available in MediaView.
2018-09-27 23:31:48 +03:00
John Preston
0c8709ca5f
Replace App::self() with Auth().user().
...
Always have self Auth().user() when AuthSession exists.
2018-09-19 19:22:13 +03:00
John Preston
cfce189201
Improve main menu > settings transition animation.
...
Remove full window cache in case of settings shown as a section.
2018-09-19 19:22:13 +03:00
John Preston
8c1cc51c2e
Move peer photo update from Messenger to ApiWrap.
2018-09-19 19:22:13 +03:00
John Preston
c913c77fef
Refresh file references when sending stickers.
2018-08-20 17:26:28 +03:00
John Preston
839885910c
Pass FileOrigin in all file downloads.
2018-08-20 17:26:28 +03:00
John Preston
ee16070abe
Update API scheme to layer 86.
2018-08-20 17:26:27 +03:00
John Preston
fddc3d6ad9
Workaround MSVC 15.8 regressions.
2018-08-17 14:01:16 +03:00
John Preston
bfae205fbe
Fix animation in single column layout.
2018-07-31 22:56:04 +03:00
John Preston
06fc23fc59
Fix possible premature export bar destruction.
2018-07-31 22:56:02 +03:00
John Preston
b44cf4a094
Remove error box on download start failure.
2018-07-31 22:53:37 +03:00
John Preston
52e7ddf079
Add '-externalupdater' command-line argument.
...
Now no-autoupdater mode can be switched on in runtime.
Also TDESKTOP_DISABLE_AUTOUPDATE build is disabled in CI (trivial).
Fixes #4895 .
2018-07-12 18:35:59 +03:00
John Preston
e3e8d083ea
Remember passport credentials for 30 minutes.
2018-07-11 17:56:07 +03:00
John Preston
b697824540
When following a post link push reply-return.
...
Fixes #4856 .
2018-07-11 17:56:06 +03:00
John Preston
cb8ff398a5
Improved html message layout.
2018-07-10 12:18:41 +03:00
John Preston
66822f7333
Add some HTML design to export, except messages.
...
NB Testing the layout, the app is not in a working condition.
2018-07-10 12:18:41 +03:00
John Preston
35c759c6bc
Mark [un]read from chats list.
2018-06-27 22:58:32 +01:00
John Preston
33095966af
Move sendMessage and sendInlineResult to ApiWrap.
2018-06-27 22:58:32 +01:00
John Preston
ff53404d5b
Update API scheme to layer 82.
2018-06-27 22:58:32 +01:00
John Preston
fcd2e28abb
Add some logs.
2018-06-24 15:44:53 +01:00
John Preston
0143fd28af
Suggest start export when time comes.
2018-06-23 00:56:53 +01:00
John Preston
e8dd277a00
Improve export progress / finished design.
2018-06-20 16:59:27 +01:00
John Preston
329db0d8e9
Export panel minimizes to a top bar, like a Call.
2018-06-20 01:02:36 +01:00
John Preston
75a40b83ae
Notify settings unknown => draw chats as muted.
...
Also request common notify settings at the app launch.
2018-06-07 22:28:09 +03:00
John Preston
9ebeddbed8
Request, show and require accept for updated ToS.
2018-06-06 21:37:01 +03:00
John Preston
a2d4b9260e
Add AUTH_KEY_DROP_ service notification support.
...
Also move logout code to Messenger.
2018-06-04 21:18:52 +03:00
John Preston
dd81f5d59f
Replace base::lambda with shorter term.
...
base::lambda -> Fn (type alias for std::function).
base::lambda_once -> FnMut (type alias for base::unique_function).
base::lambda_guarded -> crl::guard.
base::lambda_call_type_t -> crl::deduced_call_type.
2018-06-04 18:38:27 +03:00
John Preston
d0e854e9d8
Allow showing boxes in passport panel.
2018-06-03 23:16:35 +03:00
John Preston
43d19920e0
Apply markdown only when sending the message.
2018-05-31 21:30:28 +03:00
John Preston
734c410879
New notifications API, defaults for users/chats.
2018-05-30 18:44:46 +03:00
John Preston
d3f85b4c4e
Display channels promoted by proxy on top.
2018-05-13 21:26:35 +03:00
John Preston
8764da787b
Don't logout on some server-side problems.
2018-05-13 12:19:34 +03:00
John Preston
d2048f3c25
New connecting status design.
2018-05-08 20:31:33 +03:00
John Preston
993cb987a6
Improve autoupdate code, move it from Application.
2018-05-05 21:55:37 +03:00
John Preston
87d6081408
Version 1.2.16: Fix build in Xcode 9.3.
2018-04-07 12:47:08 +04:00
John Preston
060cdfea86
Cancel reply when setting a forwarding draft.
2018-03-11 23:42:03 +03:00
John Preston
e6c0f0f774
Up arrow always edits last available message.
...
Fixes #4480 .
2018-03-09 21:22:31 +03:00
John Preston
66ac4d6150
No fast reply and double click reply if selecting.
...
Also fix messages selection glitch.
2018-03-09 00:21:27 +03:00
John Preston
90179188b9
Improve sticker by emoji ordering.
...
First display recent by send/install date, then trending, then other.
2018-03-08 00:26:35 +03:00
John Preston
ccef155f7a
Receive and track recent sticker usage date.
2018-03-07 20:43:26 +03:00
John Preston
ee182ea684
API scheme downgraded to layer 76.
2018-03-06 20:48:24 +03:00
John Preston
7940ef24ab
Disallow hashtags of digits only.
2018-03-06 18:29:45 +03:00
John Preston
a285dca39e
Apply webpage media from sent message via bot.
2018-02-24 02:46:35 +03:00
John Preston
17a4d19beb
Add a create feed channels list box.
2018-02-20 19:56:41 +03:00
John Preston
07528be1e6
Support search in feed + scroll to search result.
2018-02-16 19:45:58 +03:00
John Preston
0f775e1e66
Support feeds search display in dialogs list.
2018-02-14 23:18:21 +03:00
John Preston
e102cb1469
Handle channelDifferenceTooLong in media and feed.
2018-02-08 12:20:54 +03:00
John Preston
8bacc74d8b
Request dialog list entries when needed.
...
Also save the original server-side int32 date in HistoryItems.
2018-02-08 12:20:54 +03:00
John Preston
0c5efb935d
Read feed while scrolling.
2018-02-08 12:20:54 +03:00
John Preston
a7f67c4bc9
Better chats list entries management.
...
Make unread counts and last message base::optional<>.
Remove ChannelHistory.
2018-02-08 12:20:54 +03:00
John Preston
5ebecb4de3
Display feed userpic in single column layout.
2018-02-08 12:20:53 +03:00
John Preston
17b913fb13
Fix feed messages loading both ways.
2018-02-08 12:20:53 +03:00
John Preston
63c1212ef1
Allow multiple items selection in HistoryView.
2018-02-08 12:20:52 +03:00
John Preston
9515520088
Update API scheme.
2018-02-08 12:20:52 +03:00
John Preston
65df137610
Add group/ungroup action in channel peer menu.
2018-02-08 12:20:51 +03:00
John Preston
a47981054f
Feed info profile placeholder.
2018-02-08 12:20:51 +03:00
John Preston
b9ad8bb700
Feed top bar placeholder.
2018-02-08 12:20:51 +03:00
John Preston
47ad5ea98a
Display active feed state in dialogs list.
2018-02-08 12:20:51 +03:00
John Preston
ebd4651ac2
Manage unread bar using HistoryView::Element-s.
2018-02-08 12:20:50 +03:00
John Preston
861ab85ca1
Fix voice/video messages in chats/feed.
2018-02-08 12:20:50 +03:00
John Preston
b91ebad8be
Improve items resize in history and feed.
2018-02-08 12:20:50 +03:00
John Preston
91f369a0b3
Handle view resize/repaint requests for mainView.
2018-02-08 12:20:49 +03:00