Commit Graph

8922 Commits

Author SHA1 Message Date
John Preston 056cab6268 Don't apply private userpic 'min' updates. 2021-03-16 18:15:19 +04:00
John Preston 61d0d240aa Add 'rejoin as' and 'change title' toast notifications. 2021-03-16 18:13:51 +04:00
John Preston 33ae4c2802 Improve layout of voice chat channel choosing. 2021-03-16 17:16:56 +04:00
John Preston 2c806b11d7 Always join voice chats by link with confirmation. 2021-03-16 17:16:01 +04:00
John Preston 199434c7a2 Add recording mark animation. 2021-03-16 14:48:12 +04:00
John Preston c65c554d88 Don't ask joinAs for voice chats each time. 2021-03-16 14:33:11 +04:00
John Preston 5d16359a5a Fix voice chat three-dot menu on macOS. 2021-03-16 13:50:40 +04:00
John Preston fd9ad04d15 Vazir Without-Latin instead of Without-Latin-UI.
Fixes #10536.
2021-03-16 13:29:46 +04:00
Ilya Fedin 0c8febce9c Avoid allocations for case-insensetive compare 2021-03-16 12:20:48 +03:00
John Preston 4659cc50f2 Allow inviting members in channel voice chats. 2021-03-15 22:40:59 +04:00
John Preston 2fddeb478b Fix long texts in invite link error toasts. 2021-03-15 20:49:38 +04:00
Ilya Fedin 4ffe1d3acc Use base::flat_map for pointer keys 2021-03-15 19:49:06 +03:00
Ilya Fedin cdf0512515 Remove unused variable in mainwidget 2021-03-15 19:49:06 +03:00
Ilya Fedin 971e188063 Replace remaining QFileInfo::exists 2021-03-15 19:49:06 +03:00
John Preston a909c1a813 Make default UI scale 120% on macOS Retina. 2021-03-15 20:33:41 +04:00
John Preston 4fc2b1f1a3 Append x64 to app_version on Windows. 2021-03-15 20:14:39 +04:00
John Preston fb04f33ae8 Fix long voice chat title elision on macOS. 2021-03-15 19:34:58 +04:00
John Preston b2c87e7a73 Fix three-dot toggle in voice chats. 2021-03-15 19:19:29 +04:00
John Preston 86a33ceea1 Fix audio device selection in voice chats. 2021-03-15 19:00:58 +04:00
John Preston a5d8d7a550 Add some validation for GroupThumbs. 2021-03-15 19:00:32 +04:00
Ilya Fedin 11723aedff Get rid of empty QStringLiterals 2021-03-15 17:19:59 +03:00
Ilya Fedin fe5de8f009 Fix non-working UniqueConnection in gtk file dialog 2021-03-15 17:19:44 +03:00
Ilya Fedin 6b68d001ae Get rid of deprecated ranges::action 2021-03-15 11:41:29 +03:00
Ilya Fedin ae0b9141dd Trying to get rid of unused variables... 2021-03-15 11:40:44 +03:00
Ilya Fedin 12e306dd7b Replace remaining multi-args 2021-03-15 11:21:05 +03:00
Ilya Fedin 508762cd2c Use static QFileInfo::exists 2021-03-15 11:21:05 +03:00
John Preston 9a73c99935 Beta version 2.6.2: Fix build. 2021-03-13 21:05:53 +04:00
John Preston ab2c99acf3 Beta version 2.6.2.
- Fix text disappearing because of cloud drafts sync.
2021-03-13 20:16:23 +04:00
Ilya Fedin a506e9b9eb Update submodules 2021-03-13 19:14:58 +03:00
Ilya Fedin c0c10689a1 Get rid of deprecated ranges::view usage 2021-03-13 19:14:58 +03:00
Ilya Fedin c4dcf064d5 Avoid multiple .arg usage as suggested by clazy 2021-03-13 19:08:33 +03:00
John Preston d9771d0f88 Fix voice chat lottie animation on Retina screens. 2021-03-13 20:05:17 +04:00
Ilya Fedin f25b2a2094 Apply autofixes from clazy 2021-03-13 15:25:47 +03:00
John Preston c9934c142d Fix drafts time tracking. 2021-03-13 16:07:59 +04:00
John Preston fb7a8cae33 Improve voice chat lottie animations. 2021-03-13 15:27:25 +04:00
John Preston ae5c7b19f6 Fix refreshing MainWindow::desktopRect. 2021-03-13 14:37:58 +04:00
23rd a5abe3d813 Added ability to Save / Delete GIFs from menu for inline bots.
Fixed #10511.
2021-03-13 12:59:12 +03:00
23rd b373a9ed22 Fixed filling menu for inline bots and autocomplete in HistoryWidget.
Regression was introduced in e1017380ec.
2021-03-13 12:59:12 +03:00
23rd 09966fb291 Removed Q_OBJECT from Storage::Uploader. 2021-03-13 12:59:11 +03:00
23rd d4bb62d055 Slightly refactored uploading of edit media. 2021-03-13 12:59:11 +03:00
John Preston bbeb9d3950 Add error display on link sharing. 2021-03-12 22:38:30 +04:00
John Preston ce84d9c84d Improve phrases in share voice chat link box. 2021-03-12 22:23:26 +04:00
John Preston ed4dea2b0e Show and play 'allowed to speak' notification. 2021-03-12 21:51:39 +04:00
John Preston 4d4a349f09 Support sharing only listener invite link. 2021-03-12 20:20:19 +04:00
John Preston 7430fbacfd Allow remove raised hand from context menu. 2021-03-12 20:20:03 +04:00
John Preston d624e2ef65 Fix build on macOS and Linux. 2021-03-12 19:21:35 +04:00
John Preston 0e72dc3974 Closed alpha version 2.6.1.1. 2021-03-12 17:31:10 +04:00
John Preston 68b0a85369 Rename RPCError to MTP::Error. 2021-03-12 16:58:26 +04:00
John Preston 5794679277 Don't accept drafts older than last saved.
I hope it finally fixes #4922, partially fixes #10001.

The rest of #10001 like RAM usage / crashes are unrelated to drafts.
2021-03-12 16:58:26 +04:00
John Preston 74c21039b3 Pass correct response timestamp to tgcalls. 2021-03-12 16:58:26 +04:00
John Preston 267e5fd9e0 Allow getting outer_msg_id in MTProto handlers. 2021-03-12 16:58:26 +04:00
John Preston e681b0d95a Support new url-auth auto-logins in links. 2021-03-12 16:58:26 +04:00
John Preston a2695ea0d7 Add CallMuteButton with lottie animations. 2021-03-12 16:58:26 +04:00
John Preston c0df6f7bca Join voice chats by invite links. 2021-03-12 16:58:26 +04:00
John Preston c587335ae1 Adapt share voice chat link box styles. 2021-03-12 16:58:26 +04:00
John Preston 16e1c740ce Support sharing speaker/listener link. 2021-03-12 16:58:26 +04:00
John Preston 6786d44b69 Start voice chat link sharing. 2021-03-12 16:58:26 +04:00
John Preston cd8c9a58df Show 'about' in voice chats for everyone. 2021-03-12 16:58:26 +04:00
John Preston ecbbdd5e74 Make custom 'Join As' menu item. 2021-03-12 16:58:26 +04:00
John Preston a8a85b2acf Show correct tooltip on stopping recording. 2021-03-12 16:58:26 +04:00
John Preston 8ba77defeb Custom menu items for recording / leaving. 2021-03-12 16:58:26 +04:00
John Preston 84e8053cd0 Move group call menu to a separate module. 2021-03-12 16:58:26 +04:00
John Preston 506cd8c7ad Improve 'Join As' selector design. 2021-03-12 16:58:26 +04:00
John Preston f8783c3bfc Move actions from Settings to Three-Dot-Menu. 2021-03-12 16:58:26 +04:00
John Preston b24e5ce809 Update API scheme with voice chat links. 2021-03-12 16:58:26 +04:00
John Preston 18901a4dc7 Update tgcalls for better stream->rtc upgrade. 2021-03-12 16:58:26 +04:00
John Preston 81e08599dc Raising hands reorder participants only for admins. 2021-03-12 16:58:26 +04:00
John Preston 7edc91e29e Show recording indicator. 2021-03-12 16:58:26 +04:00
John Preston 50265afe93 Respect raise_hand_rating in participants list. 2021-03-12 16:58:26 +04:00
John Preston 4d8ac05d28 Improve mute/raise_hand saving. 2021-03-12 16:58:26 +04:00
John Preston 22aa57ad6f Add recording start/stop to Settings. 2021-03-12 16:58:26 +04:00
John Preston 5bea88fd66 Update tgcalls to use ffmpeg instead of opusfile. 2021-03-12 16:58:26 +04:00
John Preston 361e3565d4 Add raised hand display in participants list. 2021-03-12 16:58:26 +04:00
John Preston fb579f1c10 Add ability to Raise Hand in ForceMuted state. 2021-03-12 16:58:26 +04:00
John Preston f66d7088ef Support broadcast mode in voice chats. 2021-03-12 16:58:26 +04:00
John Preston ccd440ea0b Update API scheme. 2021-03-12 16:58:26 +04:00
John Preston f41abe0a28 Update tgcalls. 2021-03-12 16:58:26 +04:00
John Preston cfd16c6f67 Ignore version in groupCall updates.
Otherwise we may skip participants update that changes the version.
2021-03-12 16:58:26 +04:00
John Preston ef1d98f3cf Show about in voice chat channels. 2021-03-12 16:58:26 +04:00
John Preston bc43168ca7 Add edit voice chat title. 2021-03-12 16:58:26 +04:00
John Preston b670ca2a51 Allow to rejoin with changing of 'join_as'. 2021-03-12 16:58:26 +04:00
John Preston 4d093f78e2 Update self as channel in voice chats. 2021-03-12 16:58:26 +04:00
John Preston 02e9b8fd18 Support joining to voice chats as a channel. 2021-03-12 16:58:26 +04:00
John Preston 02517f7221 Update API scheme to layer 125. 2021-03-12 16:58:26 +04:00
John Preston 2734cab3f2 Add webkitgtk4-devel to Dockerfile. 2021-03-12 16:28:56 +04:00
John Preston 2509f05e28 Fix clearing of album thumbnails cache.
I hope it fixes #7361.
2021-03-12 16:09:58 +04:00
Ilya Fedin 8fee156d21 Restore collecting Qt debug info on Linux 2021-03-12 16:09:13 +04:00
Ilya Fedin e493ab12dc Get rid of GetLauncherFilename
Use QGuiApplication::desktopFileName directly instead
2021-03-12 15:44:37 +04:00
Sprite 4d9c9bbd6f Add a comment to the header inclusion
Co-authored-by: 23rd <23rd@vivaldi.net>
2021-03-12 15:42:20 +04:00
Sprite c7c145b226 Complete report action callback 2021-03-12 15:42:20 +04:00
23rd 504f5ee5d7 Improved text resizing in playback speed item. 2021-03-11 12:29:17 +03:00
Ilya Fedin 3d54192681 Update lib_base 2021-03-11 11:31:26 +04:00
Ilya Fedin db0da70de6 Fix space on end of a g_warning 2021-03-11 11:19:26 +04:00
Ilya Fedin 59e6fd9989 Fallback to plain xdg-open as a last resort
Even though QDesktopServices::openUrl calls xdg-open, it doesn't fallback to xdg-open in confined environments.
This is useful in snap where portals aren't guaranteed to be present.
2021-03-11 11:19:26 +04:00
Ilya Fedin b24cba99e2 Catch ListActivatableNames errors 2021-03-10 11:22:14 +04:00
Ilya Fedin d6848c49e8 Fire reject signal on exceptions in XDP file dialog 2021-03-10 09:47:30 +04:00
Ilya Fedin 5d1601d9c9 Move Platform::FileDialog::Gtk::Supported to private namespace 2021-03-10 09:46:13 +04:00
Ilya Fedin 2c6a9614b2 Fix saving filename compatibility with xdg-desktop-portal-gtk 2021-03-10 09:46:13 +04:00
Ilya Fedin cc736158a6 Get rid of QByteArray in djbStringHash 2021-03-10 09:46:13 +04:00
Ilya Fedin 817610ddd7 Get rid of RunShellCommand 2021-03-10 09:46:13 +04:00
Ilya Fedin 77c8ca76b7 Remove duplicate ifndef DESKTOP_APP_DISABLE_DBUS_INTEGRATION in includes 2021-03-10 09:46:13 +04:00
Ilya Fedin 67cbe61879 Check if portal backend is present by absence of errors when getting portal version 2021-03-10 09:46:13 +04:00
Ilya Fedin 67eba93e29 Use gsl::finally in PortalAutostart 2021-03-10 09:46:13 +04:00
Ilya Fedin b918170464 Add portal-based open with dialog implementation 2021-03-10 09:46:13 +04:00
Ilya Fedin a27a54798c Update lib_ui 2021-03-10 08:57:16 +04:00
Ilya Fedin 5f1d56fbc2 Move gtk settings connections to getters 2021-03-10 08:57:16 +04:00
Ilya Fedin 1fc24398a0 React to moveEvent in media viewer 2021-03-06 12:08:20 +04:00
Ilya Fedin 99b7f051c7 Restore mouse button release hack in title widget event filter 2021-03-06 12:07:39 +04:00
23rd 658671089e Added timestamp highlighting in voice captions. 2021-03-05 13:36:39 +03:00
Ilya Fedin 092b6e7c18 Fix spaces on ends of lines 2021-03-05 13:31:56 +04:00
Ilya Fedin 23272430b4 Build with QT_NO_KEYWORDS 2021-03-04 12:07:54 +04:00
Ilya Fedin a29ff093f6 Fix some lines length in specific_linux 2021-03-04 12:07:54 +04:00
Ilya Fedin 37a8afaddf Move remaining usage of dbus to glibmm in notifications_manager_linux 2021-03-04 12:07:54 +04:00
Ilya Fedin b08c33cf8a Move remaining usage of dbus to glibmm in main_window_linux 2021-03-04 12:07:54 +04:00
Ilya Fedin a2f8546033 Move remaining usage of dbus to glibmm in specific_linux 2021-03-04 12:07:54 +04:00
Ilya Fedin 580a12ad7f Wait for response in PortalAutostart 2021-03-04 12:07:54 +04:00
Ilya Fedin d77df9905f Move NotificationServiceWatcher to glibmm 2021-03-04 12:07:54 +04:00
Ilya Fedin 82f92cffd3 Port XDPFileDialog to gdbus 2021-03-04 12:07:54 +04:00
Ilya Fedin 8042a83fd2 Move glib usage to glibmm 2021-03-04 12:07:54 +04:00
John Preston b38d6667c4 Fix build on macOS. 2021-03-04 11:55:20 +04:00
Daniil 3e379f3171 Expand moderating mode
Add additional moderating options.
2021-03-03 22:57:14 +04:00
GitHub Action 54685155b0 Update User-Agent for DNS to Chrome 88.0.4324.182. 2021-03-03 20:19:57 +04:00
John Preston 54f06740d5 Remove some App::wnd() calls. 2021-03-03 11:29:26 +04:00
John Preston 204dd0a869 Revert "Use custom method to focus main window on X11"
This reverts commit f9bba75395.

See #10441.
2021-03-01 11:47:59 +04:00
John Preston 8142acc709 Remove legacy #feed code. 2021-02-25 17:03:51 +04:00
John Preston 97d8ee75d5 Version 2.6.1.
- Fix time formatting in links.
- Fix copy QR code in night mode.
- Fix invite link sharing without a comment.
- Fix crash in link editing on Linux.
2021-02-24 21:41:37 +04:00
Ilya Fedin f9bba75395 Use custom method to focus main window on X11 2021-02-24 21:41:14 +04:00
Ilya Fedin 9b88f816d6 Use new Platform::IsX11 2021-02-24 21:41:14 +04:00
John Preston 28c918a36a Update submodules. 2021-02-24 21:40:40 +04:00
John Preston b638650b41 Fix invite link sharing without a comment. 2021-02-24 19:17:48 +04:00
John Preston 2d8e6f9745 Fix crash in EditLinkBox destruction.
Fixes #10432.
2021-02-24 19:07:49 +04:00
John Preston 627426f604 Fix copy QR code in night mode. 2021-02-24 15:10:19 +04:00
John Preston 7b80514986 Fix time formatting in links. 2021-02-24 15:10:06 +04:00
John Preston 740ffb3c64 Version 2.6.
- Set messages to auto-delete for everyone
24 hours or 7 days after sending.
- Control auto-delete settings in any of your chats,
as well as in groups and channels where you are an admin.
- To enable auto-delete, right click on the chat
in the chat list > Clear History > Enable Auto-Delete.
- Create invite links that work for a limited time
or a limited number of uses.
- See which users joined using your, or your admins', invite links.
- Turn any invite link into a QR code users can scan
with their phone cameras.
- To manage invite links, click
... > Manage Group/Channel > Invite Links.
- Convert groups that have reached 200,000 members
into unlimited Broadcast Groups.
2021-02-23 21:21:42 +04:00
John Preston 2054b73c3c Apply date edition in service messages. 2021-02-23 21:21:42 +04:00
John Preston 4875f0b003 Improve auto-delete service messages. 2021-02-23 21:21:42 +04:00
John Preston 522a71f7dc Improve auto-delete settings phrase. 2021-02-23 19:18:09 +04:00
John Preston 975fcb0c1a Show channel post authors in Saved Messages. 2021-02-23 19:12:22 +04:00
John Preston 61af510b7d Move Copy QR button to the left. 2021-02-23 18:55:14 +04:00
John Preston 16b4959e71 Add invite link QR code generation. 2021-02-23 18:47:43 +04:00
John Preston 27681db7f6 Show better error on invite peek discussion group open. 2021-02-23 17:16:29 +04:00
Ilya Fedin 1a3253ae8b Implement three items tray menu on Linux 2021-02-23 17:14:57 +04:00
John Preston 4928066be7 Fix animated userpics playback in media viewer.
Regression was introduced in 0ecd4d3b40.

I hope it fixes #10288.
2021-02-23 12:48:28 +04:00
John Preston b5a2b0fb98 Detect file mime from content as well on Linux. 2021-02-22 23:42:43 +04:00
John Preston 7dabcf5a32 Fix build on Linux. 2021-02-22 23:42:42 +04:00
John Preston aa46ec8bc1 Load photo thumbnail only if no inline thumbnail found. 2021-02-22 23:42:42 +04:00
John Preston 3d85ca2f84 Disable ttl for self and notifications. 2021-02-22 23:42:42 +04:00
John Preston 221b896117 Suggest converting to gigagroup. 2021-02-22 23:42:42 +04:00
John Preston 47d2ecf629 Fix a possible crash in Clear History. 2021-02-22 23:42:42 +04:00
John Preston f9f52302bb Ignore accents in contacts list sorting. 2021-02-22 23:42:42 +04:00
John Preston 0a678ae8bd No 'Clear History' for everyone in groups. 2021-02-22 23:42:42 +04:00
John Preston 018232680f Add support for admins without additional rights. 2021-02-22 23:42:42 +04:00
John Preston 433866f2c5 Closed alpha version 2.5.9.1. 2021-02-22 23:42:42 +04:00
John Preston ce5739048a Fix build on Xcode. 2021-02-22 23:42:42 +04:00
John Preston 707d090802 Don't allow to edit/revoke bot links. 2021-02-22 23:42:42 +04:00
John Preston d67a5dc510 Remove messages ttl edit from Manage Channel. 2021-02-22 23:42:42 +04:00
John Preston 5f030bc0c8 Remove debug-only ttl for messages. 2021-02-22 23:42:42 +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 45dcadfff4 Auto-login to domains from app config. 2021-02-22 23:42:42 +04:00
John Preston d5fe57100a Add tooltip after converting to gigagroup. 2021-02-22 23:42:42 +04:00
John Preston 5b6503bfed Fix auto-delete button when switching between chats. 2021-02-22 23:42:42 +04:00
John Preston 4896509ddf Allow clear history for everyone in small supergroups. 2021-02-22 23:42:42 +04:00
John Preston 14d525dade Add 'Clear History' to channels as auto-delete entry point. 2021-02-22 23:42:41 +04:00
John Preston 781e7a2e79 Update API scheme, simplify auto-delete. 2021-02-22 23:42:41 +04:00
John Preston 05488022c7 Use ttl_period from service messages as well. 2021-02-22 23:42:41 +04:00
John Preston 8188ab3033 Adapt UI for gigagroups. 2021-02-22 23:42:41 +04:00
John Preston 56b15b26bb Add convert to gigagroup button. 2021-02-22 23:42:41 +04:00
John Preston 6511d0dfcf Update more icons in the compose controls. 2021-02-22 23:42:41 +04:00
John Preston 73ae29ae25 Update API scheme. 2021-02-22 23:42:41 +04:00
John Preston 18d62c070d Show auto-delete info in message context menu. 2021-02-22 23:42:41 +04:00
John Preston 15e03687f8 Add auto-delete period edit box. 2021-02-22 23:42:41 +04:00
John Preston dd2dcd7fd9 Update icons in the compose controls. 2021-02-22 23:42:41 +04:00
John Preston f97064ed37 Add auto-delete control to compose controls. 2021-02-22 23:42:41 +04:00
John Preston 107d4aea36 Add admin link count phrase to langpack. 2021-02-22 23:42:41 +04:00
John Preston c9fccc8ea7 Improve revoked link view box. 2021-02-22 23:42:41 +04:00
John Preston 1426a43743 Add admin log filter for invite links. 2021-02-22 23:42:41 +04:00
John Preston c1fde61e03 Add admin log events about links, volumes, ttl. 2021-02-22 23:42:41 +04:00
John Preston 7a5dc72f86 Improve invite links UI. 2021-02-22 23:42:41 +04:00
John Preston 756fa702b2 Allow to edit chat ttl_period from Clear History. 2021-02-22 23:42:40 +04:00
John Preston d81c8f002d Improve other admins list style in Invite Links. 2021-02-22 23:42:40 +04:00
John Preston 047bf467b5 Allow editing links from ShowInviteLinkBox. 2021-02-22 23:42:40 +04:00
John Preston 3399a05f1f Improve phrases for invite links. 2021-02-22 23:42:40 +04:00
John Preston d188ab6719 Fix other admins links management. 2021-02-22 23:42:40 +04:00
John Preston ac33a8bd96 Fix other admin links box layout. 2021-02-22 23:42:40 +04:00
John Preston 6a6e355af4 Handle ttl_period locally. 2021-02-22 23:42:40 +04:00
John Preston 046a3906c4 Destroy messages by ttl_period dates. 2021-02-22 23:42:40 +04:00
John Preston 9262b773cb Fix invite link updates handling. 2021-02-22 23:42:40 +04:00
John Preston 4153603d09 Add ability to see invite links of other admins. 2021-02-22 23:42:40 +04:00
John Preston 9d3edb785c Return rich invite links section. 2021-02-22 23:42:40 +04:00
John Preston 502a3ca70f Update API scheme to layer 124. 2021-02-22 23:42:40 +04:00
John Preston fe7cdd7c0b Correctly update participant muted state locally. 2021-02-22 23:42:40 +04:00
John Preston ca0be2c3ff Update submodules. 2021-02-22 23:42:19 +04:00
Ilya Fedin 6d07d49659 Check for AllowNativeWindowFrameToggle in Controller::verticalShadowTop 2021-02-22 23:39:39 +04:00
Ilya Fedin 40b776befc Remove unneeded Q_DECLARE_METATYPE from specific_linux 2021-02-22 23:39:39 +04:00
Ilya Fedin 7ada85aa5a Remove unneeded forward-declaration for wayland integration 2021-02-22 23:39:39 +04:00
Ilya Fedin fd2e41024c Rearrange includes in XDP file dialog like in Qt dev branch currently 2021-02-22 23:39:39 +04:00
Ilya Fedin 4becfe409a Add Haiku autostart & system settings support 2021-02-22 23:39:00 +04:00
Ilya Fedin 14b09e88d6 Add DESKTOP_APP_DISABLE_X11_INTEGRATION 2021-02-22 23:39:00 +04:00
Ilya Fedin a40a8ac7ee Use local variable for QLibrary from BaseGtkIntegration 2021-02-22 23:38:09 +04:00