Compare commits

...

3886 Commits

Author SHA1 Message Date
John Preston
b474db2106 Version 4.3.4.
- Fix OpenGL regression in Qt and language detection.
2022-11-25 12:21:45 +01:00
Ilya Fedin
ca408828c1 Update patches on Linux 2022-11-25 12:20:12 +01:00
Ilya Fedin
d63e483615 Use command-chain for desktop-launch in snap 2022-11-25 12:20:12 +01:00
Ilya Fedin
bea3e5d48f Add mm-common to glibmm build-packages 2022-11-25 12:20:12 +01:00
Ilya Fedin
8b20c27ba7 Add protobuf to snap 2022-11-25 12:20:12 +01:00
Ilya Fedin
e561f93d44 Revert "Implement sonnet-based language detection backend"
This reverts commit 4b2d8b0c53.
2022-11-25 12:20:12 +01:00
Ilya Fedin
5df4dd36a7 Update Python to 3.8 in Docker 2022-11-25 11:14:15 +01:00
John Preston
1e6937a075 Version 4.3.3.
- Fix an issue with media auto-download on Windows.
- Fix switching accounts in maximized window.
- Fix collapsed archive row layout.
2022-11-23 23:09:31 +01:00
John Preston
d714c1edc0 Update submodules. 2022-11-23 23:01:05 +01:00
John Preston
ebf46e1270 Paint unread counter in expanded archive row. 2022-11-23 23:01:05 +01:00
John Preston
116a598508 Fix displaying of collapsed archive row. 2022-11-23 23:01:05 +01:00
23rd
f9a14fc6bc Fixed first check for skipping translation. 2022-11-23 23:01:05 +01:00
23rd
7cdc3eb2b2 Fixed translation of non-server messages. 2022-11-23 23:01:04 +01:00
23rd
294432ceed Differentiated replies in groups by color. 2022-11-23 23:01:04 +01:00
23rd
551bf4f9a7 Switched default language for skip translation to application language. 2022-11-23 23:01:04 +01:00
Ilya Fedin
4b2d8b0c53 Implement sonnet-based language detection backend 2022-11-23 23:00:06 +01:00
John Preston
58e35dec12 Fix auto-download with LTCG on Windows. 2022-11-23 10:07:16 +01:00
John Preston
ae90347c6c Revert "Fixed switching between accounts with filters at screen edge."
This reverts commit 8f3c3b2a54.

Regressions with account switch in a maximized window.
2022-11-23 00:44:31 +01:00
John Preston
1aece79a47 Version 4.3.2.
- Enable message translations in Settings > Language.
- Fast jump to the last updated topic.
- Bug fixes and other minor improvements.
2022-11-22 00:28:07 +00:00
John Preston
79a2d85287 Fix build with GCC. 2022-11-22 00:28:07 +00:00
23rd
937d243a4c Respected translation preferences in sections. 2022-11-22 00:28:07 +00:00
23rd
f82bae15f0 Added translation preferences. 2022-11-22 00:28:07 +00:00
23rd
7aede75e43 Added external cld3 library. 2022-11-22 00:28:03 +00:00
23rd
b72fce4894 Removed LanguageBox::createMultiSelect method. 2022-11-22 00:26:49 +00:00
23rd
32cebc0d9b Fixed position of show more button in translate box. 2022-11-22 00:26:49 +00:00
John Preston
2de76cb75b Highlight primary usernames in profiles like the additional ones. 2022-11-22 00:26:49 +00:00
John Preston
ab06574fd9 Add some margin for one-line profile values copying. 2022-11-22 00:26:49 +00:00
John Preston
473e190aeb Fix single-column forum-by-user search. 2022-11-22 00:26:49 +00:00
John Preston
4b5a0942b1 Open just topic in quick jump-to-last-topic click. 2022-11-22 00:26:49 +00:00
John Preston
106bdae9ce Always open first topic in two-column layout. 2022-11-22 00:26:49 +00:00
John Preston
f97e5d6307 Fix build with Xcode. 2022-11-22 00:26:49 +00:00
John Preston
bb106b07af Show small unread mark for non-opened topics. 2022-11-22 00:26:49 +00:00
John Preston
ce631436bf Show non-read non-opened topics as unread. 2022-11-22 00:26:49 +00:00
23rd
bc5aa7338e Removed inaccessible users from choosing recipients for forwards box. 2022-11-22 00:26:49 +00:00
23rd
6db7840fa7 Added translate ability to context menu. 2022-11-22 00:26:49 +00:00
23rd
921d2239c7 Added initial implementation of choosing translation language from list. 2022-11-22 00:26:49 +00:00
23rd
0feef675f7 Added loading text effect to translate box. 2022-11-22 00:26:49 +00:00
23rd
f16d30de37 Added initial implementation of loading element effect. 2022-11-22 00:26:49 +00:00
23rd
cf54d9fb12 Moved out glare effect to separate file. 2022-11-22 00:26:49 +00:00
23rd
b7647fbcc1 Added initial implementation of translate box. 2022-11-22 00:26:49 +00:00
23rd
95a1ab6b0b Fixed display of send as button above voice record bar. 2022-11-22 00:26:49 +00:00
23rd
823b4e6b98 Added icon for inaccessible users. 2022-11-22 00:26:49 +00:00
23rd
3467fe226f Added ability to send webp as compressed image. 2022-11-22 00:26:49 +00:00
23rd
57c50c8655 Optimized includes of attach_prepare.h. 2022-11-22 00:26:48 +00:00
23rd
8f3c3b2a54 Fixed switching between accounts with filters at screen edge. 2022-11-22 00:26:48 +00:00
23rd
efc0908ed8 Fixed forum closing with Back mouse button.
- Fixed #25330.
2022-11-22 00:26:48 +00:00
John Preston
561e3f4809 Handle clicks on topic jump area. 2022-11-22 00:26:48 +00:00
John Preston
ede34578da Display jump to last topic message bubble. 2022-11-22 00:26:48 +00:00
John Preston
97356032ac Fix build in Xcode. 2022-11-22 00:26:48 +00:00
John Preston
4c8187f623 Topics list in forum chats list entry. 2022-11-22 00:26:48 +00:00
John Preston
996b6bf46a Fix unread mentions / reactions button in topics. 2022-11-22 00:26:48 +00:00
John Preston
37308cde21 Support dialog rows with variable height. 2022-11-22 00:26:48 +00:00
John Preston
248337daf5 Implement topics pin limit box. 2022-11-22 00:26:48 +00:00
John Preston
8a288476b8 Implement pinned topics reordering. 2022-11-22 00:26:48 +00:00
John Preston
c7741cb62a Apply short topic info from channelMessages. 2022-11-22 00:26:48 +00:00
John Preston
983b6af0b4 Update API scheme to layer 149. 2022-11-22 00:26:48 +00:00
Ilya Fedin
a94dd22caa Rewrite GenerateDesktopFile using Glib::KeyFile and KShell 2022-11-21 21:30:17 +00:00
Ilya Fedin
899ab9a16a Fix range loop warnings in Snap build 2022-11-21 21:30:17 +00:00
Ilya Fedin
2f0d14bd35 Use customWorkingDir() outside of Core::Launcher
This allows to add -workdir to shortcuts only if the process was launched with -workdir
2022-11-21 21:30:17 +00:00
Ilya Fedin
9b66b76bac Use GNotification only in flatpak by default
The UX is not the best without sound, so there's no advantage in using GNotification on GNOME.

Remove mention about being native to GNOME as it's not true anymore.
2022-11-20 08:52:36 +00:00
Ilya Fedin
a1e60a3f20 Ensure GNotification is not autodetected in snap
Snap reports it as present, but prevents the access and GNotification attempts to use portal that doesn't work in snap
2022-11-19 02:21:51 +04:00
Ilya Fedin
f7971733f4 Update msys2 base
It has new signatures and fixes the CI
2022-11-19 02:21:32 +04:00
Ilya Fedin
e33b62ad28 Update cmake_helpers 2022-11-18 20:40:57 +04:00
Ilya Fedin
82629dd3e5 Update Qt to 6.4.1 on Linux 2022-11-18 20:40:57 +04:00
Ilya Fedin
768fc9b8f6 Use the new Glib::Variant qint64/quint64 compatibility with old code 2022-11-18 20:40:33 +04:00
Ilya Fedin
b9b6a9e747 Follow desktop file naming specification
This is required for GApplication to enable all the features

https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html#file-naming
2022-11-18 20:40:33 +04:00
Ilya Fedin
b4d310fd1e Don't subscribe to inhibiton changes when not supported 2022-11-18 20:40:33 +04:00
Ilya Fedin
f9dd2b4a0a Support GNotification
It's used if there's a gtk notification daemon or application is running sandboxed without access to the freedesktop protocol.

GNotification API is poor, but should feel native on environments using GNOME technologies.
2022-11-18 20:40:33 +04:00
Ilya Fedin
afaad155a0 Update to changes in MPRIS SystemMediaControlsManager backend
And let it use service name provided by flatpak by default
2022-11-11 11:47:13 +04:00
Ilya Fedin
9726b3c298 Avoid race condition when registering Wayland interfaces 2022-11-11 11:47:01 +04:00
23rd
85b94bc6fd Changed behavior to always delete messages for bots.
Fixed #17033.
2022-11-11 11:45:13 +04:00
23rd
f0645753d4 Toggled checkbox of deleting messages for both participants. 2022-11-11 11:45:13 +04:00
23rd
8b570f2e8f Fixed duplicated transcribe buttons for video messages.
Fixed #25327.
2022-11-11 11:45:13 +04:00
23rd
2b7b278b52 Respected global notify sound for Saved Messages.
Fixed #25315.
2022-11-11 11:45:13 +04:00
23rd
a02c01cce7 Added phrases for various types of albums in chats list. 2022-11-11 11:45:13 +04:00
23rd
9601207b2c Fixed warnings from Github CI. 2022-11-11 11:45:12 +04:00
John Preston
c06f0b3ea1 Fix contact status bar in single column layout. 2022-11-11 11:44:10 +04:00
John Preston
b514496546 Simplify SendProgressManager::done prototype. 2022-11-11 11:44:03 +04:00
John Preston
ca460dab6d Fix mute value casting. 2022-11-11 11:43:47 +04:00
John Preston
644ec1f599 Remove base::Observable / base::Variable. 2022-11-11 11:43:24 +04:00
John Preston
73e2cc96d1 Fix music player with RTL song names. 2022-11-11 11:43:06 +04:00
Ilya Fedin
d756ecc609 Handle cancel in menu_item_download_files, too 2022-11-10 17:43:48 +04:00
Ilya Fedin
0cd0ad7a5b Handle cancel for default download path in Linux sandbox 2022-11-10 00:24:37 +04:00
John Preston
9229c57e7a Fix monospace-wide comments thread root message.
Fixes #16343.
2022-11-09 12:51:44 +04:00
John Preston
5b17416177 Fix spoiler glitches in reply previews. 2022-11-09 12:40:28 +04:00
John Preston
0b7a2c18a2 Pause spoilers in reply / edit panels. 2022-11-09 12:40:27 +04:00
John Preston
187f5fa4f3 Fix emoji panel section appearance in topics. 2022-11-09 11:00:24 +04:00
John Preston
3fad69d3c8 Hide pinned bar in topics for a single pin. 2022-11-09 11:00:22 +04:00
John Preston
7e2a49c1f9 Fix possible crash in pinned bar destruction. 2022-11-09 10:22:48 +04:00
John Preston
66435d5269 Better folder / chat closing by escape. 2022-11-09 10:22:44 +04:00
John Preston
4a8b5c3015 Add "Show Topics List" button to topic profile. 2022-11-09 10:22:33 +04:00
John Preston
d0d2a4f488 Show messages count in forum. 2022-11-09 10:22:23 +04:00
John Preston
8ee28f6665 Skip forum send action painting. 2022-11-09 10:22:07 +04:00
John Preston
a2b0c551c2 Pass default download path in sandboxed environments. 2022-11-09 10:21:52 +04:00
Ilya Fedin
bff641c217 Update cmake_helpers 2022-11-08 23:37:58 +04:00
Ilya Fedin
a9c0b817d1 Explain how to build a backward compatible binary on Linux 2022-11-08 23:37:58 +04:00
Ilya Fedin
0f38dabd84 Update cmake for -flto=auto support 2022-11-08 23:37:58 +04:00
Ilya Fedin
8552047210 Always build glibmm with LTO to be able to build backward compatible binary 2022-11-08 23:37:58 +04:00
John Preston
092923fe6e Don't autodownload files if sandbox prevents it.
Partially fixes #25308.
2022-11-08 18:26:02 +04:00
John Preston
ab5792f59f Revert "Fix crash when asking download path in sandbox environment"
This reverts commit a4b0443047.
2022-11-08 18:26:01 +04:00
Dragoon Aethis
9d59e42b52 Add an experimental "small message radius" toggle (#25305)
Add an experimental "small message radius" toggle.

This toggle allows switching to the pre-4.3.0, smaller message bubble
radius after an app restart. The message bubble radius styles now have
to be referenced via the Ui::BubbleRadius* and Ui::MsgFileThumbRadius*
wrappers to use the appropriate value.
2022-11-08 14:19:17 +04:00
Ilya Fedin
e675dc1ef1 Fix appdata filename in snapcraft.yaml 2022-11-08 01:13:08 +04:00
John Preston
8cb980a791 Version 4.3.1.
- Critical bug fixes.
2022-11-07 23:43:04 +04:00
John Preston
785372f5d0 Remove redundant updateSize. 2022-11-07 23:40:41 +04:00
John Preston
aa6495a257 Fix a crash in sharing contact.
Fixes #25287.
2022-11-07 23:19:52 +04:00
23rd
7993c6207a Fixed crash on checking sponsored state with closed dialog. 2022-11-07 23:11:30 +04:00
Ilya Fedin
6af93b3497 Fix appdata changelog generation 2022-11-07 23:11:17 +04:00
John Preston
153fb3e579 Fix search in topic cancel on forum closing. 2022-11-07 20:01:18 +04:00
23rd
80d4c3affe Added button for invite links management even to public channels. 2022-11-07 19:17:21 +04:00
John Preston
9a1d9deea5 Fix peer list row selecting for forums.
The blobs in group calls are still round for them :(
2022-11-07 19:15:57 +04:00
Ilya Fedin
3b7cdb5748 Update lib_base 2022-11-07 18:16:49 +04:00
Ilya Fedin
f542a026ec Add _GTK_APPLICATION_ID support 2022-11-07 18:16:49 +04:00
23rd
629314cfa2 Added saving of scroll state in dialogs widget for restoring from forum. 2022-11-07 15:39:03 +03:00
23rd
c320917069 Fixed Escape shortcut for opened archived forums. 2022-11-07 14:46:41 +03:00
John Preston
9276f3dab8 Fix reply button in View as Messages. 2022-11-07 15:44:37 +04:00
John Preston
1316d14f7a Fix reading of comments.
Fixes #25276.
2022-11-07 15:27:09 +04:00
John Preston
0737034ea6 Fix pinning between topics. 2022-11-07 15:12:47 +04:00
John Preston
9a54473e03 Fix dialog row updating on user online status change.
Regression was introduced in ed895ace66.

Fixes #6410. Again. I hope.
2022-11-07 15:11:15 +04:00
John Preston
991fe491c5 Animate emoji only twice in chats list. 2022-11-07 14:32:06 +04:00
John Preston
6e606f3bb6 Animate topic icons only twice in topics list. 2022-11-07 14:32:06 +04:00
John Preston
d8a0497a7e Don't jump with focus to chats list. 2022-11-07 14:32:06 +04:00
Ilya Fedin
fc4682d77e Get rid of TDESKTOP_LAUNCHER_BASENAME
This key was mainly used to let flatpak and snap provide right desktop file name.
Now, we can compute it from the environment in runtime for both flatpak and snap.
There's no more need in this option. Desktop filename override by downstreams is highly discouraged.
2022-11-07 13:47:58 +04:00
Ilya Fedin
a507edb67a Get rid of workarounds for old flatpak versions
The minimal supported flatpak version since Qt 6.x is 1.14.0.
Flatpak shares temp directory and runtime directory between launches since 1.11.1.
FLATPAK_ID is defined since 1.1.2.
2022-11-07 13:47:58 +04:00
John Preston
bd8b90055e Fix showing forum in a single-column layout. 2022-11-07 13:19:40 +04:00
23rd
371ba40a50 Added volume button to media player for voices. 2022-11-06 18:55:11 +03:00
23rd
a8d8b5be28 Removed wrapping of message texts for mime data. 2022-11-06 18:18:24 +03:00
23rd
3e428faa2e Fixed crash on creating of callback for adding items to non-exist menu. 2022-11-06 18:18:24 +03:00
23rd
3887fbc437 Fixed crash from type box for groups. 2022-11-06 16:56:45 +03:00
Ilya Fedin
a4b0443047 Fix crash when asking download path in sandbox environment
This makes first download to go to temp directory, but I can't think of better solution without changing download path getting architecture.
2022-11-06 17:38:20 +04:00
Ilya Fedin
a73ff8f5d7 Get rid of legacy themes in snap
gtk-common-themes contains all the themes now
2022-11-06 08:08:42 +04:00
Ilya Fedin
0c8400212e Add curl to fix snap build on Launchpad 2022-11-06 00:08:25 +04:00
Ilya Fedin
dcfc3431f5 Disable unneeded validation for libsigc++ 2022-11-06 00:08:25 +04:00
John Preston
be60052b2d Version 4.3: Fix build for Linux. 2022-11-05 20:29:12 +04:00
John Preston
fcf88a9d1f Version 4.3: Fix build with GCC. 2022-11-05 19:13:56 +04:00
John Preston
9e7a4e59a8 Version 4.3: Fix build with Xcode. 2022-11-05 19:11:38 +04:00
John Preston
29e30d2d00 Version 4.3: Fix rounding with inline keyboard markup. 2022-11-05 19:07:20 +04:00
John Preston
efc06b7951 Version 4.3.
- Groups with more than 200 members
can now have their discussions organized into topics.
- Premium users can now convert both voice messages
and video messages into text.
2022-11-05 18:26:50 +04:00
John Preston
c15f89c260 Hide reply bars to the topic root in topic pinned. 2022-11-05 18:26:50 +04:00
John Preston
9dcea2cdef Hide unread counter inside View as Messages. 2022-11-05 17:49:01 +04:00
John Preston
080ab26804 Add some phrases to langpack. 2022-11-05 17:49:01 +04:00
John Preston
d58f312342 Generate old topic message links for now. 2022-11-05 17:49:01 +04:00
John Preston
b5bba2e4e2 Update lib_webview. 2022-11-05 17:49:01 +04:00
23rd
26f287fae0 Added support of posts_between flag for sponsored messages. 2022-11-05 15:44:08 +03:00
John Preston
fb33951c94 Fix grammar in a phrase. 2022-11-05 15:01:02 +04:00
23rd
421e7a960b Added phrases for usernames in admin log. 2022-11-05 08:16:34 +03:00
Ilya Fedin
fe987e3f22 Don't prime Qt's pkg-config files in snap 2022-11-04 23:06:25 +04:00
Ilya Fedin
d3071acad2 Build newer glibmm in snap 2022-11-04 23:06:25 +04:00
Ilya Fedin
959f23f475 Remove unused external_glib dependency from Telegram target 2022-11-04 23:06:25 +04:00
Ilya Fedin
820d367e78 Fix library search path in Docker image 2022-11-04 16:38:18 +04:00
Ilya Fedin
6ff3d9f975 Don't build qtquickcontrols2 in Docker 2022-11-04 16:38:18 +04:00
Ilya Fedin
da2f1b3d97 Add switch for LTO in Docker image 2022-11-04 16:38:18 +04:00
Ilya Fedin
0b2b3416d7 Build both versions of zlib in Dockerfile
For consistence with other libraries
2022-11-04 16:38:18 +04:00
Ilya Fedin
1c514b23ea Reduce glibmm's build targets 2022-11-04 16:38:18 +04:00
John Preston
592c471f58 Fix cancel of search by sender in forums. 2022-11-03 19:09:07 +04:00
John Preston
fdee5f9227 Fix search by recently used hashtags. 2022-11-03 18:45:15 +04:00
John Preston
9d313d2827 Fix focus jump to chats list on channel open. 2022-11-03 18:32:59 +04:00
John Preston
55fd9c5091 Closed alpha version 4.2.4.3. 2022-11-03 16:37:31 +04:00
John Preston
0dd45de254 Remember scroll state between topic openings. 2022-11-03 16:29:40 +04:00
Ilya Fedin
d7f2385275 Parallelize LTO on Linux 2022-11-03 14:46:46 +04:00
Ilya Fedin
1336a7149b Update glibmm to latest version 2022-11-03 14:45:01 +04:00
John Preston
67d99355ca Don't show empty popup menu in ListWidget. 2022-11-03 14:27:42 +04:00
John Preston
1953cc2f8a Fix "Topic Author" badge for the new topics. 2022-11-03 14:13:52 +04:00
John Preston
da941e4837 Fix possible crashes in topic / history deletion. 2022-11-03 13:26:36 +04:00
John Preston
b5a412929e Display pinned messages bar after topic creation. 2022-11-03 12:20:25 +04:00
John Preston
3fcb7c90e0 Apply first topic message pinning. 2022-11-03 12:19:29 +04:00
John Preston
b772697c59 Fix crash on topic creation. 2022-11-03 12:18:48 +04:00
John Preston
a088791752 Closed alpha version 4.2.4.2: Fix build with Xcode. 2022-11-02 22:29:21 +04:00
Ilya Fedin
ba9f5d138a Use some APIs from newer glibmm 2022-11-02 21:02:46 +04:00
John Preston
41192e5acd Closed alpha version 4.2.4.2. 2022-11-02 20:59:25 +04:00
John Preston
a21c73facd Optimize updates subscription in topics. 2022-11-02 20:59:12 +04:00
John Preston
9d4840c0de Respect window active state on mark as read. 2022-11-02 20:13:29 +04:00
John Preston
ff352d7647 Fix password request box closing in bot button callback. 2022-11-02 20:13:29 +04:00
John Preston
fdb29a756a Fix topic profile icon on Retina screen (again). 2022-11-02 17:22:01 +04:00
John Preston
34a2c5c8ce Display topic name in chats list. 2022-11-02 16:39:13 +04:00
John Preston
fdf4129e5e Fix build with GCC. 2022-11-02 08:51:03 +04:00
John Preston
45cacc94c0 Fix build with Xcode. 2022-11-02 01:16:55 +04:00
John Preston
e62bdd286d Show topic title in the notifications. 2022-11-01 21:05:49 +04:00
23rd
969b051c8f Limited count of sponsored messages at bottom to single one for now. 2022-11-01 20:03:16 +04:00
23rd
3b79d944af Removed unused includes of observer file. 2022-11-01 20:03:14 +04:00
John Preston
cddb2a4bac Improve video chat menu for forums. 2022-11-01 20:00:09 +04:00
Ilya Fedin
0c514c4b0a Have unified compiler flags in Dockerfile 2022-11-01 19:34:05 +04:00
Ilya Fedin
435e4f2783 Adapt for target_prepare_qrc changes 2022-11-01 19:33:54 +04:00
Ilya Fedin
68ad56db79 Use QtWaylandCompositor for webview embedding on Linux 2022-11-01 19:33:46 +04:00
John Preston
ab0f12cf1c Fix topic icon on retina screen. 2022-11-01 19:25:45 +04:00
John Preston
fba0f0c49b Improve topic three-dot menu. 2022-11-01 19:25:45 +04:00
23rd
03c08ad95f Added saving of scroll state in dialogs widget between chats filters. 2022-11-01 19:25:45 +04:00
John Preston
c6aba83a6b Fix crash on local edit draft, fix reading drafts. 2022-11-01 19:25:45 +04:00
John Preston
f13a2517cd Topic Author badge only if not admin. 2022-11-01 19:25:45 +04:00
John Preston
7ec1af5e50 Forbid saving / copying of extended media.
Fixes #25227.
2022-11-01 19:25:45 +04:00
John Preston
bd8cdcb520 Fix topic icons animating in choose topic box. 2022-11-01 19:25:45 +04:00
John Preston
7dbb4a0959 Clear forward drafts on topic destruction. 2022-11-01 19:25:45 +04:00
John Preston
f6e501a431 Fix opening topic first time, jump down on second click. 2022-11-01 19:25:45 +04:00
John Preston
57dc0c632e Open forum by invite link. 2022-11-01 19:25:45 +04:00
John Preston
e6c2aa8021 Support topic choosing in ShareBox. 2022-11-01 19:25:45 +04:00
John Preston
7384cd3463 Support sharing games by link to topics. 2022-11-01 19:25:44 +04:00
John Preston
83ec449890 Display topic title in topic-root reply bars. 2022-11-01 19:25:44 +04:00
John Preston
15f72ca6c1 Fix contact sharing to topics. 2022-11-01 19:25:44 +04:00
John Preston
afd6121cbb Don't mass-select service messages in replies. 2022-11-01 19:25:44 +04:00
John Preston
dd3c8430bf Forbid deleting the topic root. 2022-11-01 19:25:44 +04:00
John Preston
d5ea0149e8 Implement drag-n-drop to forum topics. 2022-11-01 19:25:44 +04:00
John Preston
6d215d3729 Implement unpin all messages within a thread. 2022-11-01 19:25:44 +04:00
John Preston
1ac051a812 Implement forwarding to topics. 2022-11-01 19:25:44 +04:00
23rd
c497e9ca9c Slightly optimized includes in HistoryWidget. 2022-11-01 19:25:44 +04:00
23rd
ed356a1fc5 Fixed jumping to message from composed search. 2022-11-01 19:25:44 +04:00
23rd
290e8bb449 Fixed appearing of transcribe button on various messages with video. 2022-11-01 19:25:44 +04:00
John Preston
079c36abf3 Fix build with Xcode. 2022-11-01 19:25:44 +04:00
John Preston
fb0eee01f2 Closed alpha version 4.2.4.1. 2022-11-01 19:25:44 +04:00
John Preston
bc96bdf7a9 Add video chat management menu items to forum. 2022-11-01 19:25:43 +04:00
John Preston
18bf5c0ee2 Handle nice topic / post-in-topic links. 2022-11-01 19:25:43 +04:00
23rd
3078a94404 Added fallback of waveform data to transcribed round messages. 2022-11-01 19:25:43 +04:00
John Preston
af6ca8d4f1 Show "Topic Author" fake admin rank. 2022-11-01 19:25:43 +04:00
John Preston
aa5f9467f2 Support attach webview bots in topics. 2022-11-01 19:25:43 +04:00
John Preston
b3f9b16eb2 Add correct topics icon to manage group box. 2022-11-01 19:25:43 +04:00
John Preston
443745e3fc Show chosen search result in topic messages search. 2022-11-01 19:25:43 +04:00
John Preston
fcf9ca3982 Fix local pinned hiding in topics. 2022-11-01 19:25:43 +04:00
John Preston
8dc27339b4 Support pinned messages bar in topics. 2022-11-01 19:25:43 +04:00
John Preston
da1e784803 Search from a user inside forum / topic. 2022-11-01 19:25:43 +04:00
John Preston
46ebbdb547 Open jump-to-date by date click in topics. 2022-11-01 19:25:43 +04:00
John Preston
850746b0ba Improve search-in-topic closing. 2022-11-01 19:25:43 +04:00
John Preston
5d76415a5d Implement jump-to-date in topics. 2022-11-01 19:25:43 +04:00
John Preston
ee8f997c14 Implement search inside a single topic. 2022-11-01 19:25:43 +04:00
John Preston
60aef7871a Append server-side topic search results. 2022-11-01 19:25:43 +04:00
John Preston
d6ee5b3456 Show forum messages search results with topics. 2022-11-01 19:25:42 +04:00
John Preston
88d1a502a5 Implement search in topics / forum messages. 2022-11-01 19:25:42 +04:00
John Preston
c8ed8e0e5f Support nice empty topic view. 2022-11-01 19:25:42 +04:00
John Preston
99564d3d44 Implement restrictions on topics enabling. 2022-11-01 19:25:42 +04:00
John Preston
aac91a19ca Context-aware phrases in topic service messages. 2022-11-01 19:25:42 +04:00
John Preston
97d8aa0a0d Add a distinct forum icon in chats list. 2022-11-01 19:25:42 +04:00
John Preston
76330eaaa6 Provide a draft from notification to correct thread. 2022-11-01 19:25:42 +04:00
John Preston
06d1644baa Mark topics as read on reply from notification. 2022-11-01 19:25:42 +04:00
John Preston
ef3ed760b1 Unread counters don't differ in/out messages in threads. 2022-11-01 19:25:42 +04:00
John Preston
ec0380b250 Show premium tooltip on custom topic icon selection. 2022-11-01 19:25:42 +04:00
John Preston
c6bc7c3de1 Disable "Clear history" in forums. 2022-11-01 19:25:42 +04:00
John Preston
6e491913d6 Add "View in Thread" context menu button. 2022-11-01 19:25:42 +04:00
John Preston
48fb410bc7 Fix third column profile in topics. 2022-11-01 19:25:42 +04:00
John Preston
602ba5bba9 Implement correct ForumTopic::canWrite logic. 2022-11-01 19:25:42 +04:00
23rd
1cd02fc3c9 Added display of video message in transcribed view. 2022-11-01 19:25:42 +04:00
23rd
dec47eafb8 Improved display of transcribe button for video messages. 2022-11-01 19:25:42 +04:00
23rd
579b20fff7 Added initial ability to transcribe video messages. 2022-11-01 19:25:42 +04:00
John Preston
b4a9705564 Simplify pin_messages/manage_topics logic. 2022-11-01 19:25:41 +04:00
John Preston
72354f52d4 Improve top bars in forums, in narrow column. 2022-11-01 19:25:41 +04:00
John Preston
70e5f752ba Correctly handle complex pin_messages/manage_topics. 2022-11-01 19:25:41 +04:00
John Preston
53beb6f562 Allow editing ManageTopics rights/restrictions. 2022-11-01 19:25:41 +04:00
John Preston
ed895ace66 Track dialog row offline status by timer.
Fixes #6410.
2022-11-01 19:25:41 +04:00
John Preston
0cba9e4a22 Support default forum topic icons. 2022-11-01 19:25:41 +04:00
John Preston
5314833c82 Show requests / group call / report in forums. 2022-11-01 19:25:41 +04:00
John Preston
b92b8e56cb Improve single column layout forum / topic top bar. 2022-11-01 19:25:41 +04:00
John Preston
b497e5ea21 Add a Reopen Topic button on topic top for admins. 2022-11-01 19:25:41 +04:00
John Preston
92bf925fd0 Show locked topic icon in topics list. 2022-11-01 19:25:41 +04:00
John Preston
eab23df174 Improve narrow topics column in forum. 2022-11-01 19:25:41 +04:00
John Preston
ce17904dcc Improve topic creation, fix glitches. 2022-11-01 19:25:41 +04:00
23rd
fd2edb51e9 Fixed build in Xcode. 2022-11-01 19:25:41 +04:00
23rd
6d3f9017fa Added ability to report chat photo and channel photo. 2022-11-01 19:25:41 +04:00
23rd
f0177bc6cc Fixed display of info in profile box for inaccessible peers. 2022-11-01 19:25:41 +04:00
23rd
50b27b51a1 Fixed losing of saved usernames order from edit peer box. 2022-11-01 19:25:41 +04:00
John Preston
4074a558e7 Get rid of Ui::FlatInput class.
Fixes #16172.
2022-11-01 19:25:41 +04:00
John Preston
f9173ea849 Improve top bar design for forum / topic. 2022-11-01 19:25:41 +04:00
John Preston
3a967bbbfe Ignore unread counts in non-opened topics. 2022-11-01 19:25:41 +04:00
John Preston
7aea54ad8f Fix crash in topics admin log. 2022-11-01 19:25:41 +04:00
John Preston
4910a60499 Track mentions / reactions together with unread. 2022-11-01 19:25:40 +04:00
John Preston
5356f6cd2c Reload topics on channelDifferenceTooLong. 2022-11-01 19:25:40 +04:00
John Preston
08ba277327 Track forum unread state by topics inside. 2022-11-01 19:25:40 +04:00
John Preston
a292f8a34e Allow opening forums from archive / filters. 2022-11-01 19:25:40 +04:00
John Preston
7cdf20a7c5 Allow topic deletion. 2022-11-01 19:25:40 +04:00
John Preston
adaa1d0c55 Support pinned topics in forums. 2022-11-01 19:25:40 +04:00
John Preston
306179ca7c Update API scheme on layer 148. 2022-11-01 19:25:40 +04:00
John Preston
c86496add1 Fix document thumbnails on Retina screens. 2022-11-01 19:25:40 +04:00
John Preston
ad2f9438a2 Support topic closing. 2022-11-01 19:25:40 +04:00
John Preston
fe41fbd7e9 Support topics in Recent Actions. 2022-11-01 19:25:40 +04:00
John Preston
df5602d203 Support topic icon display in topic profile. 2022-11-01 19:25:40 +04:00
John Preston
fcc4503791 Add "View as Messages" in forums. 2022-11-01 19:25:40 +04:00
23rd
9ddbc75638 Added api flag support of userpic display for sponsored messages. 2022-11-01 19:25:40 +04:00
23rd
dc8b693f1d Added context menu to bar of pinned messages with bot button. 2022-11-01 19:25:40 +04:00
23rd
659a7622be Fixed memory leak from bar of pinned messages. 2022-11-01 19:25:40 +04:00
23rd
a4856e4436 Added handling of error for too much number of activated usernames. 2022-11-01 19:25:40 +04:00
23rd
c9390dc02a Added draft for usernames in admin log. 2022-11-01 19:25:40 +04:00
23rd
bdd79aa2f2 Changed row in usernames list for editable one. 2022-11-01 19:25:40 +04:00
23rd
ad70942d0e Moved usernames data management to separated class. 2022-11-01 19:25:39 +04:00
23rd
c8ae7c7402 Added ability to download multiple files from context menu. 2022-11-01 19:25:39 +04:00
23rd
8175fd19de Fixed position of toggle menu button in downloads narrow section. 2022-11-01 19:25:39 +04:00
23rd
4207995ef0 Added right button to rows of usernames list for reorder. 2022-11-01 19:25:39 +04:00
23rd
00df4625e2 Added support of primary username to FieldAutocomplete. 2022-11-01 19:25:39 +04:00
23rd
79f592a84f Added usernames support to info profile. 2022-11-01 19:25:39 +04:00
23rd
ad7bc6326d Added context menu to usernames list. 2022-11-01 19:25:39 +04:00
23rd
17623640b3 Slightly improved appearing of usernames list. 2022-11-01 19:25:39 +04:00
23rd
d55ff7aa4a Added usernames list to peer type box for public channels. 2022-11-01 19:25:39 +04:00
23rd
113d9742f4 Added initial implementation of usernames list for boxes. 2022-11-01 19:25:39 +04:00
23rd
acbc248f23 Replaced UsernameBox with generic box. 2022-11-01 19:25:39 +04:00
23rd
4f4d0bef25 Added usernames info to ChannelData. 2022-11-01 19:25:38 +04:00
23rd
ffa8a94180 Added usernames info to UserData. 2022-11-01 19:25:38 +04:00
23rd
51cead1445 Added initial implementation of api for usernames. 2022-11-01 19:25:38 +04:00
23rd
29663a410a Added decimal separators to count of participants in group call bar. 2022-11-01 19:25:38 +04:00
23rd
4824b26afd Added tooltip with forwards count to views info for channel messages. 2022-11-01 19:25:38 +04:00
23rd
5751d29c47 Removed username from public data members of UserData. 2022-11-01 19:25:38 +04:00
23rd
9b7329b378 Removed username from public data members of ChannelData. 2022-11-01 19:25:38 +04:00
23rd
38f5cda800 Added display of full filenames for documents in tooltips. 2022-11-01 19:25:38 +04:00
23rd
c1b2d7ed4c Attempted to fix showing of tooltips on loading documents. 2022-11-01 19:25:38 +04:00
John Preston
89d0a71591 Update API scheme on layer 148: Drafts in topics. 2022-11-01 19:25:38 +04:00
John Preston
791addd0ee Start topic profile cover design. 2022-11-01 19:25:38 +04:00
John Preston
d4255bbfe4 Fix build with Xcode. 2022-11-01 19:25:38 +04:00
John Preston
ead427793b Handle forum / topic links. 2022-11-01 19:25:38 +04:00
John Preston
16e189a2ce Update API scheme on layer 148: Usernames. 2022-11-01 19:25:37 +04:00
John Preston
6997e165c6 Forum three-dot menu, except search. 2022-11-01 19:25:37 +04:00
John Preston
9b0cae9c97 Fix name width in accounts list. Fixes #25116. 2022-11-01 19:25:37 +04:00
John Preston
b68ffcd75d Update topic mute state on history mute changes. 2022-11-01 19:25:37 +04:00
John Preston
d92580b8fc Update API scheme on layer 148: Notifications.
Support editing / respect notification settings for topics.
2022-11-01 19:25:37 +04:00
John Preston
b8bdca8921 Extract Data::Thread common for History / ForumTopic. 2022-11-01 19:25:37 +04:00
John Preston
9fccdf21cc Remove General meta-forum-topic. 2022-11-01 19:25:37 +04:00
John Preston
92a4b27e65 Support per-topic notification settings. 2022-11-01 19:25:37 +04:00
John Preston
24843e3acd Rounded square userpics for forums. 2022-11-01 19:25:37 +04:00
John Preston
8561893e2e Update API scheme on layer 148. 2022-11-01 19:25:37 +04:00
John Preston
6695eda1be Handle forum-non_forum changes in realtime. 2022-11-01 19:25:37 +04:00
John Preston
04d06e5b12 Fix build with Xcode. 2022-11-01 19:25:37 +04:00
John Preston
58b8eb8e96 Implement per-topic shared media. 2022-11-01 19:25:37 +04:00
John Preston
eec4b72d9a Implement correct jump to message / unread / bottom. 2022-11-01 19:25:37 +04:00
John Preston
3999bca823 Support unread mentions / reactions in topics. 2022-11-01 19:25:36 +04:00
John Preston
6a7f030ee7 Update API scheme on layer 148.
Extract message history corner buttons code.
2022-11-01 19:25:36 +04:00
John Preston
2c0b5b3210 Track unread mentions / reactions in topics. 2022-11-01 19:25:36 +04:00
John Preston
9348039313 Track unread posts in forums inside RepliesList-s. 2022-11-01 19:25:36 +04:00
John Preston
0d985b5745 Don't focus main button on progress show. 2022-11-01 19:25:36 +04:00
John Preston
d4cdd67128 Fix RTL text in bot attach webview main button. 2022-11-01 19:25:36 +04:00
John Preston
f258b054e8 Request last topic message if it becomes unknown. 2022-11-01 19:25:36 +04:00
John Preston
032e6c57e9 Request full album for last topic message. 2022-11-01 19:25:36 +04:00
John Preston
377b86372b Don't jump above pinned chats.
Fixes #6802.
2022-11-01 19:25:36 +04:00
John Preston
24d3bcb590 Use operator<=> for some simplest data types. 2022-11-01 19:25:36 +04:00
John Preston
2c50f7b18c Implement nice topic icon create / edit box. 2022-11-01 19:25:36 +04:00
John Preston
3aa7f4dd62 Test custom emoji timer-by-on_main optimization. 2022-11-01 19:25:36 +04:00
John Preston
bacc30e296 Fix custom emoji interaction with other animations. 2022-11-01 19:25:36 +04:00
John Preston
3c739912ba Use non-allocating literals with MSVC in Release. 2022-11-01 19:25:36 +04:00
John Preston
ae3496d6a4 Update API scheme on layer 148: Topic icons. 2022-11-01 19:25:36 +04:00
John Preston
f3c664859d Don't show root pinned bar in topic messages list. 2022-11-01 19:25:36 +04:00
John Preston
57b752c232 Don't crash on topic icon reset. 2022-11-01 19:25:36 +04:00
John Preston
2781fe2c34 Show temporary placeholder topic icon. 2022-11-01 19:25:35 +04:00
John Preston
5d43073efa Support editing of not-fully-created topic. 2022-11-01 19:25:35 +04:00
John Preston
3722e55b67 Support topic on-the-fly creation. 2022-11-01 19:25:35 +04:00
John Preston
065d2e2ac9 Fix crash in toasts without spoilers. 2022-11-01 19:25:35 +04:00
John Preston
b77756ce12 Highlight active topic in chats list. 2022-11-01 19:25:35 +04:00
John Preston
1e8dfb7315 Partially support correct rounding near unwrapped media. 2022-11-01 19:25:35 +04:00
John Preston
83008fa358 Support new rounding in theme preview generator. 2022-11-01 19:25:35 +04:00
John Preston
f167cdad6f Fix crash in quiz explanation with spoilers. 2022-11-01 19:25:35 +04:00
John Preston
d15173e09d Update API scheme on layer 148. 2022-11-01 19:25:35 +04:00
John Preston
001c46f68a Support new rounding in poll bottom button. 2022-11-01 19:25:35 +04:00
John Preston
09ab83836f Support new rounding for comments button. 2022-11-01 19:25:35 +04:00
John Preston
e5f2d83548 Support new rounding in bot inline keyboards. 2022-11-01 19:25:35 +04:00
John Preston
9cab06e17d Support new rounding for albums. 2022-11-01 19:25:35 +04:00
John Preston
8268e9f872 Support new rounding for GIFs / videos. 2022-11-01 19:25:35 +04:00
John Preston
b2302d35fe Implement correct rounding of shared locations. 2022-11-01 19:25:35 +04:00
John Preston
5e82433693 Fix build with Xcode. 2022-11-01 19:25:35 +04:00
John Preston
abdd126dcf Round correctly distinct photos and extended media. 2022-11-01 19:25:35 +04:00
John Preston
f3662f4873 Support correct rounding of file thumbnails. 2022-11-01 19:25:34 +04:00
John Preston
dd52c53ec0 Allow more file attach layout customization. 2022-11-01 19:25:34 +04:00
John Preston
b13471672d Move some chat styles from basic.style to chat.style. 2022-11-01 19:25:34 +04:00
John Preston
ba2f92906b Implement new bubble rounding. 2022-11-01 19:25:34 +04:00
John Preston
405d8c327d Support different row styles in chats list. 2022-11-01 19:25:34 +04:00
John Preston
1401b19994 Add PaintContext for Dialogs::Ui::RowPainter. 2022-11-01 19:25:34 +04:00
John Preston
4724ef91f6 Improve topic by message resolving. 2022-11-01 19:25:34 +04:00
John Preston
d7fdd80f55 Fix jumping in topics list on message send. 2022-11-01 19:25:34 +04:00
John Preston
9f652b0d3f Unify message sending, track forum topic icons. 2022-11-01 19:25:34 +04:00
John Preston
3b3792ef75 Allow editing topic title and icon. 2022-11-01 19:25:33 +04:00
John Preston
c90f879c96 Update API scheme on layer 148. 2022-11-01 19:25:33 +04:00
John Preston
73e56b0340 Support default General topic in forums. 2022-11-01 19:25:32 +04:00
John Preston
2201159da5 Simplify app name in Install-nd-Remove. 2022-11-01 19:25:32 +04:00
John Preston
eaf679916a Create / move forum topics on new messages. 2022-11-01 19:25:32 +04:00
John Preston
388fe6adfb Allow enabling forum, creating topics. 2022-11-01 19:25:32 +04:00
John Preston
c88140e256 Update API scheme to layer 148, start forums. 2022-11-01 19:25:32 +04:00
GitHub Action
87b228b256 Update User-Agent for DNS to Chrome 106.0.5249.119. 2022-11-01 19:24:47 +04:00
Ilya Fedin
4832e3b3ab Fix the comment about surface size in media_view_pip
Surface size is buffer size, in fact...
2022-10-30 07:35:33 +04:00
Ilya Fedin
7b5781b845 Use default-constructed QLocale for date/time/whatever else formatting
Qt 6 chenged the QDateTime API to use QLocale::c() rather than QLocale::system(), using default-constructed QLocale will make this consistent and overradable application-wide

Other formating use-cases as QLocale::decimalPoint use default-constructed QLocale now, too
2022-10-17 08:33:22 +04:00
Ilya Fedin
2c1933bdb8 Use application-wide time format in remaining td_ui places 2022-10-17 08:33:22 +04:00
Ilya Fedin
f9bf68461d Provide the same sizes for tray icon as for main window icon 2022-10-16 18:04:07 +04:00
Ilya Fedin
8f1a8f909d Ask download path first time in Linux sandbox
This allows to have less sandbox holes in flatpak and allows snap users to specify a normal folder to download to (as opposed to $HOME/snap/$SNAP_NAME/current/Downloads)
2022-10-06 19:13:38 +04:00
Ilya Fedin
4b859828c8 Replace the duplicate issues link with link to translation platform in XDG metadata 2022-10-06 19:10:47 +04:00
Ilya Fedin
13103ad0e6 Update cmake_helpers 2022-10-03 09:29:25 +04:00
Ilya Fedin
2d69329dc9 Set linux webview debug mode via D-Bus IPC 2022-10-03 09:29:25 +04:00
Anton Samokhvalov
3fe403117a fix clang15/libc++15 build 2022-10-02 07:39:54 +04:00
GitHub Action
6147994713 Update User-Agent for DNS to Chrome 105.0.5195.125. 2022-10-01 09:10:55 +04:00
John Preston
0fbb2e77fe Fix rare crash in message list context menu. 2022-09-30 18:50:43 +04:00
John Preston
1350fa64f3 Version 4.2.4.
- Fix crash in emoji statuses clearing.
2022-09-30 16:30:58 +04:00
John Preston
70ba28bbd5 Fix crash in emoji statuses clearing. 2022-09-30 16:30:58 +04:00
Ilya Fedin
16649a9661 Fix snap build 2022-09-30 07:44:18 +04:00
Ilya Fedin
8eb6d2e36b Update Qt and libjxl to release versions on Linux 2022-09-30 00:24:32 +04:00
23rd
8b580de47e Version 4.2.3: Fixed Github CI Windows and macOS builds. 2022-09-29 21:22:06 +04:00
23rd
5b1a9fb3e1 Migrated gyp for breakpad to upstream in prepare script on macOS. 2022-09-29 21:22:06 +04:00
Ilya Fedin
2a6e2fa353 Bundle kcoreaddons 2022-09-28 23:59:59 +04:00
Ilya Fedin
16669402cf Decrease the amount of clipboard data retrievation 2022-09-28 23:59:59 +04:00
John Preston
073c1a4d0f Version 4.2.3: Fix possible crash in premium section. 2022-09-28 15:58:25 +04:00
John Preston
4c276e2357 Version 4.2.3: Fix clearing of user emoji status. 2022-09-28 15:49:34 +04:00
John Preston
889529718f Fix possible stack overflow crash on Windows.
Fixes #25129.
2022-09-28 15:49:34 +04:00
23rd
acb092f9f2 Fixed stuck of history-down button after sending message. 2022-09-28 12:31:16 +03:00
23rd
9cd194e60e Removed ability to copy links in channels with restricted content. 2022-09-28 12:31:16 +03:00
23rd
9c3173e4bb Fixed updating of emoji status from TopBar in Premium Settings for user.
Regression was introduced in 47b32898f5.
2022-09-28 08:46:35 +03:00
John Preston
62b624c390 Version 4.2.3.
- Improve scaling / cropping for photos / video files.
- Improve touch support in channel comments.
- Nice animation for spoilers.
2022-09-28 09:34:31 +04:00
John Preston
1ee9122660 Fix text selection in recent actions. 2022-09-25 18:22:01 +04:00
John Preston
6cb01998cc Fix crash in recent actions with spoilers. 2022-09-25 18:21:59 +04:00
John Preston
0e6c899cee Fix crash after spoiler reveal in comments. 2022-09-25 18:21:58 +04:00
John Preston
09a6df1fdc Set some layers crash annotations. 2022-09-25 18:21:56 +04:00
John Preston
43bdfbf170 Beta version 4.2.2.
- Fix crash in spoiler revealing in media captions.
- Fix spoiler revealing in media viewer captions.
- Fix crash in folder editing on Linux.
2022-09-23 23:50:37 +04:00
John Preston
bcfe4ac4a3 Allow revealing spoilers in media viewer captions. 2022-09-23 23:50:21 +04:00
John Preston
c67c53bcdf Fix build with GCC. 2022-09-23 23:32:54 +04:00
John Preston
330c6a31a2 Fix crash in empty text state resolving. 2022-09-23 23:32:22 +04:00
John Preston
aa674a0ea5 Fix UB in closing chat across all windows. 2022-09-23 23:32:21 +04:00
John Preston
e01910ac68 Fix a crash in folders editing, happens in Qt 6.4.
Fixes #25074.
2022-09-23 23:32:19 +04:00
John Preston
eac13b31f1 Fix crash in subscribe button. 2022-09-23 23:32:18 +04:00
John Preston
d4a2c4a151 Fix crash in caption spoiler opening. 2022-09-23 23:22:08 +04:00
John Preston
8fc35e45e4 Beta version 4.2.1: Fix build with GCC. 2022-09-22 22:44:28 +04:00
John Preston
2931e754c3 Beta version 4.2.1.
- Improve scaling / cropping for photos / video files.
- Improve touch support in channel comments.
- Nice animation for spoilers.
2022-09-22 20:15:55 +04:00
John Preston
4e7a5eeffb Use Python 3.10 and GYP supporting it. 2022-09-22 15:31:46 +04:00
John Preston
6fcafeff5b Don't repeat premium stickers in fake-pack. 2022-09-22 14:58:40 +04:00
Ilya Fedin
3165ef9f0b Implement target_compile_options_if_exists, target_link_options_if_exists 2022-09-22 12:58:07 +04:00
John Preston
ec992ae552 Fix reactions menu on Retina screens. 2022-09-22 12:33:48 +04:00
John Preston
f0a36d6460 Show only first row of colored default statuses. 2022-09-22 12:27:46 +04:00
John Preston
ffb024a5f7 Move Ui::Text::String to HistoryView::Element. 2022-09-22 11:07:48 +04:00
Ilya Fedin
140dcb033b Fix snap building on snapcraft 2022-09-20 10:20:07 +04:00
Ilya Fedin
06d9d04787 Remove explicit setting of paths for cmake in snapcraft.yaml
This is reported as fixed in snapcraft, thus these paths should be set automatically
2022-09-19 19:12:16 +04:00
John Preston
a7c29991db Hide toggle silent send in channels on msg edit. 2022-09-19 18:49:46 +04:00
John Preston
e3d79d46f7 Fix new format of direct post links in channels. 2022-09-19 18:28:53 +04:00
John Preston
476a864be2 Improve cropping for videos a bit.
Partially fixes #25061 for videos as well.
2022-09-19 18:05:03 +04:00
John Preston
fc3810fd7f Improve scaling / expanding for photos.
Fixes #25061.
2022-09-19 17:44:59 +04:00
John Preston
f5bff22bb8 Improve touch support in popup menus. 2022-09-19 17:29:28 +04:00
Ilya Fedin
157b4c43ee Update lib_ui 2022-09-19 14:23:27 +04:00
Ilya Fedin
f2d2826fc7 Make InstallLauncher accessible on any platform 2022-09-19 14:23:27 +04:00
Ilya Fedin
cfa12fb0cc Move AppRuntimeDirectory to private namespace 2022-09-19 14:23:27 +04:00
Ilya Fedin
d9318c9935 Move icon name getter to cross-platform header 2022-09-19 14:23:27 +04:00
Ilya Fedin
5132fd5010 Use KSandbox to check flatpak/snap environment 2022-09-19 14:23:27 +04:00
Ilya Fedin
89879e355d Replace EscapeShell with KShell::joinArgs 2022-09-19 14:20:02 +04:00
Ilya Fedin
278ab5ebaf Add support for AVIF, HEIF and JPEG XL (only on Linux yet) 2022-09-19 11:20:50 +04:00
John Preston
39294a7fe1 Use touch handling from HistoryInner in ListWidget.
Fixes #24880.
2022-09-19 11:16:09 +04:00
John Preston
7727cdff92 Fix build with Xcode. 2022-09-18 17:12:16 +04:00
John Preston
8bd0ff7925 Opimize spoiler revealing. 2022-09-18 16:52:31 +04:00
John Preston
4f948699c0 Correct spoiler selections. 2022-09-18 16:52:31 +04:00
John Preston
cd00d41cca Correct spoiler colors in fully selected messages. 2022-09-18 16:52:31 +04:00
John Preston
749fb52113 Implement animated spoilers. 2022-09-18 16:52:30 +04:00
Ilya Fedin
4975254cc1 Avoid building qttools
Removing po folder from kcoreaddons allows that
2022-09-18 15:55:56 +04:00
Ilya Fedin
b36063e086 Update kcoreaddons to 5.98.0
And patch to cache portal result
2022-09-17 06:23:05 +04:00
John Preston
645ae69220 Version 4.2.
- A new expandable reaction menu was added in private chats and groups.
- All users get access to dozens of new reactions,
including reactions previously reserved for Premium users.
- The reactions you use most frequently
will always be displayed at the top.
- Premium users can react to messages with thousands of custom emoji
and add up to 3 reactions to each message.
- Group admins can control whether
custom reactions are allowed in their groups.
- Premium users can add an animated emoji status next to their name
to display their current activity.
- To set a status, tap your Premium badge in the main menu or Settings.
- Popular suggestions for working, sleeping,
traveling and more will be shown at the top.
- To set a status for a specific duration like 1 hour or 2 days,
right click the emoji.
- A new format was supported for username links,
in addition to "t.me/username." You can now open Telegram accounts,
groups or channels using links like "username.t.me"
or "https://username.t.me."
- Improved support for long media captions.
2022-09-17 00:47:22 +04:00
John Preston
782c5c28a8 Support custom quick reaction in settings. 2022-09-16 11:16:59 +04:00
John Preston
fba683be8e Fix custom status remove on chat reopen. 2022-09-16 10:42:25 +04:00
Ilya Fedin
552d96df71 Update Qt to 6.4.0 rc1 2022-09-16 09:46:36 +04:00
John Preston
1043467eec Fix lib_ui build. 2022-09-15 22:00:20 +04:00
John Preston
9923cc9b31 Beta version 4.1.2: Fix build with Xcode. 2022-09-14 23:15:00 +04:00
23rd
47b32898f5 Fixed padding of TopBar in Premium Settings for user. 2022-09-14 23:10:31 +04:00
23rd
557a2e400e Fixed muting of peer forever. 2022-09-14 23:10:30 +04:00
23rd
84400f5912 Added strictly typed field to export JSON for text entities. 2022-09-14 23:10:28 +04:00
John Preston
b28140c4b0 Beta version 4.1.2.
- New reaction selector above the right click menu.
- Premium: Set any custom emoji reactions in private chats.
- Premium: Set any custom emoji as your profile status.
- Insert or copy custom emoji from pack preview.
2022-09-14 23:06:00 +04:00
John Preston
08321b8d8b Fix sending custom emoji based on Dice-type game emoji. 2022-09-14 20:41:24 +04:00
John Preston
bc340d75c4 Insert / Copy emoji from pack preview. 2022-09-14 14:45:23 +04:00
John Preston
cae18b3320 Use "Change Emoji Status" phrase. 2022-09-14 12:27:06 +04:00
John Preston
d81b2fbb69 Activate the chosen default folder on Escape. 2022-09-14 09:13:28 +04:00
John Preston
02daa2a04b Add new reaction menu to channel comments. 2022-09-13 07:53:20 +04:00
John Preston
1363faddbf Add "Reaction button in messages" setting. 2022-09-13 07:44:22 +04:00
John Preston
20a5950f99 Fix premium star / status in accounts list. 2022-09-12 18:56:03 +04:00
John Preston
40bdcd7ebc Short poll extended media. 2022-09-12 18:18:31 +04:00
John Preston
379736a7d1 Show extended preview inline keyboard button. 2022-09-12 16:40:19 +04:00
John Preston
d2234d88b6 Update extended media, hide inline keyboard. 2022-09-12 16:10:56 +04:00
John Preston
c2fd4ccd59 Skip custom reactions if premium isn't possible. 2022-09-12 10:07:07 +04:00
John Preston
26c79939e0 Fix custom status duration edit from Settings. 2022-09-12 09:51:55 +04:00
John Preston
ffaeb239f0 Don't show emoji tooltip in reactions / statuses. 2022-09-12 09:46:23 +04:00
John Preston
7c8d3452b5 Fix reaction icons in Who Reacted. 2022-09-12 09:38:18 +04:00
John Preston
e2bca0a7ff Fix media with caption in a narrow window. 2022-09-12 09:35:28 +04:00
John Preston
2e8a03dfd1 Correctly round spoiler animation in ExtendedMedia. 2022-09-12 09:06:26 +04:00
John Preston
a919978a37 Use spoiler animation for ExtendedMedia. 2022-09-12 09:06:26 +04:00
John Preston
20b5138e00 Initial implementation of ExtendedMedia. 2022-09-12 09:06:26 +04:00
John Preston
2523d6e8d8 Update API scheme to layer 146. 2022-09-12 09:06:26 +04:00
John Preston
03e90840de Closed alpha version 4.1.1.1: Fix build with GCC. 2022-09-10 11:07:08 +04:00
John Preston
4ab34e3727 Suggest only like and dislike reactions in groups by default. 2022-09-10 09:36:08 +04:00
John Preston
3129d9f0df Add a distinct "N seconds" key for the slowmode phrase. 2022-09-10 08:19:37 +04:00
John Preston
2b6b1d7611 Closed alpha version 4.1.1.1. 2022-09-10 08:12:35 +04:00
John Preston
6e9493c725 Ignore premium gradient keys when colorizing theme. 2022-09-10 08:11:58 +04:00
John Preston
746141a363 Update lib_ui to fix a crash on Linux. 2022-09-10 08:08:46 +04:00
John Preston
4942154a9c Make loading emoji set icons look nicer. 2022-09-10 07:23:20 +04:00
John Preston
d511f2bb90 Fix via @bot after name for premium users. 2022-09-09 09:35:36 +04:00
John Preston
460b4b2de5 Move around some sources in CMakeLists. 2022-09-08 13:16:39 +04:00
John Preston
ab25cf214c Fix FFmpeg frame generator ending. 2022-09-08 09:50:11 +04:00
John Preston
b0203af398 Fix no-bubble comments button resize. 2022-09-08 09:38:52 +04:00
John Preston
c00f2f96ec Replace phone number with "Set Emoji Status". 2022-09-07 20:39:57 +04:00
John Preston
2215500c9a Add emoji status icon to premium promo. 2022-09-07 20:36:06 +04:00
John Preston
5cc6275fc3 Fly + effects when choosing an emoji status. 2022-09-07 12:52:34 +04:00
John Preston
d4810713cb Fly-animate reactions from the new context menu. 2022-09-06 17:08:20 +04:00
John Preston
1877786707 Special phrase for a colored emoji status. 2022-09-06 12:32:33 +04:00
John Preston
06ec574543 Fix single-frame 60 fps lotties. 2022-09-06 12:07:09 +04:00
John Preston
f0955f2021 Add emoji-status disclaimer for unknown peers. 2022-09-06 11:20:55 +04:00
John Preston
400d4b793a Fix initial visibility of Who can send messages.
Fixes #25030.
2022-09-06 08:09:29 +04:00
John Preston
d6ba092697 Make GIFs and videos with captions larger. 2022-09-05 19:03:52 +04:00
John Preston
9ef2f370ac Handle only username subdomains for t.me domain. 2022-09-05 12:22:43 +04:00
Ilya Fedin
234c74a439 Update patches commit in Dockerfile 2022-09-05 11:57:46 +04:00
Ilya Fedin
88f1f8ff22 Move QGuiApplication::setDesktopFileName call to Platform::start
It depends on Core::UpdaterDisabled that is not initialized in Launcher::initHook yet
2022-09-05 08:24:48 +04:00
John Preston
00ee31ce2d Make photos with captions wider. 2022-09-04 08:18:50 +04:00
Alexander Kernozhitsky
a5bd4ef6f7 Fix code style 2022-09-04 08:04:02 +04:00
Alexander Kernozhitsky
c6c2a44e9d Patch the remaining uses or FFmpeg APIs 2022-09-04 08:04:02 +04:00
Alexander Kernozhitsky
21b0454461 Remove duplicate line
Co-authored-by: darkkeks <darkkeks@rambler.ru>
2022-09-04 08:04:02 +04:00
Alexander Kernozhitsky
ca4b5edf21 Correct FFmpeg API usage
FFmpeg docs say that you must return AVERROR_EOF from the read callback, not zero. Still, Telegram just propagates the return value from IODevice::read() call, which returns zero in case of EOF.

I don't know whether this commit has any effect on the upstream build, but it fixes a bug in Debian build of Telegram, which is using FFmpeg 5.1 instead of 4.4. Still, it's also useful in the upstream, as it makes work with FFmpeg more correct.
2022-09-04 08:04:02 +04:00
Ilya Fedin
9ac739c423 Update poetry installer URL 2022-09-04 08:02:43 +04:00
Ilya Fedin
bd7a880468 Increase operation limit of stale action to 1000 for it to operate normally 2022-09-04 08:01:51 +04:00
Ilya Fedin
807e63d9f2 Disable PR processing in stale bot explicitly
According to the documentation, it shouldn't procces them until stale-pr-message is set, but that doesn't seem to be true
2022-09-04 08:01:51 +04:00
Ilya Fedin
4cedf89e51 Migrate from stale app to stale action
It doesn't seem to work for multiple months
2022-09-03 09:30:20 +04:00
John Preston
a736ddb24e One more fix for GCC build. 2022-09-03 09:08:13 +04:00
Ilya Fedin
b48674d302 Avoid unneccesary QPA, again 2022-09-03 08:47:02 +04:00
GitHub Action
a6a9b16358 Update User-Agent for DNS to Chrome 104.0.5112.101. 2022-09-03 08:42:51 +04:00
Ilya Fedin
dfb40dd216 Handle PiP aspect ratio on Wayland synchronously
During testing with Qt 6.4 I now remember why I made a way complicated logic (yes, because the trivial one bugs with Qt 6.4)
This restores it, but uses event filters rather than hardware integration override
2022-09-03 08:41:49 +04:00
John Preston
85acf051c1 Try to fix build with GCC. 2022-09-03 06:51:02 +04:00
Ilya Fedin
86059f2b5e Update Qt to 6.4.0 beta4 on Linux 2022-09-02 21:27:41 +04:00
Ilya Fedin
4f261ced8e Ceil device pixel ratio
Qt 6.4 provides QT_WIDGETS_HIGHDPI_DOWNSCALE that allows widgets to draw at integer device pixel ratio by using the next integer. Ceiling this value makes tdesktop in sync with technique and provides sharp content.

Without QT_WIDGETS_HIGHDPI_DOWNSCALE, this doesn't makes the content sharp, but the quality is still better as Qt attempts to downscale those graphic rather than upscale.
2022-09-02 21:27:41 +04:00
Ilya Fedin
feb6107ce6 Qt 6.4 supports window activation with tray on Wayland 2022-09-02 21:27:41 +04:00
Ilya Fedin
eab41d272b Fix various spaces on end of lines 2022-09-02 21:27:41 +04:00
Ilya Fedin
38da0e086d Get rid of lib_waylandshells 2022-09-02 21:27:41 +04:00
Ilya Fedin
f874876b00 Update wayland to 1.21.0 2022-09-02 21:27:41 +04:00
Ilya Fedin
2065616592 Let Qt use Vulkan headers for Vulkan support 2022-09-02 21:27:41 +04:00
John Preston
898edad09b Show status duration menu only in status panel. 2022-09-02 21:14:34 +04:00
23rd
49773dde72 Attempted to fix rare non-elided text in bar of pinned bot messages. 2022-09-02 21:14:34 +04:00
23rd
fa6b4f9b52 Slightly improved style of Premium Settings. 2022-09-02 21:14:34 +04:00
23rd
fa4801ac94 Added ability to set emoji status for certain period of time. 2022-09-02 21:14:34 +04:00
John Preston
9bb2bb09b9 Update API scheme on layer 145.
Restrict send from channels to premium in line with API restrictions.
2022-09-02 21:14:34 +04:00
John Preston
e32031963b Colorize status in premium promo and pack preview. 2022-09-02 21:14:34 +04:00
John Preston
c13221a984 Menu reactions selector without enabled compositing. 2022-09-02 21:14:34 +04:00
John Preston
688cd70c91 Prepend colored default statuses in selector. 2022-09-02 21:14:34 +04:00
John Preston
a256eb4bc8 Add mini-copies animation for custom reactions. 2022-09-02 21:14:34 +04:00
John Preston
7d77e8a203 Play generic animations for custom reactions. 2022-09-02 21:14:34 +04:00
John Preston
47709884dd Allow 50% interface scale from command line. 2022-09-02 21:14:33 +04:00
John Preston
7658d1da3c Fix unsetting reaction in private chats. 2022-09-02 21:14:33 +04:00
John Preston
0a3077b9a5 Update API scheme on layer 145. 2022-09-02 21:14:33 +04:00
John Preston
e0513f7b7c Return old allowed reactions edit for channels. 2022-09-02 21:14:33 +04:00
23rd
7e7562fdad Fixed crash in RecoverBox from PasscodeBox with custom check callback. 2022-09-02 21:14:33 +04:00
23rd
15aefddab4 Added support of Webm custom emoji to Premium Settings. 2022-09-02 21:14:33 +04:00
23rd
e34b61d56b Moved out HistoryView::StickerPlayer implementations to separate file. 2022-09-02 21:14:33 +04:00
John Preston
010b5e3949 Support username.t.me links. 2022-09-02 21:14:33 +04:00
John Preston
5530df8f2d Play emoji status only twice in main menu. 2022-09-02 21:14:33 +04:00
John Preston
742b819c7e Always show reaction userpics in private chats. 2022-09-02 21:14:33 +04:00
John Preston
2618ee3d75 Paint two-loops of custom emoji statuses. 2022-09-02 21:14:33 +04:00
John Preston
da281c4d3d Fix build with Xcode. 2022-09-02 21:14:33 +04:00
John Preston
2d07539892 Support colored emoji statuses. 2022-09-02 21:14:33 +04:00
John Preston
923e725e18 Request default and recent emoji statuses. 2022-09-02 21:14:33 +04:00
23rd
b2d72e2541 Removed subscription options from Settings when there is only one. 2022-09-02 21:14:33 +04:00
23rd
7ed10eaacc Added gradient colors to radiobutton views in Premium Settings. 2022-09-02 21:14:33 +04:00
23rd
5505a566be Replaced gradient header in Premium Settings for dark themes. 2022-09-02 21:14:32 +04:00
23rd
35c59ad35a Moved out util function for contrast calculation between 2 colors. 2022-09-02 21:14:32 +04:00
John Preston
5e81c65ea6 Implement improved allowed reactions editing. 2022-09-02 21:14:32 +04:00
John Preston
021e275336 Update API scheme on layer 145. 2022-09-02 21:14:32 +04:00
John Preston
e540b8cbdc Read correct reactions limit from config. 2022-09-02 21:14:32 +04:00
John Preston
ebf6cea2f5 Correctly show premium promo for custom reactions. 2022-09-02 21:14:32 +04:00
John Preston
a3c110dafa Correctly show flying custom reactions. 2022-09-02 21:14:32 +04:00
John Preston
ad0c9ebb79 Fly-animate custom reactions. 2022-09-02 21:14:32 +04:00
John Preston
d5008fe7ac Sync custom emoji from strip to recent in the panel. 2022-09-02 21:14:32 +04:00
John Preston
7c3814cdcd Fix recent userpics display in reactions. 2022-09-02 21:14:32 +04:00
John Preston
ed3f246510 Use FrameGenerator-based AnimatedIcon for reactions. 2022-09-02 21:14:32 +04:00
John Preston
d9a6d5f508 Update API scheme on layer 145. 2022-09-02 21:14:32 +04:00
23rd
da6d580348 Fixed style of box for premium doubled limits. 2022-09-02 21:14:32 +04:00
23rd
0ffa88d0f3 Added shadow to small TopBar in Premium Settings for user. 2022-09-02 21:14:32 +04:00
23rd
149d92d224 Added ability to choose subscription option for Premium in Settings. 2022-09-02 21:14:32 +04:00
23rd
6f3d19914d Unified parsing of MTP gift and subscription options in separate file. 2022-09-02 21:14:32 +04:00
23rd
fc759ac688 Renamed GiftOption to SubscriptionOption. 2022-09-02 21:14:31 +04:00
23rd
e03eaaaa98 Fixed switching between sections of Premium Settings. 2022-09-02 21:14:31 +04:00
23rd
857f56d5b4 Added animation pause in TopBar in Premium Settings for user. 2022-09-02 21:14:31 +04:00
23rd
638cf237c4 Slightly improved design of Premium Settings. 2022-09-02 21:14:31 +04:00
23rd
01b50a8460 Added initial implementation of TopBar in Premium Settings for user. 2022-09-02 21:14:31 +04:00
23rd
b519b6bf4c Reduced minimum and maximum sizes of ministars. 2022-09-02 21:14:31 +04:00
23rd
b10bf0e12c Replaced svg file for premium star. 2022-09-02 21:14:31 +04:00
23rd
4d43830c3b Replaced ripple colors for top buttons in Premium Settings. 2022-09-02 21:14:31 +04:00
23rd
65ad8e6ac1 Moved out class for colored ministars to separate file. 2022-09-02 21:14:31 +04:00
23rd
56cbde93da Divided TopBar in Premium Settings into abstract and main classes. 2022-09-02 21:14:31 +04:00
23rd
90ef0e4969 Reformated serializing and parsing of ref data for Premium Settings. 2022-09-02 21:14:31 +04:00
John Preston
668a3308be Support custom emoji reactions in WhoReacted. 2022-09-02 21:14:31 +04:00
John Preston
ba83836922 Display custom emoji reactions under messages. 2022-09-02 21:14:31 +04:00
John Preston
14f937cb02 Show only some reactions in the bottom info.
Only in private chats with no premium users.
Only if nobody sent more than one reaction while was premium.
Only if nobody sent a custom emoji reaction while was premium.
2022-09-02 21:14:31 +04:00
John Preston
733cad798b Load emoji for reactions panel. 2022-09-02 21:14:31 +04:00
John Preston
8a6b3027f5 Support multiple reactions from one user. 2022-09-02 21:14:31 +04:00
John Preston
31db1804c8 Request top and recent reactions. 2022-09-02 21:14:31 +04:00
John Preston
f8c962712b Update API scheme on layer 145. 2022-09-02 21:14:31 +04:00
John Preston
a202174d12 Disable expand button in the inline reactions selector for now. 2022-09-02 21:14:31 +04:00
John Preston
3399397a76 Allow 1 year for session termination delay. 2022-09-02 21:14:30 +04:00
John Preston
c655f78780 Fix build with Xcode. 2022-09-02 21:14:30 +04:00
John Preston
73d8530c13 Fix jumping to premium promo from reactions panel. 2022-09-02 21:14:30 +04:00
John Preston
610c46e26f Make a nice selector for only-recent set. 2022-09-02 21:14:30 +04:00
John Preston
96805b62b2 Seamless switch from strip icons to custom emoji. 2022-09-02 21:14:30 +04:00
John Preston
4762c7a4fd Fix layout with a single available reaction. 2022-09-02 21:14:30 +04:00
John Preston
0277d765bb Nice reactions panel expanding. 2022-09-02 21:14:30 +04:00
John Preston
20d4d00634 Implement expanding of list / categories. 2022-09-02 21:14:30 +04:00
John Preston
c5fa4aae62 Support reaction dropdown based on EmojiListWidget. 2022-09-02 21:14:30 +04:00
John Preston
f72092a261 Update API scheme on layer 145. 2022-09-02 21:14:30 +04:00
John Preston
33b266175d Allow creating EmojiListWidget without SessionController. 2022-09-02 21:14:30 +04:00
John Preston
c9a98ae723 Expand reaction selection panel. 2022-09-02 21:14:30 +04:00
John Preston
bd42c23999 Implement reactions selector above the menu. 2022-09-02 21:14:30 +04:00
John Preston
f658cb7e99 Update API scheme on layer 145. 2022-09-02 21:14:30 +04:00
John Preston
fa26afaf9a Rename several HistoryView::Reactions modules. 2022-09-02 21:14:30 +04:00
John Preston
b648387e96 Fixed emoji packs menu item. 2022-09-02 21:14:29 +04:00
John Preston
8d2ebdbb99 Animate reactions strip appearance. 2022-09-02 21:14:29 +04:00
John Preston
a0d5456a4d PoC content outside of PopupMenu. 2022-09-02 21:14:29 +04:00
23rd
c20ed7c7a8 Enabled utf-8 mode for python while breakpad is building. 2022-09-02 21:14:29 +04:00
23rd
ef543d040e Replaced separate click handlers for each spoiler entry with single one. 2022-09-02 21:14:29 +04:00
John Preston
27063167ae Don't cut name / status unnecessary. 2022-09-02 21:14:29 +04:00
John Preston
8a1118d9bb Show how much message limit is exceeded when editing. 2022-09-02 21:14:29 +04:00
John Preston
1e2e007d38 Show custom emoji in private chat reactions. 2022-09-02 21:14:29 +04:00
John Preston
09124f6424 Implement PoC custom reaction selection. 2022-09-02 21:14:29 +04:00
John Preston
cece9cf09b Show in chats list EntityType::Pre like EntityType::Code. 2022-09-02 21:14:29 +04:00
John Preston
60cc232884 Update API scheme on layer 145. 2022-09-02 21:14:29 +04:00
John Preston
ba8673af5e Fix build with Xcode. 2022-09-02 21:14:29 +04:00
John Preston
77772caabb Update API scheme on layer 145. 2022-09-02 21:14:29 +04:00
John Preston
e22bb40dd1 Improve premium / emoji status badge styles. 2022-09-02 21:14:29 +04:00
John Preston
bd089f20a8 Emoji status selector in MainMenu/Settings. 2022-09-02 21:14:28 +04:00
John Preston
64bd4f0926 Make nice emoji status selector in profile. 2022-09-02 21:14:28 +04:00
John Preston
165d3143de Allow emoji status edit from self profile. 2022-09-02 21:14:28 +04:00
John Preston
21fd381778 Show emoji status in chats list / top bar. 2022-09-02 21:14:28 +04:00
John Preston
285ce81b7b Update API scheme to layer 145. 2022-09-02 21:14:28 +04:00
Ilya Fedin
e7f85f7255 Add missing include to settings_advanced 2022-09-02 18:46:31 +04:00
Ilya Fedin
12d8d193a1 Create QSystemTrayIcon even when tray is not supported
QSystemTrayIcon provides no public API to know when tray icon support appears, but can subscribe to native events internally

This should help for environments where a race condition between applications autostart and tray service autostart present in case Qt is subscribed internally
2022-09-02 17:29:57 +04:00
Ilya Fedin
c18313614b Use Core::Tray::has in settings_advanced 2022-09-02 17:29:57 +04:00
Ilya Fedin
f1092753fc Remove version from the .desktop file
Some desktop environments hide the launcher if they don't know the version
2022-09-01 13:53:53 +04:00
Ilya Fedin
5fc7caeec9 Provide old version to Platform::NewVersionLaunched 2022-09-01 13:53:53 +04:00
Ilya Fedin
e20840b4d4 Use KUrlMimeData for clipboard xdg-desktop-portal integration 2022-08-30 20:25:10 +04:00
Ilya Fedin
5f53dfda0e Move Qt version from configure.py to CMakeLists.txt 2022-08-30 20:25:10 +04:00
Joe Kappus
630e73fa23 Fix build with GCC 12. 2022-08-30 12:42:26 +04:00
John Preston
92a9ba2ba0 Use exact jom url instead of mirrored. 2022-08-29 09:12:09 +04:00
Ilya Fedin
4d4d75addf Install nuget and jom with prepare.py 2022-08-28 08:38:37 +04:00
Ilya Fedin
42fe80b5e2 Use perl, nasm, yasm and ninja from msys64 2022-08-28 08:38:37 +04:00
Ilya Fedin
96793179a3 Find nuget in the recommended directory automatically 2022-08-28 00:35:45 +04:00
Ilya Fedin
fc19ce5a9b Install msys64 with prepare.py 2022-08-28 00:35:45 +04:00
Ilya Fedin
31fa6d24f4 Use zlib built with cmake on Windows 2022-08-28 00:35:45 +04:00
John Preston
7b005c64e0 Workaround MSVC 17.3.2 ICE. 2022-08-26 09:47:03 +04:00
Yue Wu
82d68f5b98 Fix JSON output when exporting custom emojis
Fixes #24961
2022-08-23 12:21:58 +04:00
Ilya Fedin
2259f747f1 Add missing network-status permission
This should make webview working as well as auto-reconnection when system network changed
2022-08-22 17:23:02 +04:00
John Preston
c793537d96 Version 4.1.1.
- Fix editing media captions with animated emoji.
- Fix viewing animated emoji sets used in a message.
- Fix premium sticker tooltip auto-show in channel comments.
- Fix main window position and size restoring after relaunch.
- Other bug fixes and minor improvements.
2022-08-16 09:38:19 +03:00
23rd
e568f7ab01 Added ability to restrict voice messages in conversations for everyone. 2022-08-16 09:38:19 +03:00
John Preston
11b711c43f Fix realtime "Large emoji" applying to only-custom-emoji. 2022-08-16 09:29:02 +03:00
John Preston
d1a81a83b4 Fix crash in editing media captions. 2022-08-16 09:21:12 +03:00
John Preston
42ca06d33c Request up to 32 file parts at once for video downloads. 2022-08-16 08:57:36 +03:00
John Preston
184ebc865c Fix downloading videos of size > INT_MAX to disk. 2022-08-16 08:56:30 +03:00
John Preston
c8c3f43853 Fix editing media captions with custom emoji. 2022-08-16 08:27:55 +03:00
John Preston
9105677325 Add "View Profile" even with third column info. 2022-08-16 07:41:32 +03:00
John Preston
7c2d3a8855 Fix custom emoji in initial send files caption. 2022-08-15 19:10:38 +03:00
John Preston
888306c017 Fix custom emoji in reply bar in comments / scheduled. 2022-08-15 19:01:40 +03:00
John Preston
6ff30c643a Fix user links in Recent Actions. 2022-08-15 18:54:08 +03:00
John Preston
5f8fca0355 Don't allow custom emoji pseudo-links in EditLink. 2022-08-15 18:41:37 +03:00
John Preston
4933fbb74a Show out message timestamp always for > 3 custom emoji. 2022-08-15 17:54:45 +03:00
John Preston
51010e864c Fix premium sticker tooltip auto-show in comments. 2022-08-15 16:39:56 +03:00
John Preston
24ee944689 Improve reply info layout in narrow mode.
Fixes #24935.
2022-08-15 16:21:08 +03:00
John Preston
2c0a38d356 Don't unload emoji sets.
Fixes #24933.
2022-08-15 15:52:27 +03:00
John Preston
e05f570e1a Fix custom emoji copy from TextWithEntities to clipboard. 2022-08-15 15:13:46 +03:00
John Preston
2846b2f7a5 Fix stickers list footer last icon. 2022-08-15 14:23:07 +03:00
John Preston
c126a1e56e Simplify CustomEmojiId. 2022-08-15 13:17:24 +03:00
John Preston
f0f7318978 Better saved credentials processing. 2022-08-15 12:20:17 +03:00
John Preston
fede1ff173 Simplify stickers inner API. 2022-08-15 11:34:22 +03:00
John Preston
94e4a8981f Specify gift box sticker explicitly. 2022-08-15 10:42:06 +03:00
Ilya Fedin
1e7117dd67 Revert "Fix enlargening the window by shadow margin when resotring position"
This reverts commit e0ddaf9da1.
2022-08-14 11:51:13 +04:00
Ilya Fedin
65ddbec794 Set Qt version in configure.py 2022-08-14 11:51:13 +04:00
Ilya Fedin
8adec5fcfd Update lib_webview 2022-08-13 14:32:11 +04:00
Joe Kappus
f82089cbfe Fix build with GCC 12. 2022-08-13 14:18:13 +04:00
Ilya Fedin
23d9ca896e Update cmake_helpers 2022-08-13 12:10:07 +04:00
Ilya Fedin
5f3c957b1d Use COPY --link to consume less space when building Docker image 2022-08-13 12:10:07 +04:00
Ilya Fedin
b9181db407 Don't use QWindowSystemInterface in the PiP
It provides no difference, there was a mistake while testing the behavior
2022-08-12 19:51:04 +03:00
Ilya Fedin
be8d91055a Remove unused prepare.sh in centos_env 2022-08-12 19:47:03 +03:00
John Preston
df45294855 Version 4.1: Fix build with GCC. 2022-08-12 19:01:41 +03:00
John Preston
ef6d2b2c0b Version 4.1.
- Include animated emoji in messages and captions.
- Premium users unlock over 500 new emoji,
including custom packs with unique characters.
- All users can view any emoji,
and try them out in the Saved Messages chat.
- Control who can send you voice
and video messages with Telegram Premium.
- Send a Premium subscription to any user from their profile.
- Choose 3, 6, or 12 months - at a discount.
2022-08-12 16:46:57 +03:00
John Preston
60839bb8ac Update cmake_helpers. 2022-08-12 16:23:05 +03:00
John Preston
228a48c8bf Fix possible crash in main window destructor.
In platform window destructor it can send window state change signal.
2022-08-12 16:21:52 +03:00
John Preston
76a482317d Fix main menu name label refreshing. 2022-08-11 20:58:30 +03:00
John Preston
01f28b4d52 Use CustomEmoji instances for categories in the panel. 2022-08-11 20:56:33 +03:00
John Preston
655194c841 Return ApiWrap::requestPeerSettings method. 2022-08-11 09:59:18 +03:00
Ilya Fedin
8fe48f3ca2 Use cmake_dependent_option to better declare variables that relate on other variables 2022-08-11 09:07:15 +03:00
John Preston
54f467eb47 Don't rely on MTP* when sending photos. 2022-08-11 09:06:56 +03:00
John Preston
3698396677 Remove MTP from Polls::create interface. 2022-08-11 09:06:43 +03:00
John Preston
d2e1517e7a Correctly cancel username check request. 2022-08-11 09:06:30 +03:00
John Preston
7733e3350d Remove unused private fields in ApiWrap. 2022-08-11 09:06:16 +03:00
John Preston
566128c3eb Remove MTP from requestDeepLinkInfo interface. 2022-08-11 09:05:37 +03:00
John Preston
ab3d3a449b Remove MTP from requestWallPaper interface. 2022-08-11 09:05:23 +03:00
John Preston
e9fd249c5a Remove some unused ApiWrap methods. 2022-08-11 09:04:25 +03:00
John Preston
e7a3c5367a Make MTP* optional in ConfirmInviteBox. 2022-08-11 09:02:41 +03:00
John Preston
8bc807dc40 Set name / phone texts on-demand. 2022-08-09 14:12:19 +03:00
Ilya Fedin
ceb7d5f238 Use version-less Qt targets and functions whenever possible 2022-08-09 10:42:24 +04:00
John Preston
84b3260f38 Don't open group info on migration update. 2022-08-08 20:21:30 +03:00
Sergey A. Osokin
7a3452a18a Fix warnings by removing unused const variables
Telegram/SourceFiles/ui/text/custom_emoji_instance.cpp:23:16: warning: unused variable 'kMaxFrameDuration' [-Wunused-const-variable]
Telegram/SourceFiles/boxes/reactions_settings_box.cpp:46:16: warning: unused variable 'kVisibleButtonsCount' [-Wunused-const-variable]
Telegram/SourceFiles/boxes/premium_preview_box.cpp:53:16: warning: unused variable 'kShiftDuration' [-Wunused-const-variable]
Telegram/SourceFiles/settings/settings_premium.cpp:55:16: warning: unused variable 'kTitleAnimationPart' [-Wunused-const-variable]

Found by:	clang
2022-08-08 21:21:13 +04:00
John Preston
05edf00d40 Fix unwrapped media top skip. 2022-08-08 19:12:18 +03:00
John Preston
b67bfd0a8a Improve device model detection on macOS. 2022-08-08 19:12:08 +03:00
John Preston
90d2021f4d Jump to keyboard top on FullMsgId change. 2022-08-08 18:28:36 +03:00
John Preston
72ed3bfab9 Show leave confirmation when starting an RTMP stream. 2022-08-08 18:19:04 +03:00
John Preston
d8743ec0e6 Fix opening channel with active livestream in a new window. 2022-08-08 18:18:44 +03:00
John Preston
3a3341fef8 Fix RTMP livestream starting while in another call.
Fixes #24862.
2022-08-08 16:39:44 +03:00
John Preston
068eb3fcd1 Fix a click on "via @bot" of a sticker.
Fixes #24888.
2022-08-08 16:02:09 +03:00
John Preston
75ee74ff1f Fix paddings in unwrapped emoji messages. 2022-08-08 15:41:33 +03:00
John Preston
dfb3346096 Better replace many same emoji at once. 2022-08-08 15:34:04 +03:00
John Preston
a098abefd7 Replace many same emoji at once. 2022-08-08 15:24:11 +03:00
John Preston
f63984c9e3 Don't select first result on animated emoji suggestion. 2022-08-08 14:57:33 +03:00
John Preston
9509c88ef9 Fix possible crash in pinned messages destruction. 2022-08-08 14:32:16 +03:00
John Preston
819925fc72 Don't show premium effects on message previews. 2022-08-08 13:37:31 +03:00
John Preston
cf4b869c27 Don't always show timestamps on large custom-emoji-only messages. 2022-08-08 13:37:15 +03:00
John Preston
5c43a541d7 Show emoji promo only on Premium Emoji toast. 2022-08-08 13:25:22 +03:00
Ilya Fedin
68e0d155f9 Update submodules 2022-08-08 11:05:52 +04:00
Ilya Fedin
8c1bef929e A better way of PiP aspect ratio handling on Wayland 2022-08-08 11:05:52 +04:00
23rd
cde5e89e42 Fixed recording of voice messages in Saved Messages. 2022-08-08 09:34:55 +03:00
Ilya Fedin
e0ddaf9da1 Fix enlargening the window by shadow margin when resotring position 2022-08-08 08:54:14 +04:00
Vedant
aa208fb7d0 Update winget.yml 2022-08-05 18:49:28 +04:00
John Preston
b7cc2e9894 Don't pass redundant MTPUpdates arguments. 2022-08-05 13:37:41 +03:00
John Preston
d891a5344a Beta version 4.0.4: Fix build with GCC. 2022-08-05 10:12:48 +03:00
John Preston
11b62118d2 Beta version 4.0.4.
- Allow sending animated emoji to Saved Messages
even without Telegram Premium.
- Premium: Suggest animated emoji by regular emoji
(can be disabled in Settings).
- Premium: Show all suggested premium stickers
in a special section of the stickers panel.
- Premium: Allow hiding premium stickers special section
of the stickers panel.
- Fix a memory leak in RTMP livestreams.
- Fix some bot webview bugs on macOS.
- Fix forwarding of voice messages.
2022-08-04 21:05:44 +03:00
John Preston
7c284a9453 Drop custom emoji correctly in message edit preview. 2022-08-04 20:55:50 +03:00
John Preston
57b0ec0d7e Fix forwarded message with custom emoji preview. 2022-08-04 20:41:45 +03:00
Ilya Fedin
66d2c06eb4 Update minimum & maximum size in the PiP 2022-08-04 21:27:57 +04:00
John Preston
2f5038a792 Improve webview on macOS. 2022-08-04 19:33:56 +03:00
John Preston
5793241efc Improve webview popups design. 2022-08-04 18:26:12 +03:00
John Preston
9b92700c24 Add additional cloud premium stickers to fake-set. 2022-08-04 17:48:36 +03:00
John Preston
068d3caef5 Allow hiding Premium Stickers fake-sticker-set. 2022-08-04 17:29:49 +03:00
John Preston
4bdac53be2 Fix toast hiding on jump to Saved Messages. 2022-08-04 17:06:02 +03:00
John Preston
c8ec183c88 Fix custom emoji suggestions geometry. 2022-08-04 17:06:02 +03:00
Ilya Fedin
bf339de773 Always pass activation_token option
glib shows a warning about invalid GVariant and empty activation_token shouldn't hurt I believe
2022-08-04 17:12:07 +04:00
John Preston
e438cb57bc Show, send and receive interactions in single custom emoji. 2022-08-04 16:10:36 +03:00
Ilya Fedin
9e63fc5acd Let PiP have custom buffer size on Wayland 2022-08-04 16:41:25 +04:00
John Preston
543bfab24a Resolve custom emoji in OnlyCustomEmoji media. 2022-08-04 14:31:15 +03:00
John Preston
f8e22210e7 Move Webm sticker to UnwrappedMedia. 2022-08-04 13:35:34 +03:00
Aokromes
5b0d023a88 Update README.md 2022-08-03 21:46:04 +04:00
John Preston
7a88f9434e Support OnlyCustomEmoji unwrapped messages. 2022-08-03 20:43:26 +03:00
John Preston
8a91c949c2 Fix build with GCC and Clang. 2022-08-03 20:41:01 +03:00
Ilya Fedin
0921ae283b Send XDG_ACTIVATION_TOKEN to the first instance 2022-08-03 15:26:08 +04:00
Ilya Fedin
d500714242 Use xdg-activation to open URLs&files 2022-08-03 15:26:08 +04:00
John Preston
c5702f0887 Request small song thumbnails. 2022-08-03 11:43:30 +03:00
John Preston
f4b80d8714 Show premium emoji toast / send to Saved Messages. 2022-08-02 20:59:50 +03:00
John Preston
59903b0b1c Suggest animated emoji in Saved Messages. 2022-08-02 19:23:06 +03:00
John Preston
2319278c92 Suggest animated emoji by regular emoji. 2022-08-02 17:57:59 +03:00
23rd
e7b3416da8 Allowed to forward voice messages without full user info. 2022-08-02 16:51:11 +03:00
23rd
c47e951519 Added missed back button to premium narrow section without stack. 2022-08-02 16:51:00 +03:00
John Preston
5472654ac1 Show "You" in out voice messages player. 2022-08-02 16:48:47 +03:00
John Preston
4a5592e95d Show premium mark in suggested stickers. 2022-08-02 16:47:53 +03:00
John Preston
e3140a8a45 Implement premium sticker-by-emoji suggestions. 2022-08-02 13:20:38 +03:00
John Preston
1968fb5d95 Fix memory leak in RTMP streams.
Fixes #24849.
2022-08-02 13:20:38 +03:00
John Preston
4915ea8ad3 Add convenient appConfig().get<int>(..). 2022-08-02 13:20:38 +03:00
John Preston
b96e09534d Fix blocked list loading.
Fixes #24783.
2022-08-02 13:20:38 +03:00
John Preston
0ce7e402ed Mark premium stickers with a star. 2022-08-02 13:20:38 +03:00
John Preston
b42f2784ab Allow sending premium emoji to Saved Messages. 2022-08-02 13:20:38 +03:00
John Preston
087074fea4 Request song covers through MTProto. 2022-08-02 13:20:38 +03:00
Ilya Fedin
be133fce78 Follow TitleControlsLayout in the PiP 2022-08-01 13:53:50 +04:00
GitHub Action
07232e2520 Update User-Agent for DNS to Chrome 103.0.5060.134. 2022-08-01 13:53:11 +04:00
Ilya Fedin
66c9587650 Add fail callback to linux notifications exceptions handler 2022-07-31 12:21:24 +04:00
John Preston
730ee3ae16 Beta version 4.0.3: Fix build with Xcode. 2022-07-29 00:33:47 +03:00
John Preston
9ae7dc1cab Beta version 4.0.3.
- Animated emoji for messages.
- Premium: Privacy settings for voice messages.
- Premium: Gifting Telegram Premium to any user from their profile page.
2022-07-28 23:23:48 +03:00
John Preston
8bb3cd7e65 Push click handler context to Api::ActivateBotCommand. 2022-07-28 20:03:38 +03:00
Ilya Fedin
8e8a209aad Guard linux notification inhibition checks 2022-07-28 20:18:51 +04:00
Ilya Fedin
a79e979fb8 Fix Linux GitHub action 2022-07-28 20:18:06 +04:00
Ilya Fedin
bb8ffcac3a Default to Wayland on GNOME for new installs 2022-07-28 20:17:49 +04:00
John Preston
7a61693034 Limit attached emoji phrase to two lines. 2022-07-28 18:36:48 +03:00
John Preston
d80cf5d149 Download stickers for custom emoji in export. 2022-07-28 18:36:48 +03:00
23rd
d57e752ae9 Added ability to open context menu from inner media in service messages. 2022-07-28 02:49:07 +03:00
23rd
de7f983aeb Changed sort by DocumentId wit sort by index for gift sticker fallback. 2022-07-28 02:49:07 +03:00
23rd
c1fa39ac05 Equaled top and bottom padding for sticker in service gift message. 2022-07-28 02:49:07 +03:00
John Preston
3c19d7b302 Show shared link long URL tooltips. 2022-07-27 14:24:34 +03:00
John Preston
c8aacbdb9f Allow viewing emoji packs from comments / scheduled. 2022-07-27 14:02:41 +03:00
John Preston
85ec212220 Don't scroll large message menus. 2022-07-27 13:49:27 +03:00
23rd
2d75f9e752 Fixed build with Xcode. 2022-07-27 12:49:52 +03:00
23rd
7e208453c7 Fixed context menu for gift service actions. 2022-07-27 12:49:52 +03:00
23rd
3602155f68 Fixed display of gift service actions for gift senders. 2022-07-27 12:49:52 +03:00
John Preston
e64190fb64 Fix crash in attached emoji preview. 2022-07-27 12:26:22 +03:00
John Preston
4f39e723f9 Closed alpha version 4.0.2.4. 2022-07-26 20:12:14 +03:00
John Preston
a58c41be96 Fix scrolling of emoji categories. 2022-07-26 20:12:14 +03:00
John Preston
3c352cad40 Don't scroll outer categories through inner categories. 2022-07-26 20:12:14 +03:00
John Preston
80ebd943aa Fix popup menu with variable item height. 2022-07-26 20:12:14 +03:00
John Preston
4cf4b6a368 Optimize emoji / stickers update requests. 2022-07-26 20:12:14 +03:00
John Preston
4f7aa15416 Fix emoji panel footer updating. 2022-07-26 20:12:14 +03:00
John Preston
f7885da7dd Support additional saved payment methods. 2022-07-26 20:12:14 +03:00
John Preston
e492a18194 Add emoji subcategory icon color. 2022-07-26 20:12:14 +03:00
John Preston
4796594011 Fix crash in large animated emoji. 2022-07-26 20:12:14 +03:00
John Preston
73fc478a2d Allow removing sets from emoji set preview box. 2022-07-26 20:12:14 +03:00
John Preston
af54721f07 Disable attach bot share phone command for now. 2022-07-26 20:12:14 +03:00
John Preston
136eaee8d5 Fix crash on data share in attach bots. 2022-07-26 20:12:14 +03:00
John Preston
edfb7bb65a Support custom emoji in IsolatedEmoji. 2022-07-26 20:12:14 +03:00
John Preston
9b941bae97 Copy single selected message without author. 2022-07-26 20:12:14 +03:00
John Preston
813bbba8b7 Allow copying large-emoji message texts. 2022-07-26 20:12:13 +03:00
John Preston
2a4d269eca Use large image previews more. 2022-07-26 20:12:13 +03:00
John Preston
2d6008f6ca Fix custom emoji in edit caption / send files box. 2022-07-26 20:12:13 +03:00
John Preston
075ced2742 Remove emoji-set preview context menu. 2022-07-26 20:12:13 +03:00
John Preston
012ecb2dcc Limit animated emoji to 30 FPS. 2022-07-26 20:12:13 +03:00
John Preston
31bb08068b Use non-exact image previews if available. 2022-07-26 20:12:13 +03:00
John Preston
c51837cfdf Reuse SizeTag::Large emoji instances. 2022-07-26 20:12:13 +03:00
John Preston
076d5c756a Fix build with Xcode and GCC. 2022-07-26 20:12:13 +03:00
John Preston
b829ed3530 Build docker using poetry by ./build/prepare/linux.sh 2022-07-26 20:12:13 +03:00
John Preston
5624162194 Closed alpha version 4.0.2.3. 2022-07-26 20:12:13 +03:00
John Preston
bb8f8131e4 Improve premium preview from emoji panel. 2022-07-26 20:12:13 +03:00
John Preston
19f89b1d87 Collapse unavailable premium emoji sets in the panel. 2022-07-26 20:12:13 +03:00
John Preston
b0fab8c987 Show featured custom sets in the panel. 2022-07-26 20:12:13 +03:00
John Preston
ff55918da0 Parse link entities into Data::Invoice. 2022-07-26 20:12:13 +03:00
John Preston
9d7060c24a Pass secondary_bg_color to WebView-s. 2022-07-26 20:12:13 +03:00
John Preston
b4b55973b5 Request and cache featured emoji sets. 2022-07-26 20:12:13 +03:00
John Preston
b31a3ba5a3 Improve emoji set box design. 2022-07-26 20:12:13 +03:00
23rd
152bcb3570 Changed calculation of discount for premium gifts relative to smallest. 2022-07-26 20:12:13 +03:00
23rd
d2170232af Added toast to privacy setting for voice messages for non-premium users. 2022-07-26 20:12:13 +03:00
John Preston
4c45ddfde1 Fix slot machine stickers size. 2022-07-26 20:12:13 +03:00
John Preston
18a6f7d700 Make 8 column emoji picker by default. 2022-07-26 20:12:13 +03:00
John Preston
265bebb304 Closed alpha version 4.0.2.2. 2022-07-26 20:12:13 +03:00
John Preston
905137e421 Respect kSetVersion in default set cache key. 2022-07-26 20:12:12 +03:00
John Preston
b14b69272a Fix build with GCC. 2022-07-26 20:12:12 +03:00
John Preston
45b875f1a1 Closed alpha 4.0.2.1. 2022-07-26 20:12:12 +03:00
John Preston
1171c4b0b1 Fix build after rebase. 2022-07-26 20:12:12 +03:00
23rd
505e60545e Respected privacy setting for voice messages when they are forwarded. 2022-07-26 20:12:12 +03:00
John Preston
c9aec6a170 Update emoji to Unicode 14. 2022-07-26 20:12:12 +03:00
John Preston
bb29773090 In jump-to-date don't clear history stack. 2022-07-26 20:12:12 +03:00
John Preston
58fb14e292 Show Experimental settings in builds without autoupdates. 2022-07-26 20:12:12 +03:00
John Preston
bb251627a9 Support additional payment methods. 2022-07-26 20:12:12 +03:00
John Preston
de0eef8cc6 Update API scheme on layer 144. 2022-07-26 20:12:12 +03:00
John Preston
04d4fdbf9b Support suggestions of custom emoji. 2022-07-26 20:12:12 +03:00
John Preston
bf286cf175 Show "Unlock emoji" button for premium sets. 2022-07-26 20:12:12 +03:00
John Preston
bb7249f280 Allow viewing emoji sets used in a message. 2022-07-26 20:12:12 +03:00
John Preston
fce4452af5 Fix repainting of custom emoji in notifications. 2022-07-26 20:12:12 +03:00
John Preston
8a9549dca3 Fix custom emoji preview painting on Retina screen. 2022-07-26 20:12:12 +03:00
John Preston
8383caa2b5 Fix build with Xcode. 2022-07-26 20:12:12 +03:00
23rd
57ecd918f1 Added auto-unblocking of bot when it is auto-submitted. 2022-07-26 20:12:11 +03:00
23rd
2055fbc164 Added ability to hide sticker toast with right click. 2022-07-26 20:12:11 +03:00
23rd
31a683ab3d Added lock icon to buttons in privacy settings. 2022-07-26 20:12:11 +03:00
23rd
391082712a Added fallback sticker for pack for premium gifts even without order. 2022-07-26 20:12:11 +03:00
23rd
b7189556f8 Respected order from special pack for premium gifts. 2022-07-26 20:12:11 +03:00
John Preston
240b47da86 Check test/production DC in recent emoji. 2022-07-26 20:12:11 +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
4ca6af33d4 Support web_app_request_phone attach bot requests. 2022-07-26 20:12:11 +03:00
John Preston
2524b9a4c6 Show outline for premium emoji packs. 2022-07-26 20:12:11 +03:00
John Preston
3ccc567e04 Add animated emoji premium preview. 2022-07-26 20:12:11 +03:00
John Preston
66b2bdd656 Improve footer custom emoji sizes. 2022-07-26 20:12:11 +03:00
John Preston
ffe4babe89 Update API scheme on layer 144. 2022-07-26 20:12:11 +03:00
23rd
3fe83282a8 Slightly improved code style of controllers for privacy settings. 2022-07-26 20:12:11 +03:00
23rd
67195f3825 Added initial support of privacy setting for voice messages. 2022-07-26 20:12:11 +03:00
23rd
b295a9eeb1 Added support of service actions for premium gifts to export. 2022-07-26 20:12:11 +03:00
23rd
e84f5aaa3d Added support of service actions for premium gifts. 2022-07-26 20:12:11 +03:00
23rd
ef72c9f7ee Moved media above text in service messages. 2022-07-26 20:12:11 +03:00
23rd
89a3462824 Simplified extracting of data from some MTP* responses. 2022-07-26 20:12:11 +03:00
John Preston
44a7d11e4a Support mixed custom / default recent emoji. 2022-07-26 20:12:11 +03:00
John Preston
c0ec3a23bb Remove old emoji panel footer code. 2022-07-26 20:12:11 +03:00
John Preston
a821c3c31d Support thumb_document_id in emoji sets. 2022-07-26 20:12:10 +03:00
John Preston
64f25a6dae Fix sticker sets icons scrollMax. 2022-07-26 20:12:10 +03:00
John Preston
f1144965c0 Scroll expanded emoji category icons by wheel. 2022-07-26 20:12:10 +03:00
John Preston
007cb9d156 Allow dragging the expanded emoji categories. 2022-07-26 20:12:10 +03:00
John Preston
57d5ec4513 Handle clicks on expandable emoji category icons. 2022-07-26 20:12:10 +03:00
John Preston
38a69242ca Update API scheme on layer 144. 2022-07-26 20:12:10 +03:00
John Preston
3dfe48a407 Display selected emoji set in footer by background. 2022-07-26 20:12:10 +03:00
John Preston
0bd9d5f7ae Expand emoji categories in the footer. 2022-07-26 20:12:10 +03:00
John Preston
d3f62d971d Use unified StickersListFooter for emoji / stickers. 2022-07-26 20:12:10 +03:00
John Preston
25f4646cd8 Adapt emoji pack preview box. 2022-07-26 20:12:10 +03:00
John Preston
54d683171d Allow to open / remove sets from emoji panel. 2022-07-26 20:12:10 +03:00
John Preston
a7e295ae64 Fix build with Xcode. 2022-07-26 20:12:10 +03:00
John Preston
ddd5021966 Minimal emoji sets support. 2022-07-26 20:12:10 +03:00
John Preston
afc7b1da62 Update API scheme on layer 144. 2022-07-26 20:12:10 +03:00
John Preston
6e25a2fc12 Provide single-data generic TL accessor. 2022-07-26 20:12:10 +03:00
John Preston
9eaac98070 Fix build for Windows. 2022-07-26 20:12:10 +03:00
23rd
38322dc998 Fixed display of quiz solution in sections. 2022-07-26 20:12:10 +03:00
23rd
5fbbdd8a9e Added ability to choose to show recent group history for each new user.
Fixed #9864.
2022-07-26 20:12:10 +03:00
23rd
c14d9b18f7 Added ability to copy link from confirmation box on hidden url.
Fixed #17480.
2022-07-26 20:12:10 +03:00
23rd
df66743c61 Added right padding to text in top bar of sections. 2022-07-26 20:12:10 +03:00
23rd
1a6b6e6084 Fixed right padding of text in dialogs entries with unread reactions. 2022-07-26 20:12:10 +03:00
23rd
9f11c783eb Fixed scheduling of recorded voice messages. 2022-07-26 20:12:10 +03:00
23rd
bcdcd7ee70 Disabled animation for first showing of right button in pinned bar. 2022-07-26 20:12:10 +03:00
23rd
6cc0d4f7d5 Removed uppercase from admin log section. 2022-07-26 20:12:09 +03:00
23rd
6450c213e6 Fixed some global shortcuts with non-primary windows. 2022-07-26 20:12:09 +03:00
23rd
032372f150 Added stars animation to box for premium gifts. 2022-07-26 20:12:09 +03:00
23rd
c7c8ebed13 Added initial box for premium gifts. 2022-07-26 20:12:09 +03:00
23rd
2a3d72ad2e Added ability to provide custom text to subscribe button. 2022-07-26 20:12:09 +03:00
23rd
afb336ed41 Added list for options of premium gifts. 2022-07-26 20:12:09 +03:00
23rd
009ef829a0 Moved computing of premium gradient parts to separated class. 2022-07-26 20:12:09 +03:00
23rd
99676c4cf8 Moved some premium styles to separate file. 2022-07-26 20:12:09 +03:00
John Preston
0ed434cfaf Show all stickers as emoji after default categories. 2022-07-26 20:12:09 +03:00
John Preston
248e0d502c Revert "For testing insert stickers as custom emoji."
This reverts commit 17095983c546326223cd8eb69453f7f4c7dd8e78.
2022-07-26 20:12:09 +03:00
John Preston
4127b68675 Fix non-square video-emoji. 2022-07-26 20:12:09 +03:00
John Preston
11fbc8112f Fix monospace text color in chats list. 2022-07-26 20:12:09 +03:00
John Preston
c1e7e63677 Support custom popups in attach bots. 2022-07-26 20:12:09 +03:00
John Preston
e954871cb9 Make custom emoji size 12% larger. 2022-07-26 20:12:09 +03:00
John Preston
c1cdca36d2 Fix custom emoji before a newline. 2022-07-26 20:12:09 +03:00
John Preston
754371a295 Optimize custom emoji repaints in pinned bar / reply info. 2022-07-26 20:12:09 +03:00
John Preston
68ee753fc7 Fix sender name / media color in chats list previews. 2022-07-26 20:12:09 +03:00
John Preston
2a8e035f42 For testing insert stickers as custom emoji. 2022-07-26 20:12:09 +03:00
John Preston
b87fd601ab Update API scheme on layer 144. 2022-07-26 20:12:09 +03:00
John Preston
c01d9747e7 Fix inline via @bot click in additional windows
Fixes #24717.
2022-07-26 20:12:09 +03:00
John Preston
6d17226c7f Don't show bold markup in chats list previews. 2022-07-26 20:12:09 +03:00
John Preston
90cd4afb8c Remove empty icon space in Manage Group settings. 2022-07-26 20:12:09 +03:00
John Preston
15d6988511 Don't clear history stack on sendBotCommand. 2022-07-26 20:12:09 +03:00
John Preston
d00755100a Update API scheme on layer 144. 2022-07-26 20:12:09 +03:00
John Preston
3238cf2b4b Support custom emoji in reply / pinned / forward bars. 2022-07-26 20:12:08 +03:00
John Preston
2fc43a44a4 Don't paste custom emoji for non-premium users. 2022-07-26 20:12:08 +03:00
John Preston
b976aa0872 Support custom emoji in chats list entries. 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
8c8cbbbc83 Display custom emoji in custom notifications. 2022-07-26 20:12:08 +03:00
John Preston
be36f07168 Fix custom emoji in service messages. 2022-07-26 20:12:08 +03:00
John Preston
289602528c Fix custom emoji pausing in captions. 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
00d1828fbe Update API scheme on layer 144. 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
cb32c3957b Add LZ4 caching for animated emoji. 2022-07-26 20:12:08 +03:00
John Preston
c4dd45689d Use src/dst prefixes instead of from/to. 2022-07-26 20:12:08 +03:00
John Preston
3c01bb5a4a Add support for static and webm custom emoji. 2022-07-26 20:12:08 +03:00
John Preston
8ed101cbbf Insert recent stickers as emoji for testing. 2022-07-26 20:12:08 +03:00
John Preston
c796dd142b Optimize many animated emoji repaint requests. 2022-07-26 20:12:08 +03:00
John Preston
6db3a0ec98 Support optimized lottie emoji. 2022-07-26 20:12:08 +03:00
John Preston
9d280da80b Start optimized custom emoji, show path thumbnail. 2022-07-26 20:12:08 +03:00
John Preston
2e6733e433 Proof-of-concept animated custom emoji. 2022-07-26 20:12:08 +03:00
John Preston
21aa1323ec Provide custom emoji factory through MarkedTextContext. 2022-07-26 20:12:08 +03:00
John Preston
bbfcac26c9 Update UiIntegration for custom emoji. 2022-07-26 20:12:08 +03:00
John Preston
368bc283a1 Don't use Ui::Text::String copy construct/assign. 2022-07-26 20:12:07 +03:00
Vedant
182c07db7f WinGet: Publish beta releases also 2022-07-26 21:11:45 +04:00
Ilya Fedin
9b8dcec26e Ensure notification manager is not null before first call to setManager in cross-platform code 2022-07-26 21:11:17 +04:00
Ilya Fedin
6718d238af Switch to the dummy notification manager when notification daemon is not running on Linux 2022-07-26 21:11:17 +04:00
Ilya Fedin
dd70a6f659 IsQualifiedDaemon -> ByDefault 2022-07-26 21:11:17 +04:00
Ilya Fedin
ff2bd86744 Have a central place for catch-based logging of linux native notifications 2022-07-26 21:11:17 +04:00
Ilya Fedin
d2e3c01c11 Get linux notification inhibition state asynchronously
This is the last sync request in the D-Bus notifications
2022-07-26 21:11:17 +04:00
Ilya Fedin
e9e5dedeed Update Hunspell to get rid of 'error: cannot open' 2022-07-26 21:09:46 +04:00
Ilya Fedin
e8477e5911 Get rid of 'paramtersCopy' in dbus code 2022-07-26 21:09:30 +04:00
GitHub Action
238a2f4477 Update User-Agent for DNS to Chrome 103.0.5060.53. 2022-07-19 19:35:36 +04:00
Ilya Fedin
9502ce8b32 Use templating with Dockerfile in order to have less rebuilds 2022-07-19 19:34:44 +04:00
nintendoit
653f17915e money-purchasing and money-advertising updated
Changed money-purchasing from 'none' to 'intense' as the in-app purchase of telegram premium is available.
Added money-advertising and set it to 'moderate' as telegram ads has been introduced.
2022-07-19 19:33:16 +04:00
Niklas Haas
6096116526 Use quasi-logarithmic volume controls
This commit significantly improves the usability of the volume controls
for controlling volume in a way that matches intuitively onto human
needs and loudness perception.

Using the third power of the volume is a good approximation of the
quasi-logarithmic psychoacoustic system, while being defined everywhere
and preserving the useful quality of 0% volume mapping onto gain 0.0.
The use of this exact mapping function is a prior art established by
e.g. PulseAudio, among many other programs.

Fixes #24488
2022-07-19 19:32:46 +04:00
Vedant
5c3f15af41 Update winget.yml 2022-07-01 19:15:41 +04:00
Vedant
ca37a727fc Update winget.yml 2022-07-01 19:15:41 +04:00
Begula
598a4b3922 Create winget.yml 2022-07-01 19:15:41 +04:00
Ilya Fedin
060cd0aab9 Don't trigger actions on build documentation change
Documentation is not sourced in actions since prepare.py invention
2022-06-29 08:21:16 +04:00
Ilya Fedin
463f437486 Update lib_ui 2022-06-28 09:49:45 +04:00
Ilya Fedin
0e97ef992e Build OpenSSL 1.1.1 in snap 2022-06-28 09:49:45 +04:00
Ilya Fedin
d09a591d1b Use *.so everywhere to exclude devlopment symlinks in snap 2022-06-28 09:49:45 +04:00
Ilya Fedin
aeddaf3dbd Update openal to 1.22.2 2022-06-28 09:49:45 +04:00
Sprite
bf0ad9e7ca Explicitly specify signed modifier for char type 2022-06-25 07:13:57 +04:00
John Preston
fc7dcd0360 Version 4.0.2: Remove Saved Messages premium badge. 2022-06-25 00:06:13 +04:00
Ilya Fedin
14416a68db Fix openal pipewire version check in snap 2022-06-24 21:11:12 +04:00
John Preston
ee1a80abd7 Version 4.0.2.
- Fix window title on Windows 7. (again)
- Fix file chooser and global menu on macOS.
- Crash fix and OpenAL check for PipeWire fix on Linux.
2022-06-24 21:00:52 +04:00
John Preston
d392d9cb1f Fix a crash in window handling on Linux. 2022-06-24 20:59:55 +04:00
John Preston
65c7a9a554 Fix title on Win7 and macOS file chooser. 2022-06-24 20:45:14 +04:00
Ilya Fedin
1c98399c6f Fix pipewire version check in openal 2022-06-24 19:52:55 +04:00
John Preston
263ac2eb71 Version 4.0.1.
- Fix window title on Windows 7.
- Bug fixes and other minor improvements.
2022-06-24 13:07:47 +04:00
23rd
75d8e8ba7d Fixed opening of non-primary windows while recording voice message. 2022-06-24 04:07:16 +03:00
23rd
0fbd7d1a3b Fixed playback of recorded but not sent voice messages. 2022-06-24 04:07:16 +03:00
John Preston
8f0ba749d1 Fix history visibility edit button.
Regression was introduced in c3386fba52.

Fixes #24691.
2022-06-24 00:25:23 +04:00
John Preston
fc8ea688a3 Update profile badges order. 2022-06-23 17:53:36 +04:00
John Preston
2d651050ad Show premium badge in peer lists.
Fixes #24687.
2022-06-23 14:00:59 +04:00
John Preston
a94c42411b Show verified badge in chat top bar. 2022-06-23 11:35:44 +04:00
23rd
57f769f358 Returned lost method that checks tray existence. 2022-06-23 09:38:21 +03:00
John Preston
ce39eb2da9 Don't watch theme file while using theme editor. 2022-06-23 10:35:52 +04:00
Ilya Fedin
f7bc84fdd6 Automatically reload theme on file change 2022-06-23 10:09:59 +04:00
Ilya Fedin
28f75525b2 Update openal to 1.22.1
Downgrade pipewire headers as openal won't work with pipewire version less than headers it builds with now
2022-06-23 09:48:27 +04:00
John Preston
03c1f15961 Fix MentionClickHandler in non-context handler activations. 2022-06-23 09:47:54 +04:00
John Preston
2f92830f6a Use correct title in premium sticker toast. 2022-06-23 09:31:32 +04:00
John Preston
73af96e9c3 Hide reply keyboard if started typing. 2022-06-22 20:15:50 +04:00
John Preston
1e63a6a1a7 Fix possible crash in Windows Toast Notifications. 2022-06-22 20:07:17 +04:00
John Preston
0df699a054 Allow drag-n-drop-ing files up to 4 GB.
Fixes #24657.
2022-06-22 18:56:01 +04:00
John Preston
0e771312f4 Edit Chat Theme / Auto Delete on service message click. 2022-06-22 18:48:57 +04:00
John Preston
db15a58dde Fix separate windows with audio player.
Fixes https://bugs.telegram.org/c/18154
2022-06-22 16:42:46 +04:00
John Preston
d81c40f4c8 Fix new window crash for unavailable channels. 2022-06-22 15:30:56 +04:00
John Preston
e2624416af Allow base::WinRT::TryCreateInstance on Win7.
Fixes #24666.
2022-06-22 12:38:32 +04:00
John Preston
e72b4c6192 Allow complex forwarding from Saved to Saved. 2022-06-22 12:21:44 +04:00
John Preston
654fefaa72 Fix custom rank display in profile members dropdown. 2022-06-22 12:07:39 +04:00
John Preston
7f6c163449 Fix crash in video userpics.
Fixes #24665.
2022-06-22 12:03:47 +04:00
John Preston
5738998310 Fix window frame. 2022-06-22 12:03:37 +04:00
Ilya Fedin
45d2baa2c4 Restore missed QWindow::setScreen 2022-06-21 22:19:32 +04:00
John Preston
9033d49d76 Version 4.0.
- Premium: Send media and files each up to 4 GB in size.
- Premium: Download media and files at the fastest possible speed,
with no limits.
- Premium: Double most of the limits in the app.
- Premium: Get a new button next to any voice message
to generate a transcript of its audio.
- Premium: React with even more emoji,
including :clown: and 😍.
- Premium: Send unique stickers with additional effects,
updated monthly.
- Premium: Set a default chat folder
or enable tools to auto-archive and hide new chats.
- Premium: Subscribers have a badge next to their name,
showing they help support Telegram.
- Premium: Show off your profile video
that will be animated for everyone in chats and the chat list.
- Premium: Sponsored Messages that are sometimes shown
in public channels will no longer appear.
- Enable join requests for your public groups,
no invite links required.
- Users who open the group will see an Apply to Join Group button.
- Once approved by an admin,
users will be able to participate in the chat.
- Bots that are integrated into the attachment menu
can be programmed to work in groups and channels.
2022-06-21 02:04:35 +04:00
23rd
1b754d14ae Improved display some api errors in non-primary windows. 2022-06-20 23:08:37 +03:00
John Preston
d1c1b687c7 Update lib_ui submodule. 2022-06-21 00:05:45 +04:00
John Preston
8b44dcf8d0 Update cmake_helpers submodule. 2022-06-21 00:03:58 +04:00
Ilya Fedin
984094a7ff Partially revert "Use QWidget::screen/QWidget::mask instead of QWindow ones"
This partially reverts commit e5d8a1aa3c to use QWindow::setScreen.
2022-06-21 00:03:21 +04:00
John Preston
55285f327a Fix possible stack overflow crash. 2022-06-20 23:44:52 +04:00
John Preston
b85ad05f8a Fix possible crash in cached stickers playback. 2022-06-20 21:28:11 +04:00
John Preston
3c1663adeb Fix couple of possible crashes.
Fixes #24613.
2022-06-20 20:31:54 +04:00
John Preston
66e9c5ef16 Allow HiddenUrlClickHandler to work in a payment form. 2022-06-20 17:14:14 +04:00
John Preston
7027c0db0b Fix build with Qt >= 6.0 < 6.2 2022-06-20 15:09:51 +04:00
John Preston
6812f1e5ec Fix build with DESKTOP_APP_DISABLE_WAYLAND_INTEGRATION. 2022-06-20 13:00:05 +04:00
John Preston
b963a68dd6 Fix windows taskbar notifications counter with multi-windows. 2022-06-20 12:56:50 +04:00
John Preston
1c720af9bc Clear history allowed when delete channel allowed. 2022-06-20 12:04:56 +04:00
John Preston
69f469a0f9 Fix bio limits in premium info page. 2022-06-20 11:57:31 +04:00
John Preston
fbc284af49 Fix auto-download limit.
Fixes #24642.
2022-06-20 11:48:19 +04:00
John Preston
ff51bf81f3 Allow clearing history in megagroups. 2022-06-20 11:30:43 +04:00
John Preston
29c61635de Revert some window title improvements.
Fixes #24617.
2022-06-20 11:13:49 +04:00
John Preston
1b9232e28d Always show premium badge in support mode. 2022-06-20 11:13:39 +04:00
John Preston
b84c876ba2 Fix opening links from bot inline reply markup. 2022-06-18 00:02:27 +04:00
John Preston
5fe1988d0a Suggest bot commands only in the start of the field. 2022-06-18 00:01:47 +04:00
John Preston
77330aa6a7 Fix a crash in adding a contact. 2022-06-18 00:01:30 +04:00
John Preston
03e60ed329 Fix uploading files > 500 Mb. 2022-06-18 00:00:56 +04:00
John Preston
45caa25e55 Beta version 3.7.6: Backport a Qt 5.15.4 crashfix. 2022-06-16 19:12:33 +04:00
John Preston
7a9273eca9 Fix setup.dmg prepare on M1 Mac. 2022-06-16 19:11:41 +04:00
John Preston
35142476b2 Beta version 3.7.6: Fix card expire date validation. 2022-06-16 18:30:12 +04:00
John Preston
7db2256f63 Beta version 3.7.6: Fix Document::fullSelectionLength. 2022-06-16 16:09:52 +04:00
John Preston
fa01a9df69 Beta version 3.7.6.
- Settings > Advanced > Experimental adds an option
to open chats in separate windows.
- Fix possible crash in video chat reconnection.
- Fix possible crash after account switch.
2022-06-16 15:19:31 +04:00
23rd
2f1286a05e Fixed display of max accounts in box for premium doubled limits. 2022-06-16 13:29:38 +03:00
23rd
7b00671ccf Moved out all values of premium limits to single place. 2022-06-16 13:29:37 +03:00
John Preston
08ebff4e5d Preload premium previews even with Close button. 2022-06-16 14:07:54 +04:00
John Preston
0a81246502 Show correct error box when sending file > 4GB. 2022-06-16 13:48:11 +04:00
John Preston
91b7fe5650 Mark premium impossible in MacAppStore version. 2022-06-16 12:30:31 +04:00
John Preston
3df7c71813 Don't show connecting spinner in secondary windows. 2022-06-16 12:25:50 +04:00
Ilya Fedin
d353e11077 Ensure reActivateWindow is used only on X11 2022-06-16 12:11:21 +04:00
John Preston
0fc687953f Allow selecting / copying voice transcribe text. 2022-06-16 12:05:24 +04:00
Ilya Fedin
1467b1c720 Fix webkit2gtk directory mapping in snap 2022-06-16 09:02:52 +04:00
Ilya Fedin
d2faacb0fb Update snap to core22 2022-06-16 08:39:29 +04:00
John Preston
145d112982 Fix build with GCC. 2022-06-15 23:25:51 +04:00
John Preston
0434e520fd Don't quit on secondary window destroy by the system. 2022-06-15 19:59:16 +04:00
John Preston
06e2724731 Fix login Qr-code when main DC is switched. 2022-06-15 19:48:55 +04:00
John Preston
01bcdf10ee Add arrows to move in premium previews box. 2022-06-15 19:31:13 +04:00
John Preston
2583ddea2e Switch premium previews by keyboard. 2022-06-15 17:23:01 +04:00
John Preston
855d4692fe Fallback to large profile video in chat / chats list. 2022-06-15 16:50:59 +04:00
John Preston
a8ffb21bfa Fix premium sticker preview switching. 2022-06-15 16:50:59 +04:00
Ilya Fedin
226154baa5 Fix macOS action 2022-06-15 16:09:42 +04:00
John Preston
a480fc9d7c Put "View" in the middle of the toast. 2022-06-15 15:21:46 +04:00
John Preston
1d64a03804 Fix transcribe animation glitch in message view refresh. 2022-06-15 15:09:08 +04:00
23rd
6553e4492c Fixed phrase for placeholder in field of local passcode check. 2022-06-15 14:06:32 +03:00
23rd
6d4506f8aa Fixed display of most of multiline toasts in corresponding window. 2022-06-15 14:06:32 +03:00
John Preston
eba606e85e Fix video message forward reply info paint. 2022-06-15 15:03:08 +04:00
John Preston
1c6fac337e Fix global menu and file chooser on macOS. 2022-06-15 14:49:53 +04:00
John Preston
aa484ac015 Fix crash on launch with passcode. 2022-06-15 14:49:06 +04:00
John Preston
014cd19e93 Restrict CMake to 3.23+ on macOS. 2022-06-15 13:02:15 +04:00
John Preston
0f5d71434f Update Qt to 6.3.1 in prepare script. 2022-06-15 12:57:59 +04:00
Ilya Fedin
798998203a Get XDG activation token from native notification on Linux 2022-06-15 12:55:59 +04:00
Ilya Fedin
fc98f9c0c5 Update cmake_helpers 2022-06-15 10:47:34 +04:00
Ilya Fedin
64a5e03321 Synchronize new Qt build argument between Dockerfile & snapcraft.yml 2022-06-15 10:47:34 +04:00
John Preston
7b4c0740d0 Closed alpha version 3.7.5.1. 2022-06-14 21:27:50 +04:00
John Preston
60d998bf36 Fix build on Linux. 2022-06-14 21:27:50 +04:00
John Preston
9b7e19e9c5 Remove debug code path (always error display). 2022-06-14 19:52:09 +04:00
John Preston
c37012efec Fix docker build with Qt 6.3.1. 2022-06-14 19:26:09 +04:00
John Preston
d03bc02948 Refresh appConfig after successfull authorization. 2022-06-14 19:21:26 +04:00
John Preston
7c2223e540 Write serialized peer has_video correctly, versioned. 2022-06-14 19:20:02 +04:00
John Preston
ce7b6fe17a Fix build with the new scheme. 2022-06-14 19:16:18 +04:00
23rd
c9bd0ab725 Replaced MTP types with type aliases for shared media api. 2022-06-14 18:51:53 +04:00
23rd
7727cd734e Slightly simplified processing of received full peer info. 2022-06-14 18:51:45 +04:00
23rd
243b16398b Moved out api for user photos to related separated module. 2022-06-14 18:51:38 +04:00
23rd
13146e9c06 Replaced use of raw MTP* bot commands with new transitional classes. 2022-06-14 18:51:18 +04:00
23rd
5f8608ed90 Moved out BotCommand struct to separated file. 2022-06-14 18:45:12 +04:00
23rd
8347318c90 Removed some methods with MTP signature from history widget. 2022-06-14 18:38:25 +04:00
23rd
3403b3c471 Removed methods with MTP signature from compose controls. 2022-06-14 18:38:14 +04:00
John Preston
326304ca48 Update Qt to 5.15.4 and 6.3.1. 2022-06-14 18:34:09 +04:00
John Preston
707359e371 Close double limits preview box on premium change. 2022-06-14 16:40:50 +04:00
Ilya Fedin
61bad55dbc Update submodules & Docker patches 2022-06-14 16:36:44 +04:00
Ilya Fedin
08b99134fa Use brackets include for third-party libraries 2022-06-14 16:36:44 +04:00
Ilya Fedin
6ee08faa24 Migrate from kwayland to QtWaylandScanner 2022-06-14 16:36:44 +04:00
Ilya Fedin
0a876226fe Move QT_FONT_DPI workaround to Qt patches 2022-06-14 16:36:44 +04:00
Ilya Fedin
391a3a77f6 Use Qt's xdg-desktop-portal file dialog implementation 2022-06-14 16:36:44 +04:00
Ilya Fedin
762f561c60 Add architecture to Windows action artifact name 2022-06-14 16:36:44 +04:00
Ilya Fedin
2477b35b42 Move tray availability logging to the appropriate class 2022-06-14 16:36:44 +04:00
Ilya Fedin
4d997a26b0 Don't update global menu on Linux without focus widget
The window loses focus when menu is open and edit options are deactivated
2022-06-14 16:36:44 +04:00
Ilya Fedin
4410aeb3eb Make QMenuBar on Linux work without private API 2022-06-14 16:36:44 +04:00
Ilya Fedin
088cca7452 Adapt for XCB::IsSupportedByWM changes 2022-06-14 16:36:44 +04:00
GitHub Action
66b9d70993 Update User-Agent for DNS to Chrome 101.0.4951.64. 2022-06-14 16:32:26 +04:00
John Preston
3e5b52bc2e Fix premium settings cover. 2022-06-14 16:23:09 +04:00
John Preston
7b4fca57ae Fix subscription from preview box. 2022-06-14 16:16:40 +04:00
John Preston
6260f258bb Improve premium preview boxes close buttons. 2022-06-14 16:03:44 +04:00
23rd
629574685e Fixed display of most of simple toasts in corresponding window. 2022-06-14 14:24:21 +03:00
23rd
29910cd1f7 Provided Ui::Show to Calls::TopBar. 2022-06-14 14:24:21 +03:00
23rd
236b7bbf28 Fixed display of toast about copying post link in corresponding window. 2022-06-14 14:24:21 +03:00
John Preston
4de71408a2 Improve accounts limit box. 2022-06-14 14:54:30 +04:00
John Preston
6d8012f13a Pause premium settings animations. 2022-06-14 13:43:07 +04:00
John Preston
a34e6ca7db Take premiumPossible in the accounts limit box correctly. 2022-06-14 13:43:07 +04:00
23rd
691a434ba9 Added premium badge to main settings. 2022-06-14 08:52:45 +03:00
23rd
8b4405b71a Added premium badge to list of accounts. 2022-06-14 08:52:45 +03:00
23rd
7a821ca0f4 Decomposed creating of unread badge in list of accounts. 2022-06-14 08:52:45 +03:00
John Preston
c9292512c0 Show premium previews from the settings. 2022-06-14 07:11:35 +04:00
John Preston
5f9eeb7cbe Show premium star while preview video loads. 2022-06-13 23:10:32 +04:00
John Preston
221bc5ef59 Preload premium stickers / reactions previews. 2022-06-13 23:10:32 +04:00
John Preston
50926acab9 Toggle premium stickers previews. 2022-06-13 23:10:32 +04:00
John Preston
afb7f2e9a6 Update lib_ui with new Windows custom title bar. 2022-06-13 23:10:32 +04:00
23rd
acf7a82507 Added preview box for premium doubled limits. 2022-06-13 14:27:26 +03:00
23rd
17274e17ed Changed behavior for premium features in settings to be clickable. 2022-06-13 14:27:26 +03:00
23rd
15cce4900c Fixed lock from voice recording bar with transparent foreground. 2022-06-13 14:27:26 +03:00
John Preston
fc07954276 Improve premium section bottom. 2022-06-13 13:49:45 +04:00
23rd
0bd65794d2 Added glare effect to gradient round button. 2022-06-12 16:07:41 +03:00
23rd
fe7cffc509 Improved management of online status from non-primary windows.
– The online status of the user should be checked and updated only
when the previous active window and the current active window both have
different sessions.
– Removed MainWindow::activeChangedHook since windows should not
change online status on their own on activating.
– Renamed Application::maybeActiveSession
to Application::maybePrimarySession.
– Added updating of online status on changing of the current account
since this seems to have been missed.
2022-06-12 16:07:41 +03:00
23rd
1d475ee727 Slightly optimized includes in application.h. 2022-06-12 16:07:41 +03:00
John Preston
333b986098 Remove ToS and Privacy Policy footer. 2022-06-12 16:51:55 +04:00
John Preston
ff3bfd3fba Make links in the invoice description clickable. 2022-06-12 16:51:37 +04:00
John Preston
bcfbdcd6ed Fix build on macOS. 2022-06-10 17:38:52 +04:00
John Preston
0e90092d59 Paint phone frame + animate preview transitions. 2022-06-10 17:15:01 +04:00
John Preston
25bd97a12b Fix build with lib_ui updating. 2022-06-10 17:15:01 +04:00
23rd
6ca167679d Added ability to invoke callback for non-primary window controllers. 2022-06-10 14:57:44 +03:00
John Preston
f78b9324dc Show videos in premium preview boxes. 2022-06-10 12:05:16 +04:00
John Preston
1b604bed0b Fix bottom shadow in premium settings. 2022-06-10 12:05:16 +04:00
23rd
bfe873e91c Provided session controller to AddBotToGroupBoxController. 2022-06-09 08:19:11 +03:00
23rd
d034410a3f Fixed icon position of invite links in add members box. 2022-06-09 08:05:11 +03:00
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
23rd
1169c5e143 Removed facades from url click handler types. 2022-06-09 06:23:51 +03:00
23rd
e25b0e791d Provided window session controller to api functions for bots. 2022-06-09 06:23:51 +03:00
23rd
4add87e7a9 Removed Ui::show from CountryInput. 2022-06-09 06:23:51 +03:00
23rd
f0e1498a41 Fixed display of failed peer resolve in corresponding window. 2022-06-09 06:23:51 +03:00
23rd
948ce77a8f Improved deleting peer from non-primary windows. 2022-06-09 04:20:13 +03:00
23rd
cc7a4c2772 Removed Ui::showPeerProfile. 2022-06-09 00:45:04 +03:00
23rd
58163ea581 Provided session controller to Profile::GroupMembersWidget. 2022-06-09 00:45:04 +03:00
23rd
37f96534ec Fixed opening of shared media in corresponding window from media viewer. 2022-06-09 00:45:04 +03:00
23rd
fe2455dea6 Moved copy link of public user from context menu to button in profile. 2022-06-09 00:45:04 +03:00
John Preston
b750908dff Refresh stickers when premium becomes possible. 2022-06-08 19:29:16 +04:00
John Preston
e8933decb1 Show sticker / reaction preview over premium gradient. 2022-06-08 19:13:22 +04:00
John Preston
7ba997259c Use sizes like iOS for premium sticker effects. 2022-06-08 19:00:48 +04:00
John Preston
17b2d043cb Auto-submit bot start in subscription settings. 2022-06-08 17:23:24 +04:00
John Preston
916f86b401 Don't show premium star when premium unavailable. 2022-06-08 16:53:16 +04:00
John Preston
aaf1383304 Update API scheme on layer 143. 2022-06-08 16:51:31 +04:00
John Preston
2b21ec3299 Fix group call create box window. 2022-06-08 15:21:13 +04:00
John Preston
7828288660 Fix minimized start. 2022-06-08 14:34:46 +04:00
23rd
176f3ea15c Removed simultaneous voice recording. 2022-06-08 11:59:30 +03:00
23rd
7bf9db8644 Fixed logging out with opened non-primary windows. 2022-06-08 11:59:30 +03:00
23rd
873301e7df Fixed handling of requests to open media from non-primary windows. 2022-06-08 11:59:30 +03:00
23rd
16e61ae2b2 Fixed lock by local passcode for non-primary windows. 2022-06-08 11:59:30 +03:00
23rd
9861370b75 Added hotkeys to get next / previous item of search messages in dialogs. 2022-06-08 11:59:30 +03:00
23rd
86cc83b491 Added time zone info to date tooltips in export HTML. 2022-06-08 11:59:30 +03:00
23rd
96bd9ae81c Inserted additional unixtime format to each date field in export JSON. 2022-06-08 11:59:30 +03:00
John Preston
524771529a Don't shows premium section / preview if unavailable. 2022-06-08 11:26:53 +04:00
John Preston
86889cf1ef Don't show premium stickers if premium blocked. 2022-06-08 10:28:45 +04:00
John Preston
e925acc622 Don't show premium sticker tooltip if premium blocked. 2022-06-08 09:34:45 +04:00
John Preston
a780fbd09b Add "ctrl-click-chat-new-window" option. 2022-06-07 22:05:37 +04:00
John Preston
896d39bc6a Add ToS and Privacy Policy links to premium subscription. 2022-06-07 16:58:14 +04:00
John Preston
654eaa27fd Make premium_purchase_blocked true by default. 2022-06-07 15:53:19 +04:00
23rd
1c13f2587c Fixed display of bottom info in media with overridden edited date. 2022-06-07 13:49:37 +03:00
John Preston
a6bc6c877e Add subscribed-to-premium toast. 2022-06-07 12:41:10 +04:00
John Preston
00bea8d1ee Don't show subscribe button with blocked premium. 2022-06-07 11:49:24 +04:00
John Preston
4570da5767 Skip premium section in settings. 2022-06-07 11:27:06 +04:00
John Preston
368a1e4231 Support non-premium-supported limit boxes. 2022-06-07 10:30:59 +04:00
23rd
1572af3a71 Fixed limits in bubble to show more relevant value in server-side boxes. 2022-06-07 08:16:39 +03:00
23rd
9e9a269439 Provided count of dialogs in filter to premium limit boxes. 2022-06-07 08:16:39 +03:00
23rd
9b6b5968e2 Provided count of pinned dialogs to premium limit boxes for pins. 2022-06-07 08:16:39 +03:00
23rd
95cc27b145 Provided character count of large file caption to premium limit box. 2022-06-07 08:16:39 +03:00
23rd
3959918fc5 Provided size of big file to premium limit box. 2022-06-07 08:16:39 +03:00
John Preston
f586ea3a75 Handle MSG_VOICE_TOO_LONG for voice messages. 2022-06-06 18:04:27 +04:00
John Preston
719190d570 Improve locked premium stickers design. 2022-06-06 16:08:11 +04:00
John Preston
0bf58936e3 Update API scheme on layer 143. 2022-06-06 09:44:49 +04:00
23rd
99059ab95a Respected setting of disabled animation in save toast from media viewer. 2022-06-06 02:26:52 +03:00
23rd
f9dd8c182f Added ability to copy link of public user. 2022-06-05 14:56:12 +03:00
23rd
7dac57cc0e Slightly improved includes in HistoryWidget. 2022-06-05 09:11:10 +03:00
23rd
ea955a2c66 Respected setting of disabled animation in item highlighter. 2022-06-05 09:11:10 +03:00
23rd
c9ef5e47fe Migrated from frequency timer to simple animation for item highlighting. 2022-06-05 09:11:10 +03:00
23rd
ba7422805b Moved items highlighting to separate management module. 2022-06-05 09:11:10 +03:00
23rd
924780d8d8 Fixed replying of local messages with shortcuts in sections. 2022-06-05 09:11:09 +03:00
23rd
8f076b0c9e Added auto-scroll-inactive-chat option. 2022-06-05 09:11:09 +03:00
John Preston
df17f20a47 Support attach bot menu / reload / settings. 2022-06-03 20:07:33 +04:00
John Preston
b023044cc8 Handle click on premium star in profile. 2022-06-03 16:11:44 +04:00
John Preston
705753efb2 Use small userpic video in dialogs list / chat history. 2022-06-03 15:58:02 +04:00
John Preston
499923b6d3 Show real subscription price from the API. 2022-06-03 15:57:06 +04:00
John Preston
6454f67e74 Support new attach bot deeplinks. 2022-06-03 00:38:04 +04:00
John Preston
092474fdb9 Support recurring payment phrases. 2022-06-02 21:10:43 +04:00
John Preston
1ba2bdab21 Use python3 in macOS configure script. 2022-06-02 20:21:07 +04:00
John Preston
46f9bdd701 Skip premium effect for nopremium stickers. 2022-06-02 18:23:33 +04:00
John Preston
de31c1cf0c Subscription status display. 2022-06-02 17:30:01 +04:00
23rd
1d7e901b7a Improved processing of premium accounts limits. 2022-06-02 13:56:01 +03:00
23rd
6c48abb562 Added support of premium accounts limits to list of accounts. 2022-06-02 13:54:41 +03:00
23rd
44f0f81d5d Fixed QPainter warnings in line from premium limits boxes. 2022-06-02 13:50:58 +03:00
23rd
287fae858e Moved Settings::OrderedAccounts() to Main::Domain::orderedAccounts(). 2022-06-02 13:48:42 +03:00
23rd
a1736de977 Fixed processing of premium limits for filters. 2022-06-02 12:15:59 +03:00
23rd
9e4d47dcc0 Slightly improved style of box for premium accounts limits.
Added an icon for the info bubble.
Added a gradient color to selected account.
Respected an order of accounts from settings.
2022-06-02 02:16:01 +03:00
23rd
c138c74ab3 Moved out some ui effects to td_ui. 2022-06-02 01:22:16 +03:00
John Preston
74463eb1a8 Fix premium section with a box over it. 2022-06-01 11:59:14 +04:00
John Preston
568640f830 Hide subscribe button if premium. 2022-06-01 11:59:14 +04:00
23rd
35e4dd5968 Added initial support for increased premium count of accounts. 2022-06-01 11:59:14 +04:00
23rd
78246aada7 Added box for premium accounts limits. 2022-06-01 11:59:14 +04:00
23rd
e09b624b84 Added gradient color to icon of premium settings. 2022-06-01 11:59:14 +04:00
23rd
735f1d5b03 Added phrases for subscribed users to premium settings. 2022-06-01 11:59:14 +04:00
John Preston
569cea98b4 Redesign premium reactions preview box. 2022-06-01 11:59:14 +04:00
John Preston
5bc072de07 Support premium bio (with links and x2 length). 2022-06-01 11:59:14 +04:00
John Preston
8ca2f6a444 Simplify Info::Profile::Cover code, remove toggling. 2022-06-01 11:59:14 +04:00
John Preston
b7259615a7 Request terms acceptance for recurring payments. 2022-06-01 11:59:14 +04:00
23rd
8e6825771e Added support of filters limit to side bar. 2022-05-30 14:57:49 +03:00
23rd
b45f97d384 Removed description text from premium settings. 2022-05-30 07:58:04 +03:00
23rd
f1ebf3d9f6 Optimized drawing of ministars in premium settings. 2022-05-30 07:58:04 +03:00
23rd
ea0466aaa3 Added deformation effect to ministars in premium settings. 2022-05-30 07:58:04 +03:00
23rd
443d40906d Added fade effect to ministars from custom top bar in premium settings. 2022-05-30 07:58:04 +03:00
23rd
7749fadf11 Added support of disabled animation in premium settings. 2022-05-30 07:58:04 +03:00
23rd
de08e1d9a9 Added corner tail when bubble in premium box is at edge. 2022-05-30 07:58:04 +03:00
23rd
8fbdd36ca0 Improved style of text from custom top bar in premium settings. 2022-05-30 07:58:04 +03:00
John Preston
d2abcdacee Show information about disabled reactions. 2022-05-27 23:57:40 +04:00
John Preston
2362d6c6fb Introduce premium reactions preview box. 2022-05-27 19:42:05 +04:00
John Preston
1a2a65ff19 Scale premium reaction lock. 2022-05-26 17:14:40 +04:00
John Preston
1745ccf0bf Fix sticker preview background. 2022-05-26 16:51:18 +04:00
John Preston
d1cb558b43 Show path gradient while loading sticker preview. 2022-05-26 15:53:26 +04:00
John Preston
b1dd3b2a19 Better support for web_app_open_link. 2022-05-26 13:08:11 +04:00
John Preston
be16a7725c Show premium stickers toast on double click. 2022-05-26 12:30:50 +04:00
John Preston
e5d95c0ab0 Improve voice transcribe design. 2022-05-25 16:18:49 +04:00
John Preston
28733fadcd Update icon of closed premium reactions. 2022-05-24 23:40:37 +04:00
John Preston
0b2a5a22ba Update API scheme on layer 143 + transcribe. 2022-05-24 23:38:40 +04:00
John Preston
3fac522bbc Update premium chat list icons. 2022-05-24 19:38:05 +04:00
23rd
5916bd3e0d Added initial implementation of star animation in premium settings. 2022-05-24 14:37:05 +03:00
23rd
7037268a36 Slightly improved margins in premium settings. 2022-05-24 12:24:39 +03:00
John Preston
c0664d2d81 Prevent activating chats search when in Settings. 2022-05-24 11:25:49 +04:00
John Preston
59be3d746c Show "Auto mute and archive new" for premium users. 2022-05-24 11:25:49 +04:00
John Preston
490f6f7e50 Display premium / fake / scam badge in group members. 2022-05-24 11:25:49 +04:00
23rd
3b379c67ac Slightly improved style of some boxes for premium limits. 2022-05-24 10:00:23 +03:00
23rd
a73676b3ba Slightly improved animation of top bar in premium settings. 2022-05-24 08:01:27 +03:00
23rd
ee9a04393e Slightly improved style of premium settings. 2022-05-24 08:01:27 +03:00
23rd
c123f9e119 Redirected wheel events from custom top bar to section content. 2022-05-24 08:01:27 +03:00
23rd
141f96590b Fixed focus in some new settings sections. 2022-05-24 01:41:23 +03:00
John Preston
d1907083ed Add FileSizeLimitBox and pass "ref" to premium payment. 2022-05-23 18:46:15 +04:00
John Preston
62f42eabb0 Allow layers with fixed-bottom to stick-to-bottom. 2022-05-23 15:45:43 +04:00
John Preston
ff030d0252 Auto-submit /start when paying for premium. 2022-05-23 15:45:22 +04:00
23rd
1eccb34f86 Added support for MTP order of entries in premium settings. 2022-05-23 13:37:02 +03:00
23rd
2a4faf22f6 Added initial animation to custom top bar in premium settings. 2022-05-23 13:37:02 +03:00
23rd
a284fa3273 Added close button to custom top bar in premium settings. 2022-05-23 13:37:02 +03:00
23rd
4e173c8e61 Provided Info::Wrap info to premium settings. 2022-05-23 13:37:02 +03:00
23rd
c310b263a6 Added ability to provide back button to pinned to top content. 2022-05-23 13:37:02 +03:00
23rd
00632dff46 Added initial support of custom top bar for premium settings. 2022-05-23 13:37:02 +03:00
23rd
6a8ccde527 Added ability to set padding for background in Info::ContentWidget. 2022-05-23 13:37:02 +03:00
23rd
9236dd3acb Added support of flexible scrollbar to Info::ContentWidget. 2022-05-23 13:37:02 +03:00
23rd
001aba4791 Added support of empty top bar to Info::WrapWidget. 2022-05-23 13:37:02 +03:00
23rd
3fde5b56a1 Added ability to provide custom top bar mask to Window::SlideAnimation. 2022-05-23 13:37:02 +03:00
23rd
ef3e139b85 Added padding to info layer sections with pinned to bottom content. 2022-05-23 13:37:02 +03:00
23rd
10ff236cd2 Slightly improved icon colors in premium settings. 2022-05-23 13:37:02 +03:00
John Preston
7fb99319bb Fix repeated subscriptions on layer wrapping type change. 2022-05-23 14:35:39 +04:00
John Preston
8035fe8771 Handle tg://premium_offer links. 2022-05-23 12:40:30 +04:00
John Preston
e37c157fff Remove Pre tag when removing Code tag. 2022-05-23 12:39:46 +04:00
John Preston
e72ca712ec Fix glitch in Settings > Premium layer scroll-to-bottom. 2022-05-23 12:04:31 +04:00
John Preston
3c5267f307 Fix invoice links slug reg-exp. 2022-05-21 15:59:14 +04:00
John Preston
bbaedc1952 Support attach bot native back button. 2022-05-20 20:04:05 +04:00
John Preston
d81bba155a Update some premium icons. 2022-05-20 19:28:50 +04:00
John Preston
9c9eae05a8 Update premium files icon in Settings. 2022-05-20 19:00:14 +04:00
John Preston
853cafe195 Show premium stickers lock icon. 2022-05-20 18:57:01 +04:00
John Preston
5cd065ef6b Show premium page on limit increase decision. 2022-05-20 17:12:56 +04:00
John Preston
dc444ec22b Update API scheme on layer 143. 2022-05-20 17:11:32 +04:00
23rd
e5ac8ccda3 Slightly improved code style of Window::SlideAnimation. 2022-05-20 13:18:22 +03:00
23rd
51ed3af14c Added new section for premium settings. 2022-05-20 13:18:22 +03:00
23rd
e7cc8ff44b Added ability to override brush for color icons in settings. 2022-05-20 13:18:22 +03:00
23rd
f3ca4f45ea Added bottom fade shadow to info sections with pinned bottom content. 2022-05-20 13:18:22 +03:00
23rd
62c759a0ff Improved style of premium limits boxes. 2022-05-20 13:18:22 +03:00
23rd
52904b6d58 Added line info about limits for premium boxes. 2022-05-20 13:18:22 +03:00
23rd
bc5c85655d Added animated bubble for premium boxes. 2022-05-20 13:18:22 +03:00
23rd
8e80b9cb06 Moved out gradient round button to td_ui. 2022-05-20 13:18:22 +03:00
John Preston
8a87f2996a Fix build with Xcode. 2022-05-19 19:11:45 +04:00
John Preston
ad3c6ebb1e Use / cache the same sticker / effect size in preview. 2022-05-19 19:05:07 +04:00
John Preston
693d886d81 Disable sync between sticker and effect. 2022-05-19 17:57:39 +04:00
John Preston
b02a965778 Add premium sticker packs icon. 2022-05-19 17:30:02 +04:00
John Preston
22613fc204 Show only one placeholder for premium reactions. 2022-05-19 17:27:04 +04:00
John Preston
26d7abe2c9 Fix crash in 2sv. 2022-05-19 17:27:04 +04:00
John Preston
0870a28443 Fix pinned chats in main list. 2022-05-19 17:27:04 +04:00
John Preston
ca731968ca Improve premium sticker sync / preview. 2022-05-19 17:27:03 +04:00
John Preston
3b5ec78f4f Show first (may be non-"All Chats") folder by default. 2022-05-19 17:27:03 +04:00
John Preston
fe91887ea2 Update API: support "All Chats" reordering. 2022-05-19 17:27:03 +04:00
John Preston
73bacfc650 Animate video userpics in chat history. 2022-05-19 17:27:03 +04:00
John Preston
201edb2e69 Play premium video avatars in chats list. 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
John Preston
45857fe208 Build FFmpeg with AC3 decoder. 2022-05-19 17:27:03 +04:00
John Preston
88393eb77b Fixed streaming for big files. 2022-05-19 17:27:03 +04:00
John Preston
308f106dc1 Support large files in Downloads. 2022-05-19 17:27:03 +04:00
John Preston
87662de2a6 Support web_app_open_tg_link / web_app_open_invoice. 2022-05-19 17:27:03 +04:00
John Preston
26c99cea7c Show all premium limits boxes. 2022-05-19 17:27:03 +04:00
John Preston
63940ea557 Support "recommended" sponsored messages. 2022-05-19 17:27:03 +04:00
John Preston
6dedf7c63e Update API scheme to layer 143. 2022-05-19 17:27:02 +04:00
John Preston
dd05fb4d14 Show limit toasts and boxes. 2022-05-19 17:27:02 +04:00
John Preston
d11f1c22be Fix folder chats limit checking. 2022-05-19 17:27:02 +04:00
John Preston
23caae689b Show new pins limit box. 2022-05-19 17:27:02 +04:00
John Preston
d15b299e32 Fill payment form information for invoice links. 2022-05-19 17:27:02 +04:00
John Preston
96f480ba41 Fix cancel payment form button style. 2022-05-19 17:27:02 +04:00
John Preston
090f83ae0d Smooth folder icon scale. 2022-05-19 17:27:02 +04:00
John Preston
739123dedc Implement simple premium limits boxes. 2022-05-19 17:27:02 +04:00
John Preston
ea3084aea5 Support t.me/$slug invoice links. 2022-05-19 17:27:02 +04:00
John Preston
8c5d919d23 Handle invoice t.me links. 2022-05-19 17:27:02 +04:00
John Preston
4665ea2854 Update API scheme on layer 142. 2022-05-19 17:27:02 +04:00
John Preston
5adf95fc28 Display premium stickers in comments/pinned/scheduled. 2022-05-19 17:27:02 +04:00
John Preston
8890f263af Update API scheme on layer 142. 2022-05-19 17:27:02 +04:00
John Preston
877be8e6cb Show premium effects in sticker preview. 2022-05-19 17:27:02 +04:00
John Preston
af9a252b64 Show premium stickers fake-set in the panel. 2022-05-19 17:27:02 +04:00
John Preston
a079139c3b Sync premium sticker effect with sticker frame index. 2022-05-19 17:27:01 +04:00
John Preston
323cb78f22 Paint effects in correct places. 2022-05-19 17:27:01 +04:00
John Preston
ee793a2c59 Paint last empty frame in sticker effects. 2022-05-19 17:27:01 +04:00
John Preston
6f285874f3 Fix build on macOS. 2022-05-19 17:27:01 +04:00
John Preston
2ece565aac Mirror premium sticker thumbnail / path. 2022-05-19 17:27:01 +04:00
John Preston
935fb79c52 Play premium sticker effects. 2022-05-19 17:27:01 +04:00
John Preston
d87c9c72fb Update API scheme on layer 142: Premium reactions. 2022-05-19 17:27:01 +04:00
John Preston
2f6f432583 Handle join-to-write / request-to-join in comments section. 2022-05-19 17:27:01 +04:00
John Preston
5874ae7c51 Update API scheme on layer 142: Premium stickers. 2022-05-19 17:27:01 +04:00
John Preston
c3386fba52 Edit join public group request requirement. 2022-05-19 17:27:01 +04:00
John Preston
a752c4d9f3 Update API scheme on layer 142. 2022-05-19 17:27:01 +04:00
Ilya Fedin
36b8d03b1d Update submodules 2022-05-19 17:23:47 +04:00
Ilya Fedin
a2a401c0b0 Use public Qt API for native dialogs modality 2022-05-19 17:23:47 +04:00
Ilya Fedin
acd18a57fb Get rid of the IBUS_USE_PORTAL workaround
It's been a while after the ibus breaking change, the new socket path should be in all major distros and this hack shouldn't be needed anymore.
2022-05-19 17:23:47 +04:00
Ilya Fedin
6a80b1b94c Get rid of __HAIKU__ checks
This is a leftover of something that wasn't finiched and looks like won't be finished. It also feels that's not a good idea to mix Linux and Haiku in the same file though...
2022-05-19 17:23:47 +04:00
Ilya Fedin
db33fbac27 Get rid of DisableCustomScaling hack
This shouldn't be needed since Qt is built without High-DPI scaling support in official binaries and QT_SCALE_FACTOR is a debug environment variable, so any use of it is a user's environment misconfiguration.

https://doc.qt.io/qt-6/highdpi.html#environment-variable-reference
2022-05-19 17:23:47 +04:00
John Preston
69e41e911d Update tg_owt revision in snap build. 2022-05-13 20:32:05 +04:00
John Preston
526484e694 Update jemalloc to 5.3.0. 2022-05-13 20:31:57 +04:00
John Preston
c4e713815b Fix codes input in Settings. 2022-05-13 19:38:28 +04:00
John Preston
b5bc567eb8 Beta version 3.7.5: Fix MSVC x64 Release build. 2022-05-13 12:26:26 +04:00
John Preston
5f91a97778 Beta version 3.7.5.
- Improve cloud password management design.
- Fix a crash in shared media search.
- Fix audio recording on macOS.
2022-05-12 18:02:52 +04:00
John Preston
63aa3576d8 Append correct RtcServer-s and RtcServer ids. 2022-05-12 18:02:52 +04:00
John Preston
7749794d6b Update OpenAL to fix macOS audio recording. 2022-05-12 17:26:30 +04:00
John Preston
368468447f Fix possible crash on bad data. 2022-05-12 16:29:12 +04:00
John Preston
54fa16424d Update API to layer 142. 2022-05-12 15:31:53 +04:00
John Preston
fc7f1991dd Allow more attempts to finalize section geometry. 2022-05-12 14:43:24 +04:00
23rd
910d0a7e47 Unified element sizes in all cloud password sections. 2022-05-12 03:51:41 +03:00
23rd
6e8fb2ec06 Returned ability to copy phone number from main settings. 2022-05-10 08:53:31 +03:00
23rd
94d943f3af Fixed style of icons in info peer box. 2022-05-10 08:53:31 +03:00
23rd
41e6e32962 Fixed closing of box for passport authorization. 2022-05-10 08:53:31 +03:00
23rd
2f58a7d3c4 Added auto-close timer for cloud password management section. 2022-05-10 08:53:31 +03:00
23rd
e364b80d0a Added ability to validate expired cloud password in management section. 2022-05-10 08:53:31 +03:00
23rd
f3efa85206 Added short comments for cloud password settings sections. 2022-05-10 08:53:31 +03:00
23rd
42f2f3c99f Slightly improved style of buttons in security and privacy settings. 2022-05-10 08:53:31 +03:00
23rd
a6d0367d71 Added some error handles for recovery email settings section. 2022-05-10 08:53:31 +03:00
23rd
bcbf009a62 Added ability to reset cloud password without recovery email. 2022-05-10 08:53:31 +03:00
23rd
fedd8bece3 Added ability to clear cloud password from recover state. 2022-05-10 08:53:31 +03:00
23rd
031525e7e3 Added ability to recover cloud password with email from settings. 2022-05-10 08:53:31 +03:00
23rd
4d5cb6398e Moved creation of link button in cloud password settings to common file. 2022-05-10 08:53:31 +03:00
23rd
3ef352b63c Added ability to recover cloud password from Api::CloudPassword. 2022-05-10 08:53:31 +03:00
23rd
9809c12fb8 Added initial entry point for new cloud password to settings privacy. 2022-05-10 08:53:30 +03:00
23rd
3e4ac35913 Added ability to set recovery email from cloud password management. 2022-05-10 08:53:30 +03:00
23rd
a72953411b Added step section of email confirm to cloud password settings. 2022-05-10 08:53:30 +03:00
23rd
3967e58627 Improved step section of password input for checking cloud password. 2022-05-10 08:53:30 +03:00
23rd
db46f84f2c Added initial implementation of cloud password management to settings. 2022-05-10 08:53:30 +03:00
23rd
9a57347973 Added step section of email input to cloud password settings. 2022-05-10 08:53:30 +03:00
23rd
c9c988e5f4 Added step section of hint input to cloud password settings. 2022-05-10 08:53:30 +03:00
23rd
5e2acdeaa3 Added step section of password input to cloud password settings. 2022-05-10 08:53:30 +03:00
23rd
5a4d1a1e85 Added first step section to cloud password settings. 2022-05-10 08:53:30 +03:00
23rd
fbd9437775 Added ability to transfer variant data between nearest setting sections. 2022-05-10 08:53:30 +03:00
23rd
2eaa17b938 Moved creation of flexible bottom content of password section to module. 2022-05-10 08:53:30 +03:00
23rd
01eacadca5 Added ability to set recovery email from Api::CloudPassword. 2022-05-10 08:53:30 +03:00
23rd
9f155e0053 Added ability to confirm recovery email from Api::CloudPassword. 2022-05-10 08:53:30 +03:00
23rd
2f9dc6ca2a Added ability to check cloud password from Api::CloudPassword. 2022-05-10 08:53:30 +03:00
23rd
3d6f6cdd8f Added ability to set cloud password from Api::CloudPassword. 2022-05-10 08:53:30 +03:00
23rd
7e3c54f8d0 Added common initial helpers for steps of cloud password settings. 2022-05-10 08:53:29 +03:00
23rd
540ee0bc44 Moved out mtp fields from PasscodeBox::CloudFields to nested struct. 2022-05-10 08:53:29 +03:00
23rd
627170520a Moved out mtp fields from CloudPasswordState to nested struct. 2022-05-08 23:13:45 +03:00
23rd
77d50d9177 Moved out template classes for local passcode from header. 2022-05-05 20:31:17 +03:00
23rd
c47140c62d Fixed window activation by clicking on tray icon for macOS. 2022-05-05 16:52:09 +03:00
23rd
546dfb08ef Moved out info in Folders settings from pinned content. 2022-05-05 16:52:09 +03:00
23rd
376b592e5a Replaced boxes for local passcode settings with section. 2022-05-05 16:52:09 +03:00
23rd
c27db754a7 Added initial implementation of first screen for local passcode. 2022-05-05 16:52:09 +03:00
23rd
5fb71cb165 Added ability to append pinned to bottom content to settings sections. 2022-05-05 16:52:09 +03:00
23rd
972666440e Added ability to remove previous sections from stack in info widget. 2022-05-05 16:52:09 +03:00
23rd
549d7c77e5 Added to settings support of showing back section from stack. 2022-05-05 16:51:17 +03:00
23rd
de3b30ed7d Added support of focus handle to sections of settings. 2022-05-05 16:51:17 +03:00
23rd
a4f5e3f411 Removed display of strings with tiny formats with huge values. 2022-05-05 16:51:17 +03:00
23rd
df19b62e92 Replaced json of lottie icon for filters with binary file. 2022-05-05 16:51:16 +03:00
Ilya Fedin
caf2be13b3 Move pipewire stubs initialization to Media::Audio::Start 2022-05-04 14:34:33 +04:00
John Preston
e206f42e4e Beta version 3.7.4: Update tg_owt in snap. 2022-05-04 12:34:22 +04:00
John Preston
3f60410190 Beta version 3.7.4: Fix build with GCC in Release. 2022-05-04 11:49:11 +04:00
John Preston
3cdd8558db Beta version 3.7.4: Fix build with GCC. 2022-05-04 11:42:54 +04:00
John Preston
f2b89445ae Allow playing single lottie icon repeatedly or once. 2022-05-04 11:39:53 +04:00
23rd
3ff4bf77e7 Removed repeated animation from some settings lottie icons. 2022-05-04 07:32:52 +03:00
John Preston
d16ccf0d9e Beta version 3.7.4: Fix build with Xcode. 2022-05-03 23:33:41 +04:00
John Preston
fc7d9b264f Add webview-debug-enabled option. 2022-05-03 23:30:54 +04:00
John Preston
b28d5a63d1 Handle alert/confirm/prompt with custom dialog on Linux. 2022-05-03 23:30:42 +04:00
John Preston
043ba4ff04 Handle alert/confirm/prompt with custom dialog on macOS. 2022-05-03 23:30:21 +04:00
John Preston
d6c3bf4168 Use EdgeChromium by default on Windows. 2022-05-03 23:29:04 +04:00
John Preston
7bf7a8feff Beta version 3.7.4.
- Improve some more sections design.
- Update the OpenAL library to 1.22.0.
2022-05-03 23:09:26 +04:00
John Preston
3413ad1d22 Add some more icons for folders. 2022-05-03 23:09:26 +04:00
John Preston
84af084a3b Update tg_owt to WebRTC M101. 2022-05-03 23:09:26 +04:00
23rd
cd50008429 Moved plus icon to settings style file. 2022-05-03 21:59:38 +03:00
23rd
767459ab57 Slightly improved style of button in settings of blocked peers. 2022-05-03 21:59:38 +03:00
23rd
3b45a120e6 Slightly improved style of buttons and icons in Folders settings. 2022-05-03 21:59:38 +03:00
23rd
b04aaba8d0 Slightly improved style of box for edit folder. 2022-05-03 21:59:38 +03:00
23rd
bfa3655c7b Removed unused code of box for filters choosing. 2022-05-03 21:59:38 +03:00
CrisMystik
8642eb23a7 Removed unneeded part of code 2022-05-03 16:35:54 +04:00
CrisMystik
ef8ecc546b Use ::Settings::Main::Id() as fallback 2022-05-03 16:35:54 +04:00
CrisMystik
fafbbb4996 Suggested code improvements 2022-05-03 16:35:54 +04:00
CrisMystik
3a021f4e49 Make type variable const 2022-05-03 16:35:54 +04:00
CrisMystik
2788c19c85 Add some missing includes 2022-05-03 16:35:54 +04:00
CrisMystik
300cc3dbca Support all Settings links 2022-05-03 16:35:54 +04:00
GitHub Action
62516e264d Update User-Agent for DNS to Chrome 100.0.4896.127. 2022-05-03 16:24:54 +04:00
John Preston
8b89cfc4cb Fix custom notification sounds for all chats. 2022-05-03 16:23:39 +04:00
Ilya Fedin
e3f65d2346 Convet font point size to pixel size more like Qt does in the crash reporter 2022-05-03 15:16:20 +04:00
Andrew Krasavin
2b383a4236 Explicitly specify QVector element type to fix build with clang13+rangev3+qt6
More info:
https://github.com/telegramdesktop/tdesktop/issues/24385
https://github.com/telegramdesktop/tdesktop/issues/24014
https://github.com/ericniebler/range-v3/issues/1691
2022-05-03 15:15:20 +04:00
John Preston
a8426bd6da Update submodules. 2022-05-03 14:58:13 +04:00
John Preston
39a02e649d Fix crash on invalid data in local cache. 2022-05-03 14:52:08 +04:00
John Preston
276fe2169a Use SeparatePanel / ShowMultilineToast from lib_ui. 2022-05-03 14:52:08 +04:00
23rd
8fae56bee8 Improved style of Folders settings. 2022-05-03 04:25:36 +03:00
23rd
0e16a50bbc Completely removed common and platform code for tray from main window. 2022-05-03 04:25:36 +03:00
23rd
9de372d715 Replaced macOS Qt tray with native implementation. 2022-05-03 04:25:36 +03:00
23rd
fbae5bdbcf Removed macOS tray implementation from main window. 2022-05-03 04:25:36 +03:00
23rd
aee1ef78da Moved out static job for Linux tray icon to separated class. 2022-05-03 04:25:36 +03:00
23rd
27c5c4b8f2 Removed Linux tray implementation from main window. 2022-05-03 04:25:36 +03:00
23rd
94e06c6846 Removed Windows tray implementation from main window. 2022-05-03 04:25:36 +03:00
23rd
7948d971e8 Added initial implementation of Linux tray. 2022-05-03 04:25:36 +03:00
23rd
70acc7a0e3 Added initial implementation of Windows tray. 2022-05-03 04:25:36 +03:00
23rd
56fdc7d39a Added common and macOS tray implementations. 2022-05-03 04:25:36 +03:00
23rd
f67c3bbf65 Added placeholders for platform dependent implementations of tray. 2022-05-03 04:25:35 +03:00
23rd
de194c4aa2 Initialized empty files for tray implementations. 2022-05-03 04:25:35 +03:00
23rd
511805199f Added ability to check are windows active for tray menu. 2022-05-03 04:25:35 +03:00
23rd
aa241a1f62 Removed duplicated icons. 2022-05-03 04:25:35 +03:00
23rd
4125a45503 Slightly improved format of mute time in menu. 2022-05-03 04:25:35 +03:00
23rd
1349989494 Moved settings of blocked peers to section. 2022-05-03 04:25:35 +03:00
23rd
639ed8b973 Added ability to append pinned to top content to settings sections. 2022-05-02 22:31:05 +03:00
23rd
2f5db08c9b Fixed double scroll in reactions settings when height is small. 2022-05-02 22:31:05 +03:00
Ilya Fedin
4c6814def6 Replace style sheet in PreLaunchInput 2022-05-02 16:01:36 +04:00
Ilya Fedin
387914be31 Replace style sheet in Editor::Paint 2022-05-02 16:01:36 +04:00
Ilya Fedin
2f2003c89b Fix media viewer on Unity
This could be a regression for tiling WMs, though...
2022-05-02 16:00:56 +04:00
Ilya Fedin
48589b721d Update openal to 1.22.0 2022-05-02 15:33:56 +04:00
23rd
3bdf1634a9 Added ability to copy phone number from main menu. 2022-04-28 17:41:34 +03:00
23rd
1878061c9a Fixed color of attention menu items for account buttons. 2022-04-28 17:16:58 +03:00
23rd
774c3b5ba0 Fixed tab order in EditNameBox. 2022-04-28 17:10:13 +03:00
23rd
a64b8d4181 Slightly improved style of section for group stickers. 2022-04-28 16:27:39 +03:00
23rd
e3e380124d Removed ttl menu from inaccessible groups and channels. 2022-04-28 15:13:58 +03:00
John Preston
823fc25fa8 Fix layer height updating in poll results. 2022-04-27 15:20:19 +04:00
23rd
4062912a98 Added missed icon for join requests in manage of groups / channels. 2022-04-26 22:16:41 +04:00
23rd
62b5192f24 Added missed icon for channel type in manage of channels. 2022-04-26 22:16:39 +04:00
23rd
058717532a Replaced title static reaction icon in manage of groups / channels. 2022-04-26 22:16:38 +04:00
Sergey A. Osokin
d117a72e6e Fix -Wunused-const-variable warnings by removing unused variables
Fixes #24432
2022-04-26 21:25:05 +04:00
Sergey A. Osokin
3ba5b825e5 Fix -Wunused-const-variable warnings by removing unused variables
Fixes #24432
2022-04-26 21:25:05 +04:00
John Preston
075ab20e5b Version 3.7.3: Don't copy text from a restricted post. 2022-04-26 14:13:16 +04:00
John Preston
deeea0aaed Version 3.7.3: Update lib_webview. 2022-04-26 13:06:42 +04:00
John Preston
8113117cc4 Version 3.7.3.
- Fix a crash in the pinned bar bot button refresh.
2022-04-26 10:38:58 +04:00
John Preston
7bfe096f3b Fix possible crashes in pinned bar button. 2022-04-26 10:24:36 +04:00
John Preston
c37b08ac8b Version 3.7.2.
- Fix mute period selector values.
- Fix a crash in repeated context menu item selection.
- Fix context menu item selection of systems without a compositor.
2022-04-25 22:38:29 +04:00
Hugo Osvaldo Barrera
c52a5927e5 Avoid a second query for the current color-scheme
Telegram listens for a signal that indicates when the color-scheme
changes. The signal itself includes the new value, but Telegram
currently queries for the value immediately after getting the signal.
This second round-trip is unnecessary, since the signal itself contains
the same information.

This changeset avoids this follow-up query, and drops the now-unused
`Setter`.
2022-04-25 22:38:08 +04:00
23rd
edcfac8da3 Slightly improved display of media replacement in admin log. 2022-04-25 22:35:02 +04:00
23rd
a994c9f017 Moved EditPeerHistoryVisibilityBox to td_ui. 2022-04-25 22:35:02 +04:00
23rd
66e6bf8217 Replaced EditPeerHistoryVisibilityBox with generic box. 2022-04-25 22:35:02 +04:00
23rd
4a4cc766c2 Replaced icons in manage group / channel. 2022-04-25 22:35:02 +04:00
23rd
31cd841b75 Added bot button to bar of pinned messages. 2022-04-25 22:35:02 +04:00
23rd
1710890886 Added ability to change width between pinned bar animation entries. 2022-04-25 22:35:02 +04:00
23rd
16f616c5e0 Added ability to set content to bar of pinned messages later. 2022-04-25 22:35:02 +04:00
23rd
7600c9bb2f Added fade animation to right button in bar of pinned messages. 2022-04-25 22:35:02 +04:00
23rd
100a44daef Removed unused includes from MultiSelect. 2022-04-25 22:35:02 +04:00
23rd
54305fafde Removed forced context menu in profiles for muted peers. 2022-04-25 22:35:02 +04:00
23rd
d172d3d7db Fixed intervals of seconds in PickMuteBox. 2022-04-25 22:35:02 +04:00
Ilya Fedin
cee593c423 Check whether notification image has alpha channel 2022-04-25 22:33:22 +04:00
John Preston
43adbb1cb1 Revert some changes in Menu actions triggering. 2022-04-25 15:54:32 +04:00
John Preston
e96731be11 Fix popup menu callbacks on systems without compositing. 2022-04-25 15:42:42 +04:00
John Preston
6ea062462f Fix crash in Ui::Menu second action trigger event. 2022-04-25 14:03:57 +04:00
John Preston
1bc8d6fb18 Fix non-working Qt-on-Windows bug workaround. 2022-04-25 14:03:43 +04:00
John Preston
73d00a4caf Reload stale video chat on join. 2022-04-25 13:41:24 +04:00
John Preston
a23561c380 Reload stale video chats on group / channel open. 2022-04-25 12:50:58 +04:00
Ilya Fedin
bb75a6a31b Speed up submodule checkout in Dockerfile
Use --depth=1 for submodules, too.
This also replaces perl init-repository for Qt as the only thing it does is fetches submodules, but there's no way to specify --depth=1 with it.
2022-04-24 07:26:20 +04:00
John Preston
ce79c1f0c4 Handle "web_app_request_theme" event in WebView. 2022-04-21 10:47:21 +04:00
John Preston
3cdb82a0bf Version 3.7.1.
- Hardware accelerated video decoding off by default.
- Fix several crashes.
2022-04-20 13:56:09 +04:00
John Preston
d2f928f0c3 Fix info layer animations. 2022-04-20 13:53:07 +04:00
John Preston
3cc0110464 Fix menu callbacks triggering in some cases. 2022-04-20 11:43:53 +04:00
John Preston
df533f2efe Don't use WebView embed in Windows before 8.1. 2022-04-20 11:43:53 +04:00
John Preston
2529bd3f44 Add logging of PickMuteBox invocation. 2022-04-20 11:43:53 +04:00
23rd
a5c12065af Slightly improved style of ttl button. 2022-04-19 17:48:48 +03:00
23rd
101e795af8 Changed time picker box to highlight closest value. 2022-04-19 17:48:48 +03:00
23rd
8faa65fdf3 Improved format of ttl and mute phrases. 2022-04-19 17:48:48 +03:00
John Preston
644881bd3e Fix build on Windows. 2022-04-19 18:13:27 +04:00
John Preston
efa1b2dcbc Update WebView2 package version. 2022-04-19 16:59:23 +04:00
John Preston
92a9832337 Update patches revision in CentOS docker. 2022-04-19 16:21:18 +04:00
John Preston
8f3456cd6c Attempt to fix the build on GCC. 2022-04-19 16:10:45 +04:00
John Preston
e67192cdf0 Fix export window size.
Fixes #24373.

SeparatePanel::show calls activePopupWidget::close,
activePopupWidget::close calls SeparatePanel::resizeEvents with strange values.
2022-04-19 12:02:54 +04:00
John Preston
9f2683a35b Fix crash in MessagesSearch requests. 2022-04-19 12:02:11 +04:00
Ilya Fedin
0a7e25e45a Update cmake_helpers 2022-04-19 10:23:24 +04:00
Ilya Fedin
643a034aae Fix default branch check in the Dokcer action 2022-04-19 10:23:24 +04:00
John Preston
1c5a3aef54 Hardware accelerated video decoding off by default. 2022-04-19 09:51:29 +04:00
John Preston
bfe47a1ba2 Clear hw_device_ctx in AVCodecContext. 2022-04-19 09:39:01 +04:00
John Preston
acd76fc97b Clear possible crash in media viewer. 2022-04-19 09:39:01 +04:00
John Preston
78fedce2d5 Fix icon positions in manage group / channel. 2022-04-19 09:39:01 +04:00
23rd
5261e962e2 Removed Ui::show from menu item for poll stopping. 2022-04-19 09:39:01 +04:00
23rd
e4bfd562b5 Fixed phone formatting when app is started from settings. 2022-04-19 09:39:01 +04:00
23rd
d289bbdc5e Added ability to report profile photos.
Fixed #24325.
2022-04-19 09:39:01 +04:00
23rd
2e9e3b3751 Provided parent to report toasts. 2022-04-19 09:39:01 +04:00
23rd
af0a2f182c Removed Ui::show from ShowReportItemsBox. 2022-04-19 09:39:01 +04:00
23rd
e3ac84a849 Moved boxes for reporting messages or peers to separated file. 2022-04-19 09:39:01 +04:00
23rd
6dce8dfa20 Moved api for report messages to separated file. 2022-04-19 09:39:01 +04:00
23rd
eef1da56c8 Slightly optimized box of messages reporting in HistoryWidget. 2022-04-19 09:39:01 +04:00
23rd
e37866d0b9 Added animated reactions in manage of groups / channels. 2022-04-19 09:39:00 +04:00
23rd
1ed7d482ab Added ability to choose precise time for user restriction.
Fixed #3599.
Fixed #6923.
2022-04-19 09:39:00 +04:00
23rd
f1a7db780e Fixed text color of menu item for disabling notifications. 2022-04-19 09:39:00 +04:00
23rd
8591fae031 Added slight nice effect to time picker. 2022-04-19 09:39:00 +04:00
23rd
18b9bba21c Fixed width of time picker for different scales. 2022-04-19 09:39:00 +04:00
Ilya Fedin
580e15dc21 Update cmake_helpers 2022-04-19 09:33:23 +04:00
Ilya Fedin
bf4fc2596a Remove unneeded primary screen fallbacks
QWidget::screen automatically fallbacks to primary screen as the last effort, so this is not needed
2022-04-19 09:33:23 +04:00
Ilya Fedin
9a4d2bc8f9 Make processDpi a constexpr and remove unneeded qreal 2022-04-19 08:40:07 +04:00
Ilya Fedin
62a2277f43 Passthrough QT_FONT_DPI in crash report window just like in the main scaling engine 2022-04-19 08:40:07 +04:00
Ilya Fedin
d11885d48c Update URL to the Docker image in Linux action 2022-04-18 21:21:57 +04:00
Ilya Fedin
c8cec18ad3 Update patches in Dockerfile 2022-04-18 20:17:08 +04:00
Ilya Fedin
86105403bf Automatically update Docker image on GHCR 2022-04-18 20:17:08 +04:00
Ilya Fedin
41288f5ddb Update patches in Dockerfile 2022-04-18 10:06:16 +04:00
Ilya Fedin
9cc1a020f3 Have a variable to control debug info in docker image 2022-04-18 10:06:16 +04:00
Ilya Fedin
68f35e98e0 Have less Docker steps to avoid saving superfluous data 2022-04-18 10:06:16 +04:00
Ilya Fedin
b6c9a1d655 Add glib-networking to snap
It's required by webkit2gtk for correct operation
2022-04-17 13:50:25 +04:00
Ilya Fedin
9b35fa29b8 Remove object files from the resulting Docker image 2022-04-17 09:10:44 +04:00
Ilya Fedin
53272d951b Adjust path variables in Dockerfile 2022-04-17 09:10:44 +04:00
John Preston
e3dc4ae088 Version 3.7: Fix a crash in some langpacks. 2022-04-16 20:58:17 +04:00
John Preston
000d9d8b52 Version 3.7.
- Use any short music file or voice message as a notification sound.
- Right click audio files in chats to add them to your list
of sounds - or use 'Upload Sound' in the Notifications menu.
- Click on Mute notifications > Select sound in a chat's (...) menu
to change its notification sound.
- Set custom tones for notifications
in Settings > Notifications > Play sound.
- Click on Mute notifications in a chat's (...) menu
to manage its notifications.
- Choose 'Mute for...' to turn off notifications for a preset period,
like 1 hour or 1 day.
- Quickly configure Auto-Delete settings from any chat info page.
- Click (...) to turn on Auto-Delete,
then select a specific duration.
- Replies are now preserved when forwarding messages,
making forwarded conversations easier to read.
- Bots can now open detailed pages directly in the chat.
- Use these streamlined interfaces to buy real-world goods
and services without leaving the app.
- Open a bot's profile to add it to your group or channel.
- Instantly configure a bot's rights and permissions when adding it.
- Bots can send a new type of button
that lets you add them to your group or channel.
2022-04-16 20:37:17 +04:00
Ilya Fedin
3d8742fa7c Fix some working with paths in prepare.py
Use os.path.join for separator
Get real path of Libraries/ThirdParty directories to workaround gyp's problems with drive letters
2022-04-16 20:27:19 +04:00
Ilya Fedin
ae43e78a86 Have libraries in GITHUB_WORKSPACE for caching in Windows action 2022-04-16 20:27:19 +04:00
Ilya Fedin
7c72393361 Add architecture to Windows action cache key 2022-04-16 20:27:19 +04:00
Ilya Fedin
fa95ca4289 Don't install unused brew packages 2022-04-16 20:27:19 +04:00
Ilya Fedin
e6e90e99da Run Windows action on changes in prepare.py 2022-04-16 20:27:19 +04:00
Ilya Fedin
6a3c1f2fd9 Fix macOS action 2022-04-16 20:27:19 +04:00
John Preston
90f99ebfbe Add some additional space for TimePickerBox. 2022-04-16 20:26:49 +04:00
John Preston
59fb61e3e6 Don't re-request ringtones on empty list. 2022-04-16 20:13:21 +04:00
John Preston
261740967d Fix media viewer crop on multi-monitor setup. 2022-04-16 19:56:28 +04:00
Nicholas Guriev
e99e35a12a Close restarting confirm box when cancelled
The regression seems introduced in commit 5718789d53.
2022-04-16 18:14:33 +04:00
Ilya Fedin
fd6d09caaa Fix cache update for the actions
The caching action doesn't update the cache when cache hit is happenned.
This could be fixed by having unique keys for every cache change and using restore-keys to find these caches.
2022-04-16 07:28:06 +04:00
23rd
47ec5b18b8 Removed info button from top bar in profile when menu is empty. 2022-04-15 14:19:29 +03:00
23rd
aac21e1f71 Removed ttl menu for deleted accounts. 2022-04-15 13:59:44 +03:00
23rd
21c647147a Fixed total count of found messages in channels via api search. 2022-04-15 13:13:44 +03:00
23rd
07a022bfb6 Converted ttl and mute boxes to confirm boxes. 2022-04-15 13:13:44 +03:00
23rd
0427f90649 Removed label from confirm box when text is not provided. 2022-04-15 13:13:44 +03:00
23rd
64627c9093 Fixed theme of sample bubble message in reactions settings. 2022-04-15 13:11:32 +03:00
23rd
148a173474 Removed animation when removing reaction with double click. 2022-04-15 13:11:32 +03:00
John Preston
acb6e5dbc3 Fix date layout for webpage preview without description. 2022-04-15 09:30:34 +04:00
John Preston
9bd9f17a6c Show only active reactions in quick reaction box. 2022-04-15 09:26:58 +04:00
John Preston
d59ed7b14c Fix glitch on layer open. 2022-04-14 17:29:58 +04:00
John Preston
3600055424 Fix possible use-after-free in VerticalLayout. 2022-04-14 17:29:56 +04:00
John Preston
949caecb75 Fix bot start token sending. 2022-04-14 16:13:12 +04:00
John Preston
87df42f8c1 Improve icon padding in bot inline buttons. 2022-04-14 15:24:12 +04:00
John Preston
2996cbc518 Fix bot menu button on voice recording. 2022-04-14 15:22:19 +04:00
John Preston
205cd3b751 Fix mention links to groups and channels. 2022-04-14 14:15:29 +04:00
Ilya Fedin
d25bd2f481 Update tg_owt in Dockerfile & snapcraft.yaml 2022-04-14 14:14:15 +04:00
Ilya Fedin
072974216b Disable egl-extension-platform-wayland again
Looks like it causes problems along with -Wl,-z,now
2022-04-14 13:54:51 +04:00
John Preston
f2256dfa4f Beta version 3.6.3: Don't build OBJC precompiled header. 2022-04-14 10:35:33 +04:00
John Preston
5cf3b621ee Beta version 3.6.3: Fix emoji in ReactionsSettingsBox on non-Retina. 2022-04-14 09:57:38 +04:00
23rd
59fc9d3bfd Replaced static reaction icon in settings with animated lottie. 2022-04-14 09:46:03 +04:00
John Preston
9380c4bbc3 Fix reaction image caching after settings. 2022-04-14 09:46:03 +04:00
John Preston
2edefbf93c Beta version 3.6.3: Support deployment on WSL. 2022-04-14 09:46:02 +04:00
John Preston
866ab2fcc2 Beta version 3.6.3: Fix build with Qt 5.15. 2022-04-14 09:46:02 +04:00
John Preston
d9ba83c222 Beta version 3.6.3.
- Allow sending the default reaction by a double click.
- Select a custom sound for message notifications.
- Add chats to folders from a chat context menu.
- Fix group and channel photo upload.
- Test hardware video decoding.
2022-04-14 09:46:02 +04:00
Ilya Fedin
62e82a42fb Adapt to lib_base's XDP API changes 2022-04-14 09:15:50 +04:00
Ilya Fedin
80f1f079f1 Move waitForInterfaceAnnounce call to the uses of announced interfaces 2022-04-14 09:11:05 +04:00
John Preston
17be462d59 Fix build for macOS with Qt 6.3.0.. 2022-04-13 16:03:35 +04:00
23rd
2f8efb5ce6 Moved out setup of top and bottom scroll shadows to separated file. 2022-04-13 14:26:11 +03:00
John Preston
dad2ad2eb8 Update submodules for Qt 6.3 on macOS and Linux. 2022-04-13 15:08:34 +04:00
John Preston
43ddb856c1 Don't build InstanceV2ReferenceImpl yet. 2022-04-13 15:06:24 +04:00
John Preston
488f6412f2 Change phone number section instead of a box. 2022-04-13 15:06:24 +04:00
John Preston
2253cd86e5 Add an icon to a webview bot button. 2022-04-13 15:06:23 +04:00
23rd
4216d72c67 Added ability to set favorite reaction from settings. 2022-04-13 15:06:23 +04:00
23rd
4304071d18 Added ability to configure quick action on double click. 2022-04-13 15:06:23 +04:00
Ilya Fedin
572eb1f5f8 Remove unneeded anymore xdg-open workaround for snap 2022-04-13 15:06:06 +04:00
Ilya Fedin
2e1f504c11 Update to Qt 6.3 2022-04-13 15:06:06 +04:00
John Preston
d4cb56a73d Custom scroll bar in WebKit / Chromium. 2022-04-12 23:01:37 +04:00
23rd
9510d38929 Fixed reply on double click with protected content. 2022-04-12 17:35:51 +03:00
GitHub Action
a8b2604512 Update User-Agent for DNS to Chrome 100.0.4896.60. 2022-04-12 17:36:18 +04:00
Ilya Fedin
17fcc729a2 Implement org.freedesktop.appearance.color-scheme 2022-04-12 17:35:51 +04:00
Ilya Fedin
ddeac15859 Update submodules 2022-04-12 17:03:42 +04:00
Ilya Fedin
2fac888453 Update KDE frameworks to 5.93.0 2022-04-12 17:03:42 +04:00
John Preston
f6f39d1560 Change layer widget height with animation. 2022-04-12 16:07:25 +04:00
John Preston
9933d1ff3a Try CUDA hardware decoding on Linux. 2022-04-11 12:58:59 +04:00
John Preston
1e5f18bfe8 Request bots on updateAttachMenuBots. 2022-04-11 12:30:46 +04:00
John Preston
be6ee73a04 Update bot menu attach in realtime. 2022-04-11 12:18:16 +04:00
John Preston
c73eb5d791 Update WebKit2GTK webview to open external links. 2022-04-11 11:53:33 +04:00
23rd
12b3d9b61e Updated Qt license. 2022-04-10 23:28:56 +03:00
23rd
a49eda44d9 Replaced hardcoded limitations for ringtones with server values. 2022-04-10 22:16:15 +03:00
23rd
7eacd26d70 Slightly optimized processing of webpages in compose controls. 2022-04-10 17:11:42 +03:00
23rd
8440c44def Replaced box for choosing of filter with submenu. 2022-04-10 15:34:12 +03:00
John Preston
d15ff46eb4 Fix webview initialization on GCC. 2022-04-08 23:15:37 +04:00
23rd
8721b7a689 Simplified condition for display of invite links button. 2022-04-07 19:54:20 +03:00
23rd
08f2bbef4e Moved out nested class for merged message search to separated file. 2022-04-07 19:18:47 +03:00
23rd
4ad31ce4e0 Fixed refreshing of file reference in api toggling media module. 2022-04-07 19:18:47 +03:00
23rd
cf6b995c50 Moved out saving of ringtones to api toggling media module. 2022-04-07 19:18:47 +03:00
John Preston
ea30918d35 Fix build with GCC. 2022-04-07 18:28:58 +04:00
John Preston
84cd5b9278 Update API scheme on layer 140. 2022-04-07 17:30:35 +04:00
John Preston
2b5d61ad36 Update tgcalls library.
Fixes #24173.
2022-04-07 16:49:38 +04:00
John Preston
94c6793e92 Add bot menu button with webview open support. 2022-04-07 16:31:07 +04:00
John Preston
d35b8f82a3 Play ringtones on click in select box. 2022-04-07 11:35:53 +04:00
23rd
f5164fe3e4 Added ability to use previous peer userpics. 2022-04-07 02:14:02 +03:00
23rd
e033337b26 Added toast to add to / remove from folder actions. 2022-04-06 18:44:45 +03:00
John Preston
0615f21deb Allow editing general notification sound. 2022-04-06 19:23:41 +04:00
John Preston
c71ba2b8e7 Choose newly uploaded ringtone in the box. 2022-04-06 19:19:50 +04:00
John Preston
d9f6a5206e Update API scheme on layer 140. 2022-04-06 16:29:06 +04:00
23rd
7b307a9e54 Added ability to save audio from chat as custom notification sound. 2022-04-06 15:21:37 +03:00
23rd
41784eb56a Removed display of file extension from list of custom sounds. 2022-04-06 13:15:27 +03:00
23rd
d224b3d301 Added quick actions for folders to menu from chats list. 2022-04-06 12:36:32 +03:00
John Preston
eabe7a3411 Support macOS webview file chooser. 2022-04-06 12:27:33 +04:00
John Preston
646682b6a0 Add confirmation on first webview open. 2022-04-06 11:53:44 +04:00
John Preston
73c5988e7e Allow opening external pages from attach bots. 2022-04-06 10:55:05 +04:00
John Preston
622474e83b Leave only one list of items for custom sounds. 2022-04-05 19:29:43 +04:00
John Preston
071f599d48 Cache multiple custom ringtone tracks. 2022-04-05 18:08:35 +04:00
John Preston
2156e15732 Fix refreshing ringtone file references. 2022-04-05 18:08:13 +04:00
John Preston
ef972ae15b Fix requesting ringtones list. 2022-04-05 18:07:37 +04:00
John Preston
0374d8caa8 Add "Photo or video" and "Document" attach menu items. 2022-04-05 16:32:02 +04:00
John Preston
0e75204762 Support native button in bot webview. 2022-04-05 16:31:15 +04:00
John Preston
d9bbfeead1 Provide section title from the section class. 2022-04-05 16:31:09 +04:00
23rd
b1e3b9688e Added initial support of custom sound to notifications. 2022-04-05 15:28:48 +03:00
23rd
9950452e57 Slightly optimized name of methods in data notify settings. 2022-04-05 15:28:48 +03:00
23rd
c04a0e42a7 Added initial ability to configure notification sound. 2022-04-05 15:28:48 +03:00
23rd
1c9b1ea69f Added api ability to load list of available ringtones. 2022-04-05 15:28:48 +03:00
23rd
085c6f9c12 Added initial api ability to upload ringtones from files. 2022-04-05 11:52:34 +03:00
23rd
a0b88e8f8b Added public api for sound configuration to data notify settings. 2022-04-05 11:52:33 +03:00
23rd
55864edb67 Refactored adding of sensitive menu items. 2022-04-04 17:15:45 +03:00
23rd
4754a513aa Fixed closing of transfer ownership box. 2022-04-04 16:09:41 +03:00
23rd
e20aa0c524 Added total number of messages when deleting all messages from user. 2022-04-03 13:21:08 +03:00
23rd
a4cdd6e376 Fixed width of checkbox for deleting all messages from specific user. 2022-04-03 13:09:37 +03:00
23rd
1a746b1ba3 Added few last used mute periods to mute menu. 2022-04-02 01:26:00 +03:00
23rd
511789d7af Added vertical time picker for mute period. 2022-04-01 19:15:10 +03:00
23rd
209e09ab66 Moved box with vertical drum picker for time to separated module. 2022-04-01 19:15:10 +03:00
23rd
6a7cbc545f Fixed scrolling with touchpad in vertical drum picker. 2022-04-01 19:14:58 +03:00
23rd
7fda14ccca Added loop setting to vertical drum picker. 2022-04-01 17:02:01 +03:00
John Preston
7b7016c4b3 Fix scrolling with a touchpad in vertical drum. 2022-04-01 16:24:28 +04:00
23rd
9478798a47 Moved out public api for notify settings from Data::Session. 2022-04-01 15:53:58 +04:00
23rd
36bb23c54c Moved out data of notify settings to separated module. 2022-04-01 15:53:58 +04:00
23rd
5a3bbfbf62 Renamed Data::NotifySettings to Data::PeerNotifySettings. 2022-04-01 15:53:58 +04:00
23rd
70d1a1e376 Slightly improved some phrases for chat menu. 2022-04-01 15:53:58 +04:00
23rd
67d8a7e106 Moved out peer menu callback and its creation to separated files. 2022-04-01 15:53:58 +04:00
23rd
36e334ecf2 Replaced arrow for items with submenu in menu with icons. 2022-04-01 15:53:58 +04:00
23rd
320ff9d606 Simplified settings of auto-delete. 2022-04-01 15:53:58 +04:00
23rd
8d923489d3 Replaced inputs for auto-delete setting with prepared values. 2022-04-01 15:53:58 +04:00
23rd
d9541b6a6e Unified general phrases for duration. 2022-04-01 15:53:58 +04:00
23rd
fb750b69e3 Added vertical drum picker. 2022-04-01 15:53:58 +04:00
23rd
4dd5be9356 Simplified settings of notification sound. 2022-04-01 15:53:57 +04:00
23rd
93563358ca Added remain time to notification menu item when peer is muted. 2022-04-01 15:53:57 +04:00
23rd
d7bf9e285c Replaced kick button with admin rank in list of members. 2022-04-01 15:53:57 +04:00
23rd
221ef74150 Slightly improved phrases in clear history box. 2022-04-01 15:53:57 +04:00
23rd
3c4f575bc2 Added ability to set auto-delete from profile info. 2022-04-01 15:53:57 +04:00
23rd
3356168745 Replaced DropdownMenu with PopupMenu in profile info. 2022-04-01 15:53:57 +04:00
23rd
8fcd07863a Replaced box for auto-delete settings with menu. 2022-04-01 15:53:57 +04:00
23rd
fc71a640a6 Added implementation of menu for auto-delete settings. 2022-04-01 15:53:57 +04:00
23rd
06d17c6b2c Changed color of some sensitive menu items to attention one. 2022-04-01 15:53:57 +04:00
23rd
ae25804d83 Moved widget for time choosing to td_ui. 2022-04-01 15:53:57 +04:00
23rd
2f7017b305 Added mute submenu to top bar in sections. 2022-04-01 15:53:57 +04:00
23rd
4bcd9de2b0 Added submenu support to Window::PeerMenuCallback. 2022-04-01 15:53:57 +04:00
23rd
77659c64e0 Replaced DropdownMenu with PopupMenu in top bar of sections. 2022-04-01 15:53:57 +04:00
23rd
c520cb777c Replaced Window::PeerMenuCallback with struct. 2022-04-01 15:53:57 +04:00
23rd
d8ee50c6fe Added ability to set custom mute time. 2022-04-01 15:53:57 +04:00
23rd
73b4a8b75a Added special field for time input with placeholder. 2022-04-01 15:53:57 +04:00
23rd
7bebe699f6 Moved special fields to separated folder. 2022-04-01 15:53:57 +04:00
23rd
4d0b0bbf66 Added mute menu to button for notifications in profile. 2022-04-01 15:53:57 +04:00
23rd
3f6c693c3f Added draft implementation of menu for silent notifications setting. 2022-04-01 15:53:57 +04:00
23rd
8b7ea09fa9 Added initial implementation of detailed mute menu. 2022-04-01 15:53:57 +04:00
23rd
f32215f77d Added support of sound notification setting to Data::Session. 2022-04-01 15:53:57 +04:00
23rd
93d4581443 Slightly refactored Data::Session::applyNotifySetting. 2022-04-01 15:53:57 +04:00
23rd
46b9c0eae6 Added tiny phrases for display duration. 2022-04-01 15:53:56 +04:00
John Preston
aa7143a831 Allow adding Settings::Section-s without changing Type. 2022-04-01 15:53:23 +04:00
John Preston
6716c08306 Fix another crash on context loss. 2022-04-01 10:12:41 +04:00
John Preston
f6559c01e4 Fix sticker image caching in case cell size changes. 2022-03-31 15:24:58 +04:00
John Preston
b1e66279d5 Update API scheme on layer 140. 2022-03-31 13:24:13 +04:00
John Preston
2aa293f1a5 Re-create texture image on format change. 2022-03-30 17:07:35 +04:00
John Preston
5167eb47ae Add hardware acceleartion video decoding setting. 2022-03-30 15:26:34 +04:00
John Preston
27d9f78566 Enforce our own hardware acceleration attempts order. 2022-03-30 14:59:54 +04:00
John Preston
dd9e317257 Recover after a streaming error. 2022-03-30 14:08:36 +04:00
John Preston
2e2aed5002 Fix invoice pinned message phrase. 2022-03-30 12:23:06 +04:00
John Preston
1ffd6d54a0 Don't try to resolve empty username. 2022-03-30 12:23:06 +04:00
John Preston
1c1e67abe3 Fix build with Xcode. 2022-03-30 12:23:06 +04:00
John Preston
00f442573a Update API scheme on layer 140. 2022-03-30 12:23:06 +04:00
John Preston
b38ac32898 Allow removing a bot from attach menu. 2022-03-30 12:23:06 +04:00
John Preston
72ae2f0269 Support custom attach bot icons. 2022-03-30 12:23:06 +04:00
John Preston
426be943a2 Add proof-of-concept webview-bots attach menu. 2022-03-30 12:23:06 +04:00
John Preston
273f2f7ce9 Prolong bot attach webview. 2022-03-30 12:23:06 +04:00
John Preston
a219cc43ce Fix simple web view support. 2022-03-30 12:23:06 +04:00
John Preston
c6ded00461 Move webview attach code to a separate module. 2022-03-30 12:23:05 +04:00
John Preston
aed1904b4c Support theming for webview-s (payments, attach). 2022-03-30 12:23:05 +04:00
John Preston
df15ff9f8e Update API scheme on layer 140. 2022-03-30 12:23:05 +04:00
John Preston
20bdbf531a Add proof-of-concept support for keyboardButtonWebView. 2022-03-30 12:23:05 +04:00
John Preston
1d8aac26ce Proof of concept webview attach menu support. 2022-03-30 12:23:05 +04:00
John Preston
841da9dde8 Update API scheme on layer 140.
Handle attach argument in resolve username links.
2022-03-30 12:23:05 +04:00
John Preston
cdde9f8841 Reaction notifications are always silent. 2022-03-30 12:23:05 +04:00
John Preston
468917a91a Add bot to group / channel by link with rights. 2022-03-30 12:23:05 +04:00
John Preston
649f2908e8 Improve phrases in adding a bot as an admin. 2022-03-30 12:23:05 +04:00
John Preston
a35888a07b Add to Group / Channel with suggested rights for bots. 2022-03-30 12:23:05 +04:00
John Preston
b62c7c76c8 Update API scheme to layer 140. 2022-03-30 12:23:05 +04:00
John Preston
e8748986bf Fix fallback to software decoding in FFmpeg. 2022-03-30 12:22:50 +04:00
John Preston
528a3cdca1 Fix media viewer window. 2022-03-30 12:22:50 +04:00
John Preston
4b328a236c Fix NV12 video rendering in Picture-in-Picture panel. 2022-03-28 17:39:25 +04:00
John Preston
3e1cac94bf Migrate macOS build to Qt 6.2.4. 2022-03-28 17:39:00 +04:00
John Preston
77dae3a7b6 Version 3.6.2: Fix build on Linux. 2022-03-28 01:27:26 +04:00
John Preston
03840557ed Version 3.6.2: Fix build with the new Xcode. 2022-03-27 20:02:50 +04:00
John Preston
ec0f1088ce Version 3.6.2.
- Fix photo changing in settings, groups and channels.
- Fix non-square animated video-stickers.
2022-03-27 19:14:33 +04:00
23rd
51cb234b37 Moved menu item with check to td_ui. 2022-03-27 17:59:50 +03:00
23rd
2846aa2f77 Moved SendMenu to separated folder. 2022-03-27 17:59:30 +03:00
John Preston
1bd4595bba Fix photo changing in settings / groups / channels. 2022-03-27 18:56:05 +04:00
23rd
49d090bb4c Added Escape hotkey to hide search messages in dialogs. 2022-03-27 18:56:05 +04:00
23rd
307894415f Added support of close prevention for search messages in dialogs. 2022-03-27 18:56:05 +04:00
Ilya Fedin
1f4ea8414b Update tg_owt commit in snap 2022-03-27 12:38:45 +04:00
Ilya Fedin
680dee14a1 Update snap to Qt 6.2.4 2022-03-27 12:38:45 +04:00
Ilya Fedin
e036f7503a Update Docker to Qt 6.2.4, get rid of Qt 5 support 2022-03-27 12:38:45 +04:00
Ilya Fedin
129c58370a Synchronize ffmpeg decoder flags in Docker with other platforms 2022-03-27 12:38:45 +04:00
Ilya Fedin
93e9eedfae Update media viewer window flags
1. FramelessWindowHint seem to be a redudant leftover of BypassWindowManagerHint, media viewer uses fullscreen state now that implies lack of the frame
2. MaximizeUsingFullscreenGeometryHint is useless since media viewer doesn't use maximize
3. Transient parent/window modality dance is replaced with minimum/maximum size just like in other places where tiling shouldn't be done
4. setWindowState(WindowFullScreen) is replaced with showFullScreen that ensures the flag is set on each show
2022-03-24 16:05:32 +04:00
John Preston
bf3fbd4141 Build FFmpeg with av1 and vp8 on macOS. 2022-03-23 10:28:53 +04:00
23rd
069413c19c Added caching of result of search messages in dialogs. 2022-03-23 10:03:43 +04:00
23rd
03c5e67047 Fixed focus of field in search messages in HistoryWidget. 2022-03-23 10:03:43 +04:00
23rd
df38dde296 Added search messages to HistoryWidget. 2022-03-23 10:03:43 +04:00
23rd
a141a9404f Added list of result of search messages in dialogs. 2022-03-23 10:03:43 +04:00
23rd
4e7ff63c53 Added support of search messages for migrated histories. 2022-03-23 10:03:43 +04:00
23rd
a1d21cf452 Added ability to search messages from specific peer in dialogs. 2022-03-23 10:03:43 +04:00
23rd
89ab23e70f Removed Ui::show from ShowSearchFromBox. 2022-03-23 10:03:43 +04:00
23rd
38abfacd88 Added ability to open calendar from search messages in dialogs. 2022-03-23 10:03:43 +04:00
23rd
69e37ad978 Added initial implementation of search of messages in dialogs. 2022-03-23 10:03:43 +04:00
23rd
12fbb53ada Added initial implementation of separated api class for message search. 2022-03-23 10:03:43 +04:00
John Preston
41eb223bbf Render NV12 in OpenGL from hwaccel without swscale. 2022-03-23 10:03:43 +04:00
John Preston
0dca556843 Use FFmpeg hardware acceleration in media viewer / PiP. 2022-03-23 10:03:38 +04:00
John Preston
207cb35c55 Report how much memory was requested on OOM. 2022-03-23 10:00:02 +04:00
c0re100
0f05a1fd63 Fix incorrect admin log
Type: Restricted to Left
2022-03-23 09:44:35 +04:00
Ilya Fedin
c6d7270bbc Update submodules and patches 2022-03-23 09:42:51 +04:00
Ilya Fedin
36282c450e Log media viewer geometry on show 2022-03-23 09:42:51 +04:00
Ilya Fedin
e5d8a1aa3c Use QWidget::screen/QWidget::mask instead of QWindow ones 2022-03-23 09:42:51 +04:00
Aokromes
a3877570fe fix case
closes https://github.com/telegramdesktop/tdesktop/issues/24232
2022-03-23 09:41:14 +04:00
Ilya Fedin
1e744efef8 Replace setMinimumWidth with updateMinimumSize in Window::MainWindow
There's no RpWindow::setMinimumWidth
2022-03-23 09:40:28 +04:00
John Preston
32eca14a81 Add icons to report reason selectors. 2022-03-22 09:18:17 +04:00
Ilya Fedin
5e02da6fb7 Update cmake_helpers 2022-03-21 10:15:40 +04:00
Ilya Fedin
49e143f84e Synchronize capture source chooser's screen detection code with media viewer 2022-03-21 10:15:40 +04:00
Ilya Fedin
3967e5d4ff Synchronize PiP's screen detection code with media viewer 2022-03-21 10:15:40 +04:00
John Preston
a943a993cb Fix layout in the info edit page. 2022-03-21 09:37:30 +04:00
23rd
964b0f4f79 Moved MultiSelect to td_ui. 2022-03-20 10:24:10 +03:00
23rd
cd97495208 Moved out MultiSelect::Item from header. 2022-03-20 10:24:10 +03:00
23rd
354584e1b1 Moved out MultiSelect::Inner from header. 2022-03-20 10:24:10 +03:00
23rd
0a35931d0b Returned ability to schedule livestreams to admins. 2022-03-19 09:14:16 +03:00
John Preston
2c6971e91f Fix rendering selected webm stickers. 2022-03-18 20:41:25 +04:00
John Preston
a877c21d94 Update submodules. 2022-03-18 20:39:49 +04:00
John Preston
dce976d1f9 Fix non-square webm stickers display.
Fixes https://bugs.telegram.org/c/15686
2022-03-18 20:09:07 +04:00
John Preston
eec2992be5 Version 3.6.1: Fix video-from-webpage-preview download. 2022-03-16 20:14:50 +04:00
John Preston
81f9d043d0 Version 3.6.1.
- Change volume for RTMP stream from the context menu.
- Set a profile photo from your camera.
- Improve RTMP stream full screen mode.
- Improve edit account section design.
- Fix switching personal account or channel in video chats.
- Fix pinning chats in folders with 100 chats.
- Fix YouTube timestamp links after 10 hours.
2022-03-16 19:26:18 +04:00
John Preston
e599c829e5 Don't limit possible YouTube video duration.
Fixes #24167.
2022-03-16 19:16:17 +04:00
John Preston
db6a9b0354 Improve name elision in the main menu cover. 2022-03-16 11:23:37 +04:00
John Preston
4f44692ae8 Fix name elision in settings information edit. 2022-03-16 11:20:39 +04:00
John Preston
33d87a3ffe Remove unneeded divider from Advanced settings. 2022-03-16 11:06:44 +04:00
John Preston
efdc39a273 Fix reply-to names in forwarded messages. 2022-03-16 11:02:45 +04:00
23rd
03d9876c8a Replaced one side forced origin with vertical one in ShareBox. 2022-03-16 09:29:51 +03:00
John Preston
22dc842705 Gray unread reaction mention in muted chats. 2022-03-16 10:11:16 +04:00
John Preston
13106d781e Fix icon for username edit in settings. 2022-03-16 09:48:21 +04:00
John Preston
47ddd075f1 Improve info layer title position. 2022-03-16 09:41:05 +04:00
Ilya Fedin
4e090fcfda Get media viewer screen by checking the screen by active window position
QWindow::screen seem to be buggy on Windows and doesn't always follow window moves
2022-03-16 09:23:43 +04:00
Ilya Fedin
b32b10a4e1 Update KDE frameworks to 5.92.0 2022-03-16 09:22:33 +04:00
John Preston
3823bf9c0d Fix possible crash in replies (overlapping ids). 2022-03-15 20:29:32 +04:00
John Preston
bde3da53b6 Improve fullscreen RTMP streams. 2022-03-15 19:41:16 +04:00
John Preston
b087688349 Fix build on Windows. 2022-03-15 19:41:06 +04:00
23rd
c9ebec1cf0 Removed base/observer.h from main pch.
Removed unused inheritances from base::Subscriber.
2022-03-15 18:02:30 +03:00
23rd
b14b1a415f Removed Q_OBJECT from Dialogs::Widget. 2022-03-15 18:02:30 +03:00
23rd
c96b2081c4 Removed Q_OBJECT from Dialogs::InnerWidget. 2022-03-15 18:02:30 +03:00
23rd
72ecc286dc Replaced timer for dragging scroll in Dialogs::Widget with manager. 2022-03-15 18:02:30 +03:00
23rd
6793d2cc7c Moved base::Timer to std::unique_ptr in DraggingScrollManager. 2022-03-15 18:02:30 +03:00
23rd
0e6c036fa2 Moved Ui::SelectScrollManager to lib_ui. 2022-03-15 18:02:30 +03:00
23rd
bbc72f752a Provided separated style for general labels in ShareBox. 2022-03-15 18:02:30 +03:00
23rd
0b336a2954 Fixed sending animation from inline bots with unexpected result type. 2022-03-15 18:02:30 +03:00
John Preston
34f6c6b23f Fix video message frame request.
Fixes #24190.
2022-03-15 17:33:23 +04:00
John Preston
435d451f3f Change the userpic locally while uploading. 2022-03-15 17:00:17 +04:00
John Preston
b8028886b0 Add upload photo button to Edit Info settings. 2022-03-15 16:35:28 +04:00
John Preston
f31be7784b Redesign edit account settings page. 2022-03-15 15:12:49 +04:00
John Preston
a2ac9e10e2 Fix camera capture DCHECKs in tg_owt on Windows. 2022-03-14 17:25:14 +04:00
John Preston
728155f0d8 Disable speaker link sharing in RTMP streams. 2022-03-14 13:45:05 +04:00
John Preston
b1281c7999 Use Yes / No in "Cancel uploading?" confirm box. 2022-03-14 13:45:05 +04:00
John Preston
616f4e4027 Allow volume changing in RTMP stream context menu. 2022-03-14 13:45:05 +04:00
23rd
0529aea194 Simplified condition to provide sending animation from inline results. 2022-03-14 11:57:34 +03:00
23rd
3cb595c3c9 Added ability to set profile photo from camera. 2022-03-14 11:57:34 +03:00
John Preston
3b9ac19482 Allow pinning chats in folders when 100 added. 2022-03-14 11:11:17 +04:00
John Preston
d1a913450a Allow using mono icons in experimental settings. 2022-03-14 10:20:36 +04:00
John Preston
c03e15979c Fix changing personal account / channel in group calls. 2022-03-14 09:44:11 +04:00
John Preston
f90f5aa0c2 Fix menu toggle order in group calls. 2022-03-14 09:44:11 +04:00
John Preston
e84bfe0420 Fix build for Windows Store. 2022-03-12 09:06:50 +04:00
John Preston
9c57e31256 Version 3.6: Fix build with GCC. 2022-03-11 17:09:18 +04:00
John Preston
0c03070109 Fix build for macOS. 2022-03-11 16:39:18 +04:00
John Preston
b40f6577a6 Version 3.6.
- Active and recently finished downloads pop up
in bar in the bottom left corner, like they do in browsers.
- View recently downloaded files in Settings > Advanced > Downloads.
- Get an alert before closing the app if you have unfinished downloads.
- Share a direct t.me link to your phone number
that instantly opens a chat with you.
- Use the full number in international format,
like t.me/+123456789
- Manage Live Streams in your channels using external software
like OBS Studio or XSplit Broadcaster.
- Choose "Stream With..." when staring a video chat or live stream,
then copy your Stream Key and paste it into your streaming software.
2022-03-11 15:54:55 +04:00
John Preston
c7398c631d Attempt to fix building with GCC. 2022-03-11 15:54:55 +04:00
John Preston
95f5f28906 Add search to the Downloads section. 2022-03-11 15:14:07 +04:00
John Preston
5be72e8ce2 Just compute scheduled ids instead of a lookup. 2022-03-11 11:25:30 +04:00
John Preston
1833fac094 Make scheduled message ids determenistic.
Fixes #6686.
2022-03-11 11:05:02 +04:00
John Preston
1bc438ed01 Support "Delete all files" menu in Downloads section. 2022-03-11 09:56:29 +04:00
John Preston
32d09f189b Use rpl::empty instead of rpl::empty_value(). 2022-03-11 09:56:29 +04:00
Ilya Fedin
437fe4ba82 Set path to mozjpeg in snap for tdesktop 2022-03-10 17:11:41 +04:00
John Preston
e7b437980e Update submodules. 2022-03-10 14:20:01 +04:00
John Preston
a46329f796 Update "trade" folder icon. 2022-03-09 17:55:20 +04:00
John Preston
6805259f74 Don't recompress some JPEGs when sending as photos.
If JPEG is saved in progressive mode and has bpp <= 4
and max(width, height) <= 1280 then we send original bytes.
2022-03-09 17:37:51 +04:00
John Preston
e84ebc2a5c Fix download bar appearing after account switch. 2022-03-09 16:02:27 +04:00
John Preston
602e7a7164 Warn on quit if downloading files. 2022-03-09 15:36:14 +04:00
John Preston
6dd720b76e Don't show downloads bar while message is visible. 2022-03-09 14:52:44 +04:00
John Preston
f1064e2d2f Fix crash in downloads bar. 2022-03-09 08:53:15 +04:00
John Preston
6e00b4636b Move Qt 5 version to 5.15.3 open source. 2022-03-08 22:24:31 +04:00
John Preston
1bdada3cfc Beta version 3.5.6.
- Show viewers count in RTMP streams.
- Send GIFs search results without "via @bot".
- Display the file thumbnail in downloads bar.
- Always try to save original photo bytes to disk.
- Fix crash when deleting a user from your contacts list.
2022-03-08 21:25:48 +04:00
John Preston
ceb5e63166 Fix Picture-in-Picture shadow on scale > 2x. 2022-03-08 19:00:17 +04:00
John Preston
445b6e0f90 Remove persistent recording display (for debug). 2022-03-08 18:49:56 +04:00
John Preston
a29d1816c9 Fix Picture-in-Picture resize on macOS. 2022-03-08 18:20:02 +04:00
John Preston
aa83b9e3fd Fix build with Xcode. 2022-03-08 18:20:02 +04:00
John Preston
8259f74074 Fix notifications settings in dark system themes. 2022-03-08 18:20:02 +04:00
John Preston
3644dfd6fc Show viewers count in RTMP streams. 2022-03-08 18:16:59 +04:00
John Preston
1aa8029a8a Improve notification preview settings design. 2022-03-08 15:24:02 +04:00
John Preston
4054bae9be Update file download / cancel icons. 2022-03-08 15:24:02 +04:00
23rd
2d28d795cf Replaced PinMessageBox with generic box. 2022-03-08 12:43:00 +03:00
23rd
2b8eefccca Returned Enter shortcut to confirm box. 2022-03-08 12:43:00 +03:00
23rd
ffc0e04a1e Fixed state stuck after canceling of box of stream scheduling. 2022-03-08 12:43:00 +03:00
Ilya Fedin
6fd02ccbae Match socket length check with Qt 2022-03-08 12:41:38 +04:00
John Preston
cbe7b5f61b Fix finished downloads bar hiding. 2022-03-07 19:52:54 +04:00
John Preston
bde79210ca Support single download file thumbnail display. 2022-03-07 18:10:01 +04:00
John Preston
c04a789d70 Fix video decoding in some RTMP streams. 2022-03-07 16:59:50 +04:00
John Preston
b90524357e Improve download bar finished state. 2022-03-07 13:33:29 +04:00
John Preston
7e617b7f39 Fix camera preview in Calls Settings. 2022-03-07 12:33:48 +04:00
John Preston
98f2f6d4c0 Always try to save original photo bytes to disk. 2022-03-07 11:09:14 +04:00
John Preston
173fdf8056 Send GIFs search results without "via @bot". 2022-03-07 11:09:14 +04:00
John Preston
eb72b1a925 Add some more assertions for a crash debug. 2022-03-07 11:09:14 +04:00
23rd
63b5eb66ff Provided Window::SessionController to FastShareMessage. 2022-03-06 18:11:47 +03:00
23rd
b9f6591734 Moved out FastShareMessage from history_message. 2022-03-06 18:11:47 +03:00
23rd
b5ab222e64 Provided full style to share box from group calls. 2022-03-06 18:11:47 +03:00
23rd
fa50a5962c Removed Window::SessionNavigation from ShareBox. 2022-03-06 18:11:47 +03: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
f721f5edcf Added ability to provide style of schedule box to share box. 2022-03-06 18:11:47 +03:00
23rd
dd6501ef8f Added ability to provide style to schedule box. 2022-03-06 18:11:47 +03:00
23rd
5298cf0e52 Added ability to provide style to box for choosing date and time. 2022-03-06 18:11:47 +03:00
23rd
239c617818 Added ability to provide some style color to calendar box. 2022-03-06 18:11:47 +03:00
23rd
fa1c2e9dbc Provided parent for toasts in some boxes for peer editing. 2022-03-06 18:11:47 +03:00
23rd
972b421fc6 Delegated display of ShareInviteLinkBox to caller. 2022-03-06 18:11:47 +03:00
23rd
d9cdff3e6e Provided parent for toast to CopyInviteLink. 2022-03-06 18:11:47 +03:00
23rd
71ee2de354 Delegated display of InviteLinkQrBox to caller. 2022-03-06 18:11:47 +03:00
23rd
dc6788706c Delegated display of RevokeLinkBox to caller. 2022-03-06 18:11:47 +03:00
23rd
905a7e6346 Added simple PeerListDelegate to show content. 2022-03-06 18:11:47 +03:00
23rd
9dccc12734 Delegated display of EditLinkBox to caller. 2022-03-06 18:11:47 +03:00
23rd
b18d665fbe Delegated display of DeleteLinkBox to caller. 2022-03-06 18:11:47 +03:00
23rd
5ddb9f9097 Delegated display of ShowInviteLinkBox to caller. 2022-03-06 18:11:47 +03:00
23rd
f48cf2e27a Provided instance of Ui::Show to AddPermanentLinkBlock. 2022-03-06 18:11:47 +03:00
23rd
c56c0e3232 Removed Ui::show from EditPeerTypeBox. 2022-03-06 18:11:47 +03:00
John Preston
a2e57de3a3 Fix crash in delete contact box creation. 2022-03-06 14:44:12 +04:00
John Preston
1557b356f4 Beta version 3.5.5: Fix build on macOS. 2022-03-06 01:17:07 +04:00
John Preston
dc9ef43625 Beta version 3.5.5.
- Support stereo audio output in RTMP streams.
- Improve RTMP stream full screen mode.
- Fix a couple of crashes.
2022-03-05 21:23:57 +04:00
23rd
0f00d90c29 Removed unused argument when pin animation in touchbar is cancelled. 2022-03-05 17:43:49 +03:00
23rd
a61ad9e2a2 Fixed possible crash in sending animation when message view is lost. 2022-03-05 17:19:38 +03:00
John Preston
d2d41f978d Update Qt to 6.2.3 on macOS and Linux. 2022-03-05 17:04:10 +04:00
wangxiangqing
1ddc0c1977 Fix dir separator on windows
Change-Id: I4afe534c826127e11163f716612d62ea44705448
2022-03-05 16:54:46 +04:00
Ilya Fedin
b39e4a3138 Do not call CloseNotification for activatable services
If the notification daemon is an activatable GApplication service (e.g.
on Mate), then the notification daemon may terminate a short time after
the notification has vanished (usually 15s). In that case the
notification daemon may reuse notification IDs, which is incompatible
with our notification clearing.
Also the service may not be running at all, when we call the
CloseNotification endpoint.

To fix this, we simply disable the entire notification history clearing
functionality on such desktops by proactively clearing all notification
references from our internal notification manager.

Signed-off-by: Magnus Groß <magnus.gross@rwth-aachen.de>
2022-03-05 16:51:02 +04:00
Magnus Groß
4dd14b81e1 Do not remove notification reference on NotificationClosed
In general we need to keep a reference to the notification id, so that
we can delete the notification later from history - unless the
NotificationClosed reason was that the user actively dismissed it, in
which case it is not kept in history anyway (so we can dismiss our
reference too).

-- Background --
Some desktop environments such as KDE keep a history of notifications.
An API is provided to delete notifications from that history by calling
the org.freedesktop.Notifications.CloseNotification endpoint with the ID
of that notification. If the notification was already closed (timed
out), then this will delete the notification from history.

The intent is to clear these notifications from the notification history
as soon as a chat with notifications originating from that person is
opened, as the user is then not interested anymore in those
notifications and to prevent unnecessary clutter in the history widget.
It is also cleared when the chat is read on another device.

-- Problem --
Telegram already has all the code in place to support this
functionality, but unfortunately this did not work on Linux before,
because we listen to the NotificationClosed signal and remove our
reference to the notification id from our internal manager as soon as we
get that signal. This means that we do not clear that notification from
history once we open the chat with that person (unless we open the chat
before the notification has timed out, i.e. if we didn't get the
NotificationClosed signal).

-- Fix --
To fix this, we keep our notification reference (if the notification was
not dismissed by the user), which means that our reference will be kept
around until we open the chat with that person (or close Telegram
entirely).

Since all the needed functionality for deleting notifications was
already in place, this patch is quite short as we only need to keep the
reference around longer than we did before this patch.

Note also that code is already in place to clear notifications for
messages that were read on another device: History::inboxRead() calls
Core::App().notifications().clearIncomingFromHistory()

Fixes #17111
2022-03-05 16:51:02 +04:00
Ilya Fedin
daaa654065 Get rid of unneeded MainWindow::Private class on Linux 2022-03-05 16:47:38 +04:00
Ilya Fedin
8db567ba7a Don't hold a dbus connection unecessarily in main window 2022-03-05 16:47:38 +04:00
Ilya Fedin
805e6de1dc Add global menu event hook on Linux just like on macOS 2022-03-05 16:47:38 +04:00
Ilya Fedin
ffbafcb5fb Get rid of Q_OBJECT in macOS MainWindow 2022-03-05 16:47:38 +04:00
Ilya Fedin
1c8d4ee7ab Get rid of Q_OBJECT in HistoryInner 2022-03-05 16:47:38 +04:00
23rd
f469cab7b0 Added disable-autoplay-next option. 2022-03-05 12:40:49 +03:00
23rd
c6cdf0a4c4 Fixed ability to send file to photo/video album from EditCaptionBox. 2022-03-04 18:58:07 +03:00
23rd
f74a75da75 Fixed display photo with modifications as file in attach media preview. 2022-03-04 18:58:07 +03:00
23rd
0e08cffedb Fixed error display in EditCaptionBox. 2022-03-04 18:58:07 +03:00
23rd
f57ef43dc7 Fixed minimal height of image thumbnail in EditCaptionBox. 2022-03-04 18:58:07 +03:00
John Preston
d5b9effd2e Improve title text in RTMP full screen. 2022-03-04 18:24:44 +04:00
John Preston
d36315104e Improve full screen RTMP streams. 2022-03-04 16:31:04 +04:00
John Preston
8678eef9e8 Fix download bar close in a hidden window.
Fixes #24132.
2022-03-04 15:37:50 +04:00
John Preston
76a2ae4714 Don't showFullScreen() from isMaximized() state. 2022-03-04 15:28:45 +04:00
John Preston
a6d59fccf4 Update icons for folders. 2022-03-04 14:25:25 +04:00
John Preston
37e5157d5a Improve "Pin on top" icon in RTMP streams. 2022-03-04 13:19:37 +04: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
28331b3617 Removed Ui::showPeerProfile from controller of ShowInviteLinkBox. 2022-03-04 11:25:10 +03:00
23rd
026045af17 Removed Ui::show from ManageInviteLinksBox. 2022-03-04 11:25:10 +03:00
23rd
bdb2a5f277 Removed Ui::show from EditAdminBox and EditRestrictedBox. 2022-03-04 11:25:10 +03:00
23rd
1f8f462461 Removed Ui::show from EditLinkedChatBox. 2022-03-04 11:25:10 +03:00
23rd
cacbc60302 Removed Ui::show from AddParticipants and AddSpecial box controllers. 2022-03-04 11:25:10 +03:00
23rd
093d2ae99b Removed Ui::show from ParticipantsBoxController. 2022-03-04 11:25:10 +03:00
23rd
e44b37e654 Added to PeerListDelegate methods to show content. 2022-03-04 11:25:10 +03:00
23rd
e0eec138d5 Removed Ui::hideLayer from ChangePhoneBox::EnterCode. 2022-03-04 11:25:10 +03:00
23rd
b0617711ed Removed Ui::hideLayer from PinMessageBox. 2022-03-04 11:25:10 +03:00
23rd
fd528aa1b7 Removed Ui::show from window peer menu functions. 2022-03-04 11:25:10 +03:00
23rd
4fff812910 Moved out importChatInvite from ApiWrap. 2022-03-04 11:25:10 +03:00
23rd
0f7b0c4227 Added ability to hide layer for specific window controller. 2022-03-04 11:25:10 +03:00
23rd
3ebb9af8f8 Removed Ui::hideSettingsAndLayer(). 2022-03-04 11:25:10 +03:00
23rd
bc6d69319c Provided window controller to box of converting channel to gigagroup. 2022-03-04 11:25:10 +03:00
23rd
6bcca6c94e Added Ui::Show implementation for Window::SessionController. 2022-03-04 11:25:10 +03:00
23rd
ed5b83bc62 Fixed unexpected copyright reason from top bar in sections. 2022-03-02 06:11:44 +03:00
John Preston
015c5d9618 Beta version 3.5.4: Fix build with Xcode. 2022-03-01 19:43:37 +03:00
John Preston
d608e046c5 Beta version 3.5.4.
- Bug fixes and other minor improvements.
2022-03-01 19:38:33 +03:00
John Preston
cfa60df134 Show "No languages found." label. 2022-03-01 19:35:37 +03:00
John Preston
5ad2900c9c Hide controls in full screen stream by timeout. 2022-03-01 19:12:51 +03:00
John Preston
dd5aeeb65a Show information about downloads from cloud. 2022-03-01 18:59:59 +03:00
John Preston
3262c2d1b9 Support select by drag in Downloads. 2022-03-01 18:55:35 +03:00
John Preston
aa3357eee1 Show connecting / proxy status above downloads.
Fixes #24125.
2022-03-01 18:39:08 +03:00
John Preston
0192edbe84 Handle documentLoadProgress instead of itemRepaintRequest. 2022-03-01 17:32:39 +03:00
John Preston
1f38ab1690 Make local storage clear buttons non-uppercase. 2022-03-01 17:01:08 +03:00
John Preston
d8724a63fb Fix pin livestream on top button position. 2022-03-01 16:15:40 +03:00
John Preston
bcbd97e515 Fix restart confirmation box cancel. 2022-03-01 16:15:23 +03:00
John Preston
616d099c07 Copy t.me/+phonenumber link from Phone Number Privacy. 2022-03-01 15:30:55 +03:00
John Preston
bea2cfd363 Support t.me/+phonenumber links. 2022-03-01 15:30:22 +03:00
John Preston
f7957a8903 Use better "Fix chats order" icon in support mode. 2022-03-01 14:28:08 +03:00
John Preston
b9685ec711 Correctly destroy Media::Capture::Inner. 2022-03-01 14:27:42 +03:00
John Preston
4cea79973f Fix Show In Finder window re-activation on macOS. 2022-03-01 14:22:29 +03:00
John Preston
7ee159b53d Fix check for IP revealing file names. 2022-03-01 14:06:31 +03:00
John Preston
8cd579d443 Show no stream channels warning even if we have a frame. 2022-03-01 13:59:02 +03:00
John Preston
6e9e289dd7 Move pin stream on top icon a bit. 2022-03-01 13:59:00 +03:00
John Preston
c6fc462361 Update folders_travel icon.
Fixes #24124.
2022-03-01 13:25:43 +03:00
John Preston
667e2e697e Support emoji in account names. 2022-03-01 13:25:42 +03:00
John Preston
dc6080b57b Fix crash in tgcalls. 2022-03-01 13:25:42 +03:00
23rd
2b79fd7e67 Fixed display of settings for viewers of RTMP stream. 2022-03-01 13:19:20 +03:00
23rd
319d661ce6 Reduced width of box for RTMP info. 2022-03-01 12:52:31 +03:00
23rd
00c4ab197d Fixed margins of copy buttons in RTMP info. 2022-03-01 12:52:31 +03:00
23rd
789c829bc2 Added dividers to settings of group call with RTMP info. 2022-03-01 12:52:31 +03:00
23rd
e44961e571 Fixed display of userpic for sponsored messages in channels. 2022-03-01 12:52:31 +03:00
23rd
da75e790ea Disabled mouse events for information about empty RTMP streams. 2022-03-01 12:52:31 +03:00
23rd
60be4b32be Improved design of context menu from top button in RTMP boxes. 2022-03-01 12:52:31 +03:00
23rd
13aa2196f4 Returned context menu to RTMP labels with custom style. 2022-03-01 12:52:31 +03:00
23rd
d1bb87ccec Added ability to provide custom style to Settings::AddSubsectionTitle. 2022-03-01 12:52:31 +03:00
23rd
e8f0be80bb Moved RTMP data to common struct. 2022-03-01 12:52:31 +03:00
GitHub Action
a049a62397 Update User-Agent for DNS to Chrome 98.0.4758.102. 2022-03-01 12:44:36 +03:00
John Preston
2917a53b75 Beta version 3.5.3: Fix build with GCC. 2022-02-28 23:25:55 +03:00
John Preston
5cacf8a8af Beta version 3.5.3: Fix build with Xcode. 2022-02-28 23:12:23 +03:00
Klemens Nanni
6decece009 Remove unused variables 2022-02-28 23:11:07 +03:00
John Preston
9f3f734b8c Beta version 3.5.3.
- Check the status of media and file downloads by clicking
on the new panel in the bottom of the chats list.
- View recently downloaded files
from the new Settings > Advanced > Downloads section.
- Manage Live Streams in your groups and channels
using external software like OBS Studio or XSplit Broadcaster.
2022-02-28 22:43:41 +03:00
John Preston
01a7db1953 Fix crash in tgcalls. 2022-02-28 22:37:24 +03:00
John Preston
55d850a615 Adjust default icon colors. 2022-02-28 22:37:10 +03:00
John Preston
de7c7aca6c Fix information about empty RTMP streams. 2022-02-28 22:36:08 +03:00
23rd
13f1ab7965 Added confirm box for stream key revoking from settings of group call. 2022-02-28 21:41:50 +03:00
John Preston
d49649b3a3 Fix label updating in RTMP settings. 2022-02-28 21:13:46 +03:00
John Preston
7a602690bb Show information about absent RTMP stream. 2022-02-28 21:10:49 +03:00
23rd
6d46590312 Added ability to disable context menu for RTMP labels. 2022-02-28 20:55:49 +03:00
23rd
069a2814fc Added ability to revoke stream key from settings of group call. 2022-02-28 20:41:45 +03:00
23rd
1f18c9a273 Added RTMP info to settings of group call. 2022-02-28 20:26:24 +03:00
Nicholas Guriev
436622ad7c Fix build against FFmpeg v5.0
It has been released on January 17th. This patch keeps source compatibility
with older versions.
2022-02-28 20:22:18 +03:00
Ilya Fedin
f4f7b5b99c Hide the window instantly within autostart
Unnecessary minimize triggers animation that provides a sign there were a window. There's also seem to be queuing of hide on Linux that makes the effect even more noticable and it seems the bug this workaround was made for no longer reproduces.
2022-02-28 20:22:01 +03:00
Ilya Fedin
b9519dd5b9 Try to react to move events in media viewer, again
This time with a weaker geometry check
2022-02-28 20:20:25 +03:00
John Preston
4b93f58d2f Pin RTMP stream on top. 2022-02-28 20:06:54 +03:00
John Preston
282b3592c2 Show toast about jump-to non-existent message. 2022-02-28 19:53:14 +03:00
John Preston
71228eae59 Show user name when deleting all messages from user. 2022-02-28 19:45:19 +03:00
John Preston
38600d8189 Update submodules. 2022-02-28 19:43:51 +03:00
John Preston
78e42bbae3 Add support for Clipperton Island flag emoji. 2022-02-28 19:43:36 +03:00
John Preston
8c6521e382 Enlarge padded title controls hit area.
Fixes #23933.
2022-02-28 19:12:52 +03:00
John Preston
3cf330134b Keep RTMP url / key in Calls::GroupCall. 2022-02-28 17:29:08 +03:00
John Preston
6d1106bc9f Fix recording mark click handler. 2022-02-28 17:08:42 +03:00
23rd
40d97bc6a4 Added ability to start video chat with RTMP as well. 2022-02-28 16:54:08 +03:00
23rd
7cea4efac1 Removed ability to select hidden stream key. 2022-02-28 16:54:08 +03:00
John Preston
fc5ed46b40 Toggle fullscreen by mute button in RTMP streams. 2022-02-28 16:51:14 +03:00
John Preston
25e29d3dd5 Hide members in RTMP streams. 2022-02-28 13:52:49 +03:00
John Preston
39c10b9e1c Move chat name with icon to the left. 2022-02-28 13:52:32 +03:00
John Preston
e7b5ab56e0 Handle getGroupCallStreamChannels errors. 2022-02-28 13:19:04 +03:00
John Preston
e109b9e279 Update tgcalls. 2022-02-28 12:55:35 +03:00
John Preston
664774f474 Fix group call bar with requests bar. 2022-02-28 12:53:50 +03:00
John Preston
05be9d72b8 Fix crash on bad_function_call in ChooseJoinAsProcess. 2022-02-28 12:52:23 +03:00
John Preston
8d575a5fbf Fix rtmp stream current time request. 2022-02-28 12:51:17 +03:00
23rd
ed90891607 Fix build with Xcode. 2022-02-28 11:15:30 +03:00
23rd
592f47a751 Removed Calls::Group::ConfirmBoxBuilder. 2022-02-28 09:08:01 +03:00
23rd
df125bac19 Removed Ui::ConfirmDontWarnBox. 2022-02-28 09:08:01 +03:00
23rd
e6da3cf845 Removed old implementation of Ui::ConfirmBox. 2022-02-28 09:08:01 +03:00
23rd
5718789d53 Replaced Ui::InformBox and Ui::ConfirmBox with GenericBox. 2022-02-28 09:08:01 +03:00
23rd
d5a44a2ba4 Removed mutable lambdas from controller of privacy settings. 2022-02-28 08:08:32 +03:00
23rd
2d36079999 Removed mutable lambdas from export controller. 2022-02-28 08:08:32 +03:00
23rd
bb78c43de5 Removed mutable lambdas from window peer menu. 2022-02-28 08:08:32 +03:00
23rd
1394b1d56f Added ConfirmBox implementation with GenericBox. 2022-02-28 08:08:32 +03:00
23rd
6478b7b129 Added menu to HistoryView::TopBarWidget for starting of livestream. 2022-02-28 08:05:02 +03:00
23rd
8909b654d3 Added ability to start livestream with RTMP. 2022-02-28 08:05:02 +03:00
23rd
97dbb98862 Added ability to schedule live stream without "Join As" choosing. 2022-02-28 08:04:46 +03:00
23rd
166d844d55 Divided showing of peer menu from top bar into two methods. 2022-02-28 08:04:46 +03:00
23rd
a3d00b1953 Replaced args for Calls::Instance::startOrJoinGroupCall with struct. 2022-02-28 08:04:46 +03:00
23rd
f2f4f9b24b Divided ChooseJoinAsProcess::start into methods. 2022-02-28 08:04:46 +03:00
John Preston
40ed4559c4 Update API scheme on layer 139. 2022-02-27 20:26:52 +03:00
John Preston
a61048d219 Fix scroll state management in Downloads. 2022-02-27 20:26:52 +03:00
John Preston
bff8313a37 Use nice media names in Downloads. 2022-02-27 20:26:52 +03:00
John Preston
dde4868540 Add phrases to lang.string. 2022-02-27 20:26:52 +03:00
John Preston
147d2e1934 Show all entries as files in Downloads. 2022-02-27 20:26:52 +03:00
John Preston
e89c95551f Show correct downloads elements context menu. 2022-02-27 20:26:52 +03:00
John Preston
daadf7e2a1 Allow goToMessageClickHandler to switch accounts. 2022-02-27 20:26:52 +03:00
John Preston
5ddcf402bc Show download start date in Downloads section. 2022-02-27 20:26:52 +03:00
John Preston
57f17b7afe Save and restore downloads between launches. 2022-02-27 20:26:52 +03:00
John Preston
3425dc027c Show downloaded files in Downloads. 2022-02-27 20:26:52 +03:00
John Preston
1f2eba9dc9 Fix empty state of Downloads section. 2022-02-27 20:26:52 +03:00
John Preston
1710863231 Update some icons. 2022-02-27 20:26:52 +03:00
John Preston
aa012b6d0b Update tgcalls. 2022-02-27 20:26:50 +03:00
23rd
1da5e7d1f7 Added ability to chose copyright as reason for message report. 2022-02-25 19:41:16 +03:00
23rd
c0ae4b86a6 Provided Window::SessionController to ShareGameScoreByHash. 2022-02-25 19:41:16 +03:00
23rd
ca7f4ffed9 Removed Ui::show from Settings::SessionsContent. 2022-02-25 19:41:16 +03:00
23rd
78f7ea0c9d Provided click handler context for general urls in profile info as well. 2022-02-25 19:41:16 +03:00
23rd
ed14e47389 Renamed BoxContent::onScrollToY to BoxContent::scrollToY. 2022-02-25 19:41:16 +03:00
23rd
06d5d8859a Added extracting of session controller from context for custom urls. 2022-02-25 19:41:16 +03:00
23rd
add6352012 Provided primary MainWindow as default parent for toasts. 2022-02-25 19:41:16 +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
23rd
9bc48f4aba Fixed links position of inline keyboard when reactions aren't in bubble. 2022-02-25 19:41:16 +03:00
23rd
4f6776eeaa Provided video start position to OverlayWidget. 2022-02-25 19:41:16 +03:00
23rd
4dee21c0e6 Added userpics support to sponsored messages. 2022-02-25 19:41:16 +03:00
23rd
2e40798e8e Added simple animation of GIFs sending. 2022-02-25 19:41:16 +03:00
23rd
0dc2e1a5ae Migrated SendingInfoTo from using of end geometry to end point. 2022-02-25 19:41:16 +03:00
23rd
6939da2fd2 Fixed simple animation of message sending with custom chat themes. 2022-02-25 19:41:16 +03:00
23rd
a0a857a6db Added simple animation of stickers sending from autocomplete field. 2022-02-25 19:41:16 +03:00
23rd
0a2fbb0d70 Added simple animation of stickers sending from inline bots. 2022-02-25 19:41:16 +03:00
23rd
2632ec45bd Added support to skip parts of gifs drawing. 2022-02-25 19:41:16 +03:00
23rd
9d164dc33c Added clearing of message sending animations on escape from section. 2022-02-25 19:41:15 +03:00
23rd
cf5f5f75bc Added permanent info display to webm stickers with right action. 2022-02-25 19:41:15 +03:00
23rd
40875ac8ff Added simple animation of static stickers sending to replies section. 2022-02-25 19:41:15 +03:00
23rd
e72be4abfc Removed cache from sending animation. 2022-02-25 19:41:15 +03:00
23rd
4cebccd6dc Simplified drawing of surrounding info in sending animation. 2022-02-25 19:41:15 +03:00
23rd
afdfe1c2e8 Added ability to provide custom view to sending animation controller. 2022-02-25 19:41:15 +03:00
23rd
abbfdf211b Added surrounding info to simple animation of stickers sending. 2022-02-25 19:41:15 +03:00
23rd
d633860e1d Added simple animation of static stickers sending. 2022-02-25 19:41:15 +03:00
23rd
b46adec413 Added initial controller of message sending animations. 2022-02-25 19:41:15 +03:00
23rd
cb7da60ec7 Added ability to send existing media with pre-generated local msgId. 2022-02-25 19:41:15 +03:00
23rd
298c5026be Added ability to count inner geometry in HistoryView::Element. 2022-02-25 19:41:15 +03:00
23rd
7cd14b8c4e Renamed anim::interpolateF to anim::interpolateToF. 2022-02-25 19:41:15 +03:00
John Preston
1de35cf8ef Support receiving RTMP streams in group calls. 2022-02-25 19:41:15 +03:00
John Preston
9d200017c3 Support two new message report reasons. 2022-02-25 19:41:15 +03:00
John Preston
e962036889 Update API scheme to layer 139. 2022-02-25 19:41:15 +03:00
John Preston
45398bb54e Update tgcalls with streams support. 2022-02-25 19:41:15 +03:00
John Preston
e6294f48de Track all required sessions notifications. 2022-02-25 19:41:15 +03:00
John Preston
93c6038992 Start showing downloading items in Downloads. 2022-02-25 19:41:15 +03:00
John Preston
0be320a6c7 Export media, updates and stream parts through media cluster. 2022-02-25 19:41:15 +03:00
John Preston
0c627e7ca0 Open "Downloads" from the download bar. 2022-02-25 19:41:15 +03:00
John Preston
91c46dbc85 Allow Info::Media::ListWidget use different data providers. 2022-02-25 19:41:15 +03:00
John Preston
eefb9823e1 Don't apply theme accent color to the settings icons. 2022-02-25 14:14:44 +03:00
John Preston
ffd65e1fe4 Fix slide animations with new layer rounding. 2022-02-25 14:14:43 +03:00
John Preston
1a664edd39 Initial implementation of download progress bar. 2022-02-25 14:14:43 +03:00
John Preston
e8a7e86f41 Update menu icons. 2022-02-25 14:14:43 +03:00
John Preston
e4a7c01541 Move window_outdated_bar to td_ui subproject. 2022-02-25 14:14:43 +03:00
John Preston
280d79fecc Add observing Data::DownloadManager. 2022-02-25 14:14:43 +03:00
John Preston
7718764294 Save original bytes of a photo on "Save to disk". 2022-02-25 14:14:43 +03:00
John Preston
c39f15bd71 Fix build with VS 2022 17.1. 2022-02-25 14:14:43 +03:00
John Preston
f5b8683b33 Add some icons to Advanced settings. 2022-02-25 14:14:43 +03:00
John Preston
3c2caeb43a Adjust Notifications settings to the mockup. 2022-02-25 14:14:43 +03:00
John Preston
1c060f40c1 Increase minimal main menu footer height. 2022-02-25 14:14:42 +03:00
John Preston
d15af0c5f0 Use red chats list badge for unread reactions. 2022-02-25 14:14:42 +03:00
John Preston
6daa267329 Adjust privacy edit boxes to the mockup. 2022-02-25 14:14:42 +03:00
John Preston
c5d7889ac9 Adjust username change box to the mockup. 2022-02-25 14:14:42 +03:00
John Preston
d7c63b85ed Simplify main menu cover according to the mockup. 2022-02-25 14:14:42 +03:00
John Preston
adb25d65c2 Use shortened count for unread badges in main menu. 2022-02-25 14:14:42 +03:00
John Preston
4af02d3d00 Add "Archived chats" unread badge to the main menu. 2022-02-25 14:14:42 +03:00
John Preston
bce19c7151 Adjust main menu accounts to the mockup. 2022-02-25 14:14:42 +03:00
John Preston
7c5d27d7ce Add "Telegram Features" to the main settings page. 2022-02-25 14:14:42 +03:00
John Preston
2e435f07a3 Make "Archived chats" a normal menu item. 2022-02-25 14:14:42 +03:00
John Preston
3ad978fc72 Adjust main menu geometry to the mockup. 2022-02-25 14:14:41 +03:00
John Preston
9c581d63ea Adjust main menu icons to the mockup. 2022-02-25 14:14:41 +03:00
John Preston
1501a6d8fc Don't check config.phonecalls_enabled value. 2022-02-25 14:14:41 +03:00
John Preston
f57d21eaeb Add "Calls Settings" to the main settings section. 2022-02-25 14:14:41 +03:00
John Preston
9c903bacf2 Adjust main settings icons to the mockup. 2022-02-25 14:14:41 +03:00
John Preston
1468be0af4 Adjust main settings buttons geometry to the mockup. 2022-02-25 14:14:41 +03:00
John Preston
340db7662b Improve settings main cover. 2022-02-25 14:14:41 +03:00
John Preston
7b0513a1ea Improve box rounding and buttons. 2022-02-25 14:14:40 +03:00
Ilya Fedin
feb2d3066e Use RpWindow's method to set minimum window size 2022-02-22 18:15:05 +03:00
Ilya Fedin
5d5b964f4e Don't block main queue with drag operation 2022-02-22 12:45:35 +03:00
Ilya Fedin
9309f98094 Fix Hunspell spellchecking with Qt 6 2022-02-19 16:00:24 +03:00
Ilya Fedin
3a9f34e47b Disable some syscalls in snap Qt build 2022-02-15 19:32:45 +03:00
Ilya Fedin
d5521370f4 Update KDE frameworks and wayland-protocols 2022-02-15 19:31:56 +03:00
John Preston
95e806cb89 Play webm stickers only once if looping is disabled. 2022-02-10 19:11:21 +03:00
John Preston
b4a49de819 Fix possible incorrect links in service messages. 2022-02-10 19:11:21 +03:00
John Preston
4f4ef941c6 Move SendPreloadRequest out of HistoryWidget. 2022-02-10 15:20:37 +03:00
John Preston
7228752a01 Check only for existing unread reactions. 2022-02-10 14:09:22 +03:00
Ilya Fedin
145a610321 Update Qt to 6.2.3 in snap 2022-02-10 09:52:30 +03:00
John Preston
6ce3f9bb71 Version 3.5.2.
- Fix a freeze in audio playback on Linux.
- Fix a crash in screen sharing initialization on Linux.
2022-02-08 19:18:14 +03:00
John Preston
a5483a5113 Fix build on Linux. 2022-02-08 19:17:44 +03:00
John Preston
7f5e646db5 Disable PortalPreventAppSuspention for now.
A lot of freezing reports:
- https://bugs.telegram.org/c/14426
- XFCE X11, Ubuntu X11, XCinnamon X11 reports to support
- tdesktop/issues/24032
- tdesktop/issues/24043
2022-02-08 16:47:37 +03:00
John Preston
666251f23e Allow to set custom app icon on macOS. 2022-02-08 00:24:11 +03:00
John Preston
d89d8b09da Preload chats in support switch. 2022-02-08 00:24:11 +03:00
John Preston
0aa20b4479 Decrypt shiftedDcId / protocolDcId in mtp_ logs. 2022-02-07 15:26:26 +03:00
John Preston
8658dba97a Improve mtproto connections logging. 2022-02-07 14:44:00 +03:00
23rd
20c911651f Replaced universal initializers with constructors in Ui::Text::Link. 2022-02-06 18:29:38 +03:00
John Preston
bef20ba4a2 Fix loading libdrm before first use.
Fixes #24022.
2022-02-06 13:50:23 +03:00
John Preston
ee325031a0 Fix build without wayland integration. 2022-02-05 19:20:40 +03:00
John Preston
b57549546d Update lib_ui for the indexed links fixes. 2022-02-05 19:19:54 +03:00
23rd
1e4d278604 Fixed formatting text of pinned messages in service messages. 2022-02-05 18:39:43 +03:00
23rd
80aa596310 Fixed possible incorrect order of links in Ui. 2022-02-05 18:39:43 +03:00
John Preston
4913288061 Fix "Fix chats order" toggle in support mode. 2022-02-05 15:09:18 +03:00
John Preston
1a43cd8a67 Fix the date in the latest changelog entry. 2022-02-05 01:41:41 +03:00
John Preston
bcb0511083 Version 3.5.1: Fix build with MSVC. 2022-02-04 22:56:45 +03:00
John Preston
2dda044dd1 Fix crash in video message without a thumbnail. 2022-02-04 22:56:29 +03:00
John Preston
da18ab3d41 Fix group call settings button position. 2022-02-04 22:56:28 +03:00
John Preston
f26cae8807 Version 3.5.1.
- Keep the screen on while watching a video
or participating in a video chat.
- Save experimental settings between relaunches.
- Bug fixes and other minor improvements.
2022-02-04 22:20:17 +03:00
23rd
641bb01ba2 Added ability to set forward options from ShareBox. 2022-02-04 22:20:17 +03:00
John Preston
02c9b61840 Fix PowerSaveBlocker in case QWindow was destroyed. 2022-02-04 16:44:20 +03:00
Ilya Fedin
99e8d22c51 Move xdg-foreign support to lib_base 2022-02-04 16:31:40 +03:00
John Preston
cd9b3368da Don't request scheduled messages in channels I can't write to. 2022-02-04 09:50:12 +03:00
John Preston
f918c6bb83 Pass QWindow to PowerSaveBlocker. 2022-02-04 09:43:56 +03:00
gasinvein
28dff5ba6d Correct year in changelog for 2022 releases 2022-02-03 11:44:20 +03:00
John Preston
4d978f5b36 Add PowerSaveBlocker implementation for macOS. 2022-02-02 17:07:31 +03:00
John Preston
ef41878815 Fix date tooltip on outgoing messages. 2022-02-02 15:46:55 +03:00
John Preston
6a663932f3 Fix message viewers display in message reactions box. 2022-02-02 15:40:39 +03:00
John Preston
67c538ae8f Add AllowLinuxNvidiaOpenGL option. 2022-02-02 15:33:41 +03:00
John Preston
38137e16a0 Save / restore experimental settings in a json. 2022-02-02 12:05:33 +03:00
John Preston
9c01295521 Create PowerSaveBlocker-s on calls / video / audio. 2022-02-02 12:05:33 +03:00
Ilya Fedin
c7b6db00ca Build WebRTC without PipeWire support in snap
WebRTC no more supports PipeWire 0.2, so it's impossible to build PipeWire support until core22 runtime is released
2022-02-02 09:32:44 +03:00
Ilya Fedin
7f0bdc5d36 Fix desktop environment list deduplication 2022-02-02 09:23:14 +03:00
John Preston
5f6d8f74dd Warn about supergroup clearing history just for me. 2022-02-01 19:41:51 +03:00
John Preston
9086319b99 Update lib_ui for accounts reordering. 2022-02-01 19:41:29 +03:00
23rd
37cd4f51eb Added view-profile-in-chats-list-context-menu option. 2022-02-01 18:48:02 +03:00
23rd
74416568d6 Distributed tabbed-panel-show-on-click option to sections as well. 2022-02-01 18:48:02 +03:00
23rd
a8c3d6c39b Added ability to reorder accounts in MainMenu. 2022-02-01 18:48:02 +03:00
John Preston
5939c2dbfc Don't crash on no-frame with SUCCESS status. 2022-02-01 16:51:51 +03:00
John Preston
4bef1e9f59 Use unreliable video duration if open with audio. 2022-02-01 16:51:51 +03:00
John Preston
18bf48bf90 Fix possible crash in view button click handler. 2022-02-01 16:51:51 +03:00
John Preston
b415b293cf Fix crash from background access to style::icon-s. 2022-02-01 16:51:51 +03:00
John Preston
3a1bb1966d Fix comparator in tgcalls. 2022-02-01 16:51:51 +03:00
Ilya Fedin
d4b686ff65 Update tg_owt 2022-02-01 15:30:02 +03:00
Ilya Fedin
8148974e9f Update cmake_helpers 2022-02-01 14:42:21 +03:00
Ilya Fedin
eaa2573c66 Build ffmpeg without xlib as it was needed only for libva/vdpau 2022-02-01 14:42:21 +03:00
GitHub Action
4d315f8e61 Update User-Agent for DNS to Chrome 97.0.4692.99. 2022-02-01 14:42:05 +03:00
Ilya Fedin
e5981ed22b Move jemalloc initialization code to cmake_helpers 2022-02-01 14:41:54 +03:00
John Preston
eccaca8808 Version 3.5: Fix build with GCC. 2022-02-01 01:51:17 +03:00
John Preston
36e6c76b59 Version 3.5: Merge some lib_ui fixes. 2022-02-01 01:27:33 +03:00
John Preston
06c35f5b51 Version 3.5.
- Use a new type of detailed stickers with smooth animations.
- Create new sets by sending .webm videos to @stickers.
- Bring your custom animated stickers from other apps.
- See smaller, compact animations when reacting to messages.
- See real-time animations in chat when a user reacts to your message.
- React with additional emoji expressing love,
appreciation, anger or surprise.
- Tap the new button in chats to jump to your messages
that have unseen reactions.
- Watch the animations for unseen reactions play
when you hit the button.
- The app will warn you before closing
if you are uploading photos or files to a chat.
- Enjoy better screencast quality in video chats.
2022-02-01 00:51:00 +03:00
John Preston
ca21b7efae Allow disable Cmd+Q warning on macOS. 2022-02-01 00:43:20 +03:00
John Preston
9eb20ede33 Fix click area of web page preview article photo. 2022-02-01 00:26:52 +03:00
John Preston
656146c445 Improve ViewButton + Reactions view. 2022-02-01 00:26:34 +03:00
John Preston
2eb8ed59cc Update unread reaction icon to a heart. 2022-01-31 23:32:04 +03:00
John Preston
9d6eeace54 Fix quilt by system on macOS. 2022-01-31 23:16:56 +03:00
John Preston
315c85fb8d Always show unread mentions / reactions buttons. 2022-01-31 23:16:56 +03:00
John Preston
b7a70a2f28 Improve unread reactions list consistency. 2022-01-31 23:16:56 +03:00
John Preston
63bf564757 Reaction notifications only from non-blocked contacts. 2022-01-31 16:18:40 +03:00
John Preston
6a9c5818ba Show go-to-user buttons in t.me links preview. 2022-01-31 16:17:58 +03:00
John Preston
98e7de01b0 Improve naming in dialogs_layout module. 2022-01-31 16:17:34 +03:00
John Preston
8ef7325e16 No confirmation for graph.org / te.legra.ph domains. 2022-01-31 16:14:03 +03:00
John Preston
17de379145 Fix document thumbnails on Retina screens. 2022-01-31 13:18:52 +03:00
John Preston
eb784c665a Fix build with tg_owt@M98 on macOS. 2022-01-31 13:18:42 +03:00
John Preston
07beb3e86b Correctly clear unread reactions. 2022-01-31 11:19:46 +03:00
John Preston
18919a6b4a Fix tg_owt@M98 build on Linux. 2022-01-30 19:39:33 +03:00
John Preston
71d4b64691 Fix link / forward preview on Retina screen.
Regression was introduced in 3ff17a8789.
2022-01-30 00:34:19 +03:00
John Preston
9918a20946 Fix tg_owt@M98 build with MSVC. 2022-01-29 15:18:23 +03:00
John Preston
ae5e7d641a Build on macOS with WebRTC M98. 2022-01-29 14:06:55 +03:00
John Preston
4e88ea970e Fix build with GCC. 2022-01-29 12:47:20 +03:00
John Preston
f6ff0f3b2c Fix build for macOS 10.12+. 2022-01-28 23:52:11 +03:00
John Preston
84d58e574f Closed alpha version 3.4.8.1. 2022-01-28 19:11:13 +03:00
John Preston
1dd7cc956b Show reaction notifications in groups. 2022-01-28 19:10:07 +03:00
John Preston
54e7dfe986 Open exact message on local reaction notification. 2022-01-28 19:10:07 +03:00
John Preston
4e9a52343f Process unread reactions to unknown messages. 2022-01-28 19:10:07 +03:00
John Preston
51c805d77a Enable reading reactions on the server. 2022-01-28 19:10:07 +03:00
John Preston
8bde488662 Support multiple reaction animations in one message. 2022-01-28 19:10:07 +03:00
John Preston
4f1e04cf9e Animate reactions when reading. 2022-01-28 19:10:07 +03:00
John Preston
e509da8fd8 Instantly mark as read visible new reactions. 2022-01-28 19:10:07 +03:00
John Preston
f6bfe2c9a8 Mark all reactions as read context menu. 2022-01-28 19:10:07 +03:00
John Preston
15719b73b4 Fix updating unread message reactions. 2022-01-28 19:10:07 +03:00
John Preston
8da9638563 Count correct scroll-for-message with unread reaction. 2022-01-28 19:10:07 +03:00
John Preston
a5afeebc0c Show reaction notification by unread status. 2022-01-28 19:10:07 +03:00
John Preston
9903266722 Index new unread reactions in history. 2022-01-28 19:10:07 +03:00
John Preston
8f33d5903d Display unread reactions badge in chats list. 2022-01-28 19:10:07 +03:00
John Preston
e9c79886d2 Track unread mentions and unread reactions the same way. 2022-01-28 19:10:07 +03:00
John Preston
6207770120 Paint unread mention badge as an icon. 2022-01-28 19:10:07 +03:00
John Preston
2a99f1a1ef Add tabbed-panel-show-on-click option. 2022-01-28 19:10:07 +03:00
John Preston
4aafcebef5 Add empty experimental settings section. 2022-01-28 19:10:07 +03:00
John Preston
3a78e94f2f Don't downscale screen captured frame too much. 2022-01-28 19:10:07 +03:00
John Preston
b5aca56914 Fix pausing stickers in StickerSetBox. 2022-01-28 19:10:07 +03:00
John Preston
a6621233d0 Show first frame of webm in photo editor. 2022-01-28 19:10:07 +03:00
John Preston
b4eb25de58 Support webm stickers in StickerSetBox. 2022-01-28 19:10:07 +03:00
John Preston
d96a8d028a Support webm stickers in field autocomplete. 2022-01-28 19:10:07 +03:00
John Preston
f45c47f3d5 Limit inline results repainting rate. 2022-01-28 19:10:07 +03:00
John Preston
827ce46d3c Support webm stickers in bot inline results. 2022-01-28 19:10:07 +03:00
John Preston
91c84d63de Force libvpx_vp9 decoder for VP9 videos.
Webm stickers depend on decoder support for alpha channel.
2022-01-28 19:10:07 +03:00
John Preston
545392f90f Show webm stickers in media preview. 2022-01-28 19:10:07 +03:00
John Preston
fa61cf3c85 Show webm animation in stickers box set thumbnail. 2022-01-28 19:10:07 +03:00
John Preston
c359646702 Animate webm pack icon in the panel. 2022-01-28 19:10:07 +03:00
John Preston
51fef843f0 Optimize sets stickers / gifs panel repainting. 2022-01-28 19:10:07 +03:00
John Preston
1a3a0fb124 Fix caching of webm stickers in local storage. 2022-01-28 19:10:07 +03:00
John Preston
f1d9cca119 Fix crash and pause in stickers panel with webm. 2022-01-28 19:10:07 +03:00
John Preston
8e749173de Render webm stickers in StickersListWidget. 2022-01-28 19:10:07 +03:00
John Preston
20dbf18106 Init webm player for sticker set thumbnails. 2022-01-28 19:10:07 +03:00
John Preston
10ff71e8f6 Support svg path outline for Webm stickers. 2022-01-28 19:10:07 +03:00
John Preston
170cc77a1b Use QColor instead of optional<QColor> in lottie. 2022-01-28 19:10:07 +03:00
John Preston
589673e420 Fix non-sticker Webm in media viewer. 2022-01-28 19:10:07 +03:00
John Preston
2f9c39fe53 Support selecting Webm stickers. 2022-01-28 19:10:07 +03:00
John Preston
044c7f3ce9 Generate opaque good thumbnails for non-sticker Webm. 2022-01-28 19:10:07 +03:00
John Preston
d18e28978a Cache good thumbnail in Webp for Webm stickers. 2022-01-28 19:10:07 +03:00
John Preston
581b84afe0 Update API scheme on layer 138. 2022-01-28 19:10:07 +03:00
John Preston
846cabeda5 Premultiply YUVA alpha in FFMpegReaderImplementation. 2022-01-28 19:10:07 +03:00
John Preston
9b59ef00af Generate good video thumbnail for Webm stickers. 2022-01-28 19:10:07 +03:00
John Preston
079772a399 Correctly preserve first frame alpha in video streaming. 2022-01-28 19:10:07 +03:00
John Preston
2e39befd7c Don't trust AVFormatContext duration in Webm video.
It reports some strange numbers like 1000, which is 1ms.
2022-01-28 19:10:07 +03:00
John Preston
219ffd2c48 Handle clicks on Webm stickers. 2022-01-28 19:10:07 +03:00
John Preston
63d15e4479 Support Webm sticker display in chat history. 2022-01-28 19:10:07 +03:00
John Preston
2f01efdd64 Correctly detect Webm stickers. 2022-01-28 19:10:07 +03:00
John Preston
8b7d2c880e Support rendering Webm videos with alpha. 2022-01-28 19:10:07 +03:00
John Preston
1755ead681 Update API scheme to layer 138. 2022-01-28 19:10:07 +03:00
John Preston
1e1f7be708 Don't scroll reactions dropdown too fast.
Fixes #23985.
2022-01-28 19:08:44 +03:00
John Preston
7170bec25d Update scroll-history-to-bottom arrow icon. 2022-01-27 17:23:31 +03:00
John Preston
7ad1a7dd37 Fix userpics re-generating in message reactions. 2022-01-27 17:18:06 +03:00
John Preston
217e9b2475 Fix build with GCC. 2022-01-27 16:20:39 +03:00
John Preston
28f2c213f7 Remove app module. Support delayed quit by Cmd+Q on macOS. 2022-01-27 15:54:20 +03:00
John Preston
b8f1cebeb6 Support confirm-on-Quit on macOS. 2022-01-26 14:50:10 +03:00
John Preston
6a3ad52aef Add upload cancel confirmation on Quit and Log Out. 2022-01-26 13:15:28 +03:00
John Preston
8c349c0515 Fix non-Retina spelling error underline on macOS. 2022-01-26 12:42:12 +03:00
John Preston
9038dfb3b8 Load more reactions per page after the first request. 2022-01-26 11:57:21 +03:00
John Preston
2e94488eb4 Fix possible crash in ListWidget destructor. 2022-01-26 10:40:22 +03:00
23rd
59ed41abfe Added ability to select links and monospaced text with pressed Alt key. 2022-01-26 10:39:57 +03:00
23rd
8bea6776f5 Replaced checking global key modifiers with qt adapters. 2022-01-26 10:34:38 +03:00
23rd
0143d22a21 Split qt_adapters to separated files. 2022-01-26 10:33:28 +03:00
23rd
021d0053be Fixed hiding spoilers in captions when switching sections. 2022-01-26 10:33:20 +03:00
Ilya Fedin
443ca0b390 Don't use BYPRODUCTS with appdata changelog
Due to recursive dependency
2022-01-25 18:25:58 +04:00
Ilya Fedin
2e0224589f Update cmake_helpers 2022-01-25 16:14:01 +04:00
Ilya Fedin
f8da59595a Fix appdata changelog target name 2022-01-25 16:14:01 +04:00
Ilya Fedin
e8568c6701 Set encoding when reading changelog for appdata 2022-01-25 16:14:01 +04:00
gasinvein
4ca3f6a1b3 Ensure appdata releases tag is replaced rather than added 2022-01-25 16:14:01 +04:00
John Preston
6af255923a Use generate_target for timestamped changelog generator. 2022-01-25 14:53:26 +03:00
Ilya Fedin
624d83dc60 Update cmake_helpers 2022-01-23 18:25:37 +04:00
Ilya Fedin
6073da2843 Disable libvpx unit tests in Dockerfile & prepare.py 2022-01-23 18:25:37 +04:00
Ilya Fedin
ca5d2c115d Update tg_owt 2022-01-23 18:25:37 +04:00
John Preston
86f3d88116 Fix build for Windows and Linux. 2022-01-23 12:23:31 +03:00
John Preston
7a971b5855 Fix build for Windows x64. 2022-01-23 10:17:15 +03:00
John Preston
0a7de3340a Revert submodules downgrade. 2022-01-23 10:07:41 +03:00
John Preston
2cb73eefeb Build docker for Linux with external libvpx. 2022-01-23 01:07:36 +03:00
John Preston
152aa06930 Qt patch with a possible work-through-proxy fix. 2022-01-23 00:54:41 +03:00
John Preston
cbca78ff63 Fix build with GCC. 2022-01-23 00:27:17 +03:00
John Preston
7c46b292ac Fix build with MSVC. 2022-01-23 00:26:16 +03:00
John Preston
883509903f Fix build with Xcode. 2022-01-22 23:27:13 +03:00
Ilya Fedin
37b2951058 Update submodules 2022-01-22 21:18:37 +04:00
Ilya Fedin
ceb323ac7c Use QMenuBar instead of own global menu implementation on Linux
This is another attempt of 79f96480c2
2022-01-22 21:18:37 +04:00
Ilya Fedin
b65d40a22b Get rid of custom SNI implementation
XDG is inventing new tray specification, so SNI will be outdated soon and it's better to just use QSystemTrayIcon.
I believe all the major drawbacks of QSystemTrayIcon are solved and we can live with minor ones.
Given the planned MainWindow refactoring, it seems it's the best time to do that.
2022-01-22 21:18:37 +04:00
John Preston
aed49b9289 Build FFmpeg with libvpx on macOS. 2022-01-22 19:51:00 +03:00
John Preston
72d81cc52f Build 32 bit Windows version with external_vpx. 2022-01-22 19:50:55 +03:00
c0re100
4bb3aec168 Fix incorrect admin log
Type: Restricted to Member
2022-01-22 18:43:43 +04:00
Ilya Fedin
c0a81f2428 Use the suggested workaround for qtwayland build arguments instead of patching 2022-01-22 18:42:59 +04:00
Ilya Fedin
692adacc2a Fix support icon on Linux when system icon is present 2022-01-22 18:39:53 +04:00
John Preston
26dbeb6831 Fix build with Xcode. 2022-01-22 16:42:38 +03:00
John Preston
07f72c20eb Change application icon only in support mode.
Fixes #23895.
2022-01-22 16:40:57 +03:00
John Preston
8407b0cccf Fix buffer double-delete in Images::Blur. 2022-01-21 16:01:16 +03:00
John Preston
3ff17a8789 Refactor image transformation interfaces. 2022-01-21 15:33:44 +03:00
John Preston
a9a6d8a568 Fix creating links containing '$'.
Regression was introduced in desktop-app/lib_ui@8331322c20.

Fixes #23921.
2022-01-21 15:32:45 +03:00
John Preston
9877845b9c Don't always enable screencast logs. 2022-01-21 15:32:45 +03:00
John Preston
dc89262461 Version 3.4.8.
- Nice animations in reactions.
- Add snap layouts support on Windows 11.
- Bug fixes and other minor improvements.
2022-01-19 19:12:22 +03:00
John Preston
a5425042cf Fix possible crash when update is ready.
Regression was introduced in 9a0be43ef5.
2022-01-19 19:03:19 +03:00
John Preston
d6e03c3e48 Fix possible crash with incorrect local time. 2022-01-19 19:03:19 +03:00
John Preston
e91eecf34f Fix possible crash in empty sticker set. 2022-01-19 19:03:19 +03:00
John Preston
1a8cc87e60 Fix reaction images on Retina screen. 2022-01-19 15:40:04 +03:00
John Preston
0863941642 Beta version 3.4.7.
- Fix a crash on launch on Windows.
2022-01-19 09:34:17 +03:00
John Preston
b331aee599 Fix a crash on Windows < 11. 2022-01-19 09:33:34 +03:00
John Preston
e19180cc86 Beta version 3.4.6: Fix build with Xcode. 2022-01-18 21:56:20 +03:00
John Preston
10cb891f48 Beta version 3.4.6.
- Add snap layouts support on Windows 11.
- Fix crash in drafts after accounts switching.
2022-01-18 21:47:13 +03:00
John Preston
c8f7a8c795 Add a tab with "Who Seen" to "Who Reacted" box. 2022-01-18 21:44:59 +03:00
John Preston
74a28ffdf7 Use correct string for reacted / seen item. 2022-01-18 19:55:24 +03:00
John Preston
ecedce0c2f Fix crash in drafts saving.
Regression was introduced in 43559fb6b7.
2022-01-18 19:05:31 +03:00
John Preston
bd4f993292 Add Windows 11 snap layouts to call / voicechat. 2022-01-18 18:39:55 +03:00
John Preston
4934b026d3 Improve call / voicechat title controls on Windows 11. 2022-01-18 15:53:04 +03:00
John Preston
11f183a79f Better animate sent reaction in flipped context. 2022-01-18 14:45:28 +03:00
John Preston
ae426a41e0 Better reaction layout outside of a bubble. 2022-01-18 14:37:14 +03:00
John Preston
d6edc3728d Workaround selection glitches on macOS. 2022-01-18 14:11:15 +03:00
John Preston
e121487170 Fix appear animation when sending a reaction in a group. 2022-01-18 13:09:42 +03:00
John Preston
72a093ec77 Support Windows 11 snap layouts in the main window. 2022-01-18 12:59:54 +03:00
John Preston
4996d90782 Fix first my reaction userpic in groups. 2022-01-17 21:29:28 +03:00
John Preston
9a451a1423 Don't suggest "Set As Quick" on already quick. 2022-01-17 19:21:34 +03:00
John Preston
4d11ad45db Use common title bar buttons in Call Panel. 2022-01-17 19:21:34 +03:00
John Preston
1657c2c7f2 Fix context menu on sent images / documents. 2022-01-17 19:21:34 +03:00
John Preston
c5e7048a3d Don't copy-on-click "pre" entities. 2022-01-17 16:49:14 +03:00
John Preston
1f194da2f0 Improve macOS title bar font and rounding. 2022-01-17 16:48:32 +03:00
John Preston
0954b04f24 Fix title controls on Windows 11. 2022-01-17 13:39:14 +03:00
John Preston
4659499340 Update window title icons. 2022-01-17 11:18:12 +03:00
John Preston
6eb4584408 Fix links before monospace formatting. 2022-01-17 10:51:35 +03:00
23rd
4ba4b77b95 Fixed formatting of text in entry of archived folder.
Fixed #23906.
2022-01-17 10:12:18 +03:00
John Preston
f9bf6dbc1e Beta version 3.4.5: Fix build with GCC. 2022-01-16 23:25:08 +03:00
John Preston
64b5269648 Beta version 3.4.5.
- Fix crash in monospace blocks processing.
- Fix reaction animations stopping after an hour uptime.
2022-01-16 22:57:01 +03:00
John Preston
f394cecf55 Fix crash in monospace blocks processing.
Fixes #23905.
2022-01-16 14:13:41 +03:00
23rd
8b56676c23 Fixed formatting of some internal links. 2022-01-16 14:13:12 +03:00
23rd
e2713ea627 Added ability to create formatted internal links. 2022-01-16 14:13:10 +03:00
John Preston
f5e50409d3 Add initial reaction bubble appear animation. 2022-01-16 14:11:50 +03:00
John Preston
050916a56a Fix userpics in more than one recent reaction. 2022-01-15 22:02:10 +03:00
John Preston
cdf36cc387 Fix reaction animations stopping after an hour uptime. 2022-01-15 12:38:47 +03:00
John Preston
f909a36cbd Beta version 3.4.4: Fix incorrect changelog metadata. 2022-01-15 06:29:19 +03:00
John Preston
1d36255ca5 Beta version 3.4.4: Fix build on Windows. 2022-01-14 23:41:27 +03:00
John Preston
acfdae2d72 Beta version 3.4.4: Fix build with GCC. 2022-01-14 22:57:13 +03:00
John Preston
ab59e97b92 Beta version 3.4.4.
- Nice animations in reactions.
2022-01-14 22:06:03 +03:00
John Preston
1060b04b1e Reacted users list on inline reaction right click. 2022-01-14 21:55:48 +03:00
John Preston
df044dbd83 Show local notifications about contact reactions. 2022-01-14 21:55:48 +03:00
John Preston
5eb210ec12 "Set As Quick" context menu in reactions dropdown. 2022-01-14 21:55:48 +03:00
John Preston
f24f78c0cc Use click handler property instead of dynamic cast. 2022-01-14 21:55:48 +03:00
John Preston
8a071fe1fe Respect reactions_default from appconfig. 2022-01-14 21:55:48 +03:00
John Preston
f3e84de5fb Implement recent reaction userpics in groups. 2022-01-14 21:55:48 +03:00
John Preston
2dec1b72f7 Rename reactionBottom* to reactionInline* styles. 2022-01-14 21:55:48 +03:00
John Preston
604a827a52 Allow fast reaction revoke in private chats. 2022-01-14 21:55:48 +03:00
John Preston
3d8b303ab7 Implement parabolic reaction drop. 2022-01-14 21:55:48 +03:00
John Preston
2c599e60c3 Improve first reaction animation in group. 2022-01-14 21:55:48 +03:00
John Preston
928d8feb21 Improve clearing of reaction animations. 2022-01-14 21:55:48 +03:00
John Preston
490e688a91 Add reaction animations to comments. 2022-01-14 21:55:48 +03:00
John Preston
34c36d77c3 Paint reaction animations above everything. 2022-01-14 21:55:47 +03:00
John Preston
0ab26f0c82 Initial reaction effects implementation. 2022-01-14 21:55:47 +03:00
John Preston
db453ab7ae Allow slowing down Animations::Simple in debug build. 2022-01-14 21:55:47 +03:00
John Preston
e032dbf383 Cache reaction lottie in Window::SessionController. 2022-01-14 21:55:47 +03:00
John Preston
3b4ed03105 Image coords should be multiply devicePixelRatio.
I hope this fixes #17277.
2022-01-14 21:55:47 +03:00
John Preston
963694330d Correctly apply reaction restrictions. 2022-01-14 21:55:47 +03:00
John Preston
2733b12cff Improve popup menu dimensions. 2022-01-14 21:55:47 +03:00
John Preston
a377364621 Use correct sizes for lottie frames. 2022-01-14 21:55:47 +03:00
John Preston
58f4884deb Optimize dropdown overlay painting. 2022-01-14 21:55:47 +03:00
John Preston
c2c7a25487 Keep reaction media in memory. 2022-01-14 21:55:47 +03:00
John Preston
f98c08f4c6 Improve reaction scale animation. 2022-01-14 21:55:47 +03:00
John Preston
cfc2a959cf Implement nice dropdown collapse animation. 2022-01-14 21:55:47 +03:00
John Preston
6a1630a84c Paint gradients inside dropdown. 2022-01-14 21:55:47 +03:00
John Preston
a51be85199 Improve button and dropdown layout. 2022-01-14 21:55:47 +03:00
John Preston
e0fd5d8795 Fix reactions dropdown on Retina screen. 2022-01-14 21:55:47 +03:00
John Preston
8659f60b46 Good dropdown rounding and shadow. 2022-01-14 21:55:47 +03:00
John Preston
c43699fb43 Prepare for better clipping. 2022-01-14 21:55:47 +03:00
John Preston
c56a22c8d5 Play select animations in reactions. 2022-01-14 21:55:47 +03:00
John Preston
7f27ce6dee Scale reactions on mouse over. 2022-01-14 21:55:47 +03:00
John Preston
508ba4750c Show appear animations in reactions dropdown. 2022-01-14 21:55:47 +03:00
John Preston
c0b19000d6 Use lottie instead of webp in reactions dropdown. 2022-01-14 21:55:47 +03:00
John Preston
409a3357da Use lottie instead of webp in bottom info reactions. 2022-01-14 21:55:47 +03:00
John Preston
82523978c9 Use lottie instead of webp in Edit Chat Reactions. 2022-01-14 21:55:47 +03:00
John Preston
718ba2d0e3 Update API scheme to layer 137. 2022-01-14 21:55:47 +03:00
John Preston
2317dd8820 Update cmake_helpers submodule. 2022-01-14 21:55:47 +03:00
Hans Gaiser
df06f55c7f Use QT_QPA_PLATFORM if provided. 2022-01-14 21:58:43 +04:00
John Preston
d43853460e Update plasma-wayland-protocols to 1.6.0. 2022-01-13 19:37:22 +03:00
John Preston
28fee318d7 Update submodules. 2022-01-13 13:17:55 +03:00
23rd
1ec2ecac11 Fixed render of scene from photo editor for grayscaled images.
Fixed #23889.
2022-01-13 04:20:15 +03:00
23rd
7aa3956792 Fixed skip blocks for web pages and games. 2022-01-13 04:06:50 +03:00
Ilya Fedin
d349759618 Update cmake_helpers 2022-01-12 20:34:51 +03:00
Ilya Fedin
ac3e4fb42f Add missing openssl dependency for non-legacy tgcalls 2022-01-12 20:34:51 +03:00
Ilya Fedin
eccb01e5b5 Use ninja generator in snap 2022-01-12 20:34:51 +03:00
Ilya Fedin
7c8d10022f Use return to decrease indentation in cmake files 2022-01-12 20:34:51 +03:00
John Preston
f1244e19a1 Fix build for Windows. 2022-01-12 13:07:00 +03:00
John Preston
e17143dd8b Update lib_ui submodule. 2022-01-12 12:24:20 +03:00
23rd
39d5d3a1cf Moved some photo editor files to td_ui. 2022-01-12 11:54:25 +03:00
23rd
f8be5731a5 Moved out extracting of attached stickers from Scene to FileLoadTask. 2022-01-12 11:54:25 +03:00
23rd
ab248febcd Added ability to select text of question from polls.
Fixed #8713.
Fixed #17531.
2022-01-12 11:54:25 +03:00
23rd
d4afba3a24 Added ability to copy monospace text via click. 2022-01-12 11:54:25 +03:00
23rd
4ee9751feb Added ability to cancel selection in calendar box with Esc key. 2022-01-12 11:54:24 +03:00
23rd
46fb5ee1d2 Added Page Up / Down keys to calendar box. 2022-01-12 11:54:24 +03:00
23rd
749f837df5 Fixed Home and End keys in calendar box. 2022-01-12 11:54:24 +03:00
23rd
e11904e05b Removed TextParseRichText. 2022-01-12 11:54:24 +03:00
23rd
e1aa08b985 Removed text commands. 2022-01-12 11:54:24 +03:00
23rd
2af3770b29 Moved special text command for lang tags to td_lang. 2022-01-12 11:54:24 +03:00
23rd
74f9d0935b Removed text commands from skip blocks. 2022-01-12 11:54:24 +03:00
23rd
f9c50fdc06 Removed text commands from theme preview. 2022-01-12 11:54:24 +03:00
23rd
1fa825321d Removed text commands from poll box. 2022-01-12 11:54:24 +03:00
23rd
d9147562e5 Removed text commands from profile cover. 2022-01-12 11:54:24 +03:00
23rd
5b569718ec Removed text commands from main menu. 2022-01-12 11:54:24 +03:00
23rd
a5d4746202 Removed text commands from overview layout for voices. 2022-01-12 11:54:24 +03:00
23rd
50d150302d Removed text commands from web pages. 2022-01-12 11:54:24 +03:00
23rd
e451eb5126 Removed text commands from dialogs list. 2022-01-12 11:54:24 +03:00
23rd
a626364430 Removed text commands from connection box. 2022-01-12 11:54:24 +03:00
23rd
b55ed7214a Removed text commands from history item components. 2022-01-12 11:54:24 +03:00
23rd
d6801517bb Removed text commands from url auth box. 2022-01-12 11:54:24 +03:00
23rd
97dde7eb56 Removed text commands from Export::View::TopBar. 2022-01-12 11:54:24 +03:00
23rd
10df3dce7c Removed text commands from dialogs row. 2022-01-12 11:54:24 +03:00
23rd
889d7c0c15 Added undo and redo shortcuts to photo editor. 2022-01-12 11:54:24 +03:00
Ilya Fedin
799155279f Update kwayland and move its dependencies to ThirdParty to keep them in sync 2022-01-11 16:51:01 +03:00
Vitaly Zaitsev
10e7bd0d6e Updated XDG SPEC version to 1.5.
SingleMainWindow is a part of XDG SPEC version 1.5 and bogus on 1.0.

Co-authored-by: gasinvein <gasinvein@gmail.com>
Signed-off-by: Vitaly Zaitsev <vitaly@easycoding.org>
2022-01-11 10:37:44 +03:00
TheEvilSkeleton
0a99487091 Re-add X-GNOME-SingleWindow
`X-GNOME-SingleWindow` is best to be used for backward compatibility. Since `SingleMainWindow` was recently added, many Desktop Environments and Window Managers may not have it implemented yet.

This MR also moves `SingleMainWindow` before the `X-GNOME-*` keys, as requested in this comment: https://github.com/telegramdesktop/tdesktop/pull/23875#issuecomment-1008453759
2022-01-10 09:34:49 +03:00
Felipe Kinoshita
4965c19314 Change X-GNOME-SingleWindow key to SingleMainWindow
X-GNOME-SingleWindow was upstreamed to be an XDG spec with the name
"SingleMainWindow" in
https://gitlab.freedesktop.org/xdg/xdg-specs/-/merge_requests/53
2022-01-09 09:50:50 +03:00
Ilya Fedin
30810e95f4 Log when DE is unknown 2022-01-08 10:59:47 +03:00
Ilya Fedin
a3d84f69ea fixup! Use more sources for DE detection 2022-01-08 10:45:13 +03:00
Ilya Fedin
b3bb1a537c Use more sources for DE detection 2022-01-08 09:55:34 +03:00
Ilya Fedin
726aa3316d Rework DE detection
Variables can point to a mixed environment, make DE detection non-exclusive.
Remove unused methods.
2022-01-07 19:14:59 +03:00
John Preston
ba6c3eaf73 Add dummy Platform::Integration on Linux. 2022-01-06 15:44:02 +03:00
John Preston
ebe45f3fa1 Fix selecting in expanded down dropdown. 2022-01-06 15:42:32 +03:00
John Preston
3f0fed19d8 Fix build for macOS. 2022-01-06 15:41:17 +03:00
John Preston
609cab6e2f Fix build with Xcode. 2022-01-06 15:41:12 +03:00
John Preston
7b3cb0c3dd Allow non-colored and .tgs Lottie::Icon-s. 2022-01-05 15:14:39 +03:00
John Preston
43559fb6b7 Fix crash in history switching. 2022-01-05 15:14:39 +03:00
John Preston
8788692fb3 Fix crash in sending a reaction. 2022-01-05 15:14:39 +03:00
Ilya Fedin
072e346324 Move libdl/libpthread handling to common_options 2022-01-05 13:18:08 +03:00
23rd
99f65ab5ec Migrated dependencies in Github CI for Windows. 2022-01-05 10:48:06 +03:00
John Preston
fe7b120003 Fix possible crash in dictionaries download.
Fixes #17258.
2022-01-05 01:04:38 +03:00
John Preston
cb8f86bc8d Attach main views to correct HistoryInner-s. 2022-01-05 00:11:29 +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
John Preston
8b0725650d Move global event filter to Platform::Integration on Windows. 2022-01-04 15:29:40 +03:00
John Preston
20411be9bd Allow creating separate windows for peers. 2022-01-04 14:18:13 +03:00
github-actions[bot]
f4f36d85b9 Update copyright year to 2022. 2022-01-04 12:49:50 +04:00
John Preston
9f887237eb Remove a couple of unused lang keys. 2022-01-04 11:15:09 +03:00
GitHub Action
4e3f917a2c Update User-Agent for DNS to Chrome 96.0.4664.110. 2022-01-04 00:12:00 +03:00
John Preston
5c9c836857 Version 3.4.3: Fix build with GCC. 2022-01-04 00:01:56 +03:00
John Preston
31b7fe6ba0 Version 3.4.3.
- Bug fixes and other minor improvements.
2022-01-03 20:04:53 +03:00
John Preston
102c0a96ed Re-enable XWayland by default on GNOME.
Should fix #17457, fix #17468, fix #17476, fix #17477, fix #1747,
fix #17481, fix #17498.
2022-01-03 20:03:06 +03:00
John Preston
9a0be43ef5 Align reactions outside of the bubble. 2022-01-03 20:00:18 +03:00
John Preston
c1d948ef63 Reshuffle chat menus. 2022-01-03 18:16:19 +03:00
John Preston
9df229a230 Add pinned message icon.
Regression was introduced in 1af2cfe143.

Fixes #17489.
2022-01-03 18:15:36 +03:00
John Preston
a1c342c822 Leave only one style of the reaction button. 2022-01-03 15:30:17 +03:00
John Preston
c313cfb4ec Don't show empty context menu. 2022-01-03 14:47:05 +03:00
John Preston
8d4a658d0b Use mirrors for freedesktop.org repositories. 2022-01-03 14:14:26 +03:00
John Preston
86f53d3eff Fix crash after comments button destruction.
Regression was introduced in df66162bca.
2022-01-03 11:40:42 +03:00
John Preston
3cb89339c8 Version 3.4.2: Fix build for Mac App Store. 2021-12-31 23:40:36 +03:00
John Preston
ba98a8df32 Version 3.4.2: Fix build with GCC. 2021-12-31 23:32:53 +03:00
John Preston
f3faa52bc7 Version 3.4.2.
- Bug fixes and other minor improvements.
2021-12-31 18:03:25 +03:00
John Preston
3dac08d34f Move reaction button from fast share button. 2021-12-31 17:52:41 +03:00
John Preston
deba090cbd Allow smaller popup menus. 2021-12-31 17:52:17 +03:00
John Preston
5b01f9530b Fix reaction images loading. 2021-12-31 17:49:52 +03:00
John Preston
df66162bca Destroy comments button when switched off. 2021-12-31 17:31:03 +03:00
John Preston
d413080f83 Rebuild sets without restarting thumbnails. 2021-12-31 17:08:34 +03:00
John Preston
38ee57f852 Don't jump to top in StickersBox on stickersUpdated. 2021-12-31 16:50:43 +03:00
John Preston
c632316ad7 Fix updated sticker set thumbnail loading. 2021-12-31 16:40:01 +03:00
John Preston
bba7010e74 Show "View Message" button in sponsored. 2021-12-31 16:07:36 +03:00
John Preston
edf93b0031 Use different color for sponsored sender name. 2021-12-31 16:07:36 +03:00
John Preston
611be90880 Rewrite sponsored to use fake sender names. 2021-12-31 16:07:36 +03:00
John Preston
68886e1b61 Fix channel post views with replies counters. 2021-12-31 14:48:56 +03:00
John Preston
67319c1612 Version 3.4.1: Fix build with GCC. 2021-12-31 12:33:23 +03:00
John Preston
da8db0157f Version 3.4.1: Fix build without DBus. 2021-12-31 10:37:54 +03:00
John Preston
6188268afd Version 3.4.1.
- Bug fixes and other minor improvements.
2021-12-31 02:42:44 +03:00
John Preston
cd0db53bac For non-bubble messages reaction to the left of info. 2021-12-31 02:40:03 +03:00
John Preston
5bb90679a8 Attempt to fix a weird assertion violation. 2021-12-31 01:20:28 +03:00
John Preston
72df3a8f91 Don't show reaction button while selecting text. 2021-12-31 01:03:45 +03:00
John Preston
5fe2e649fb Attempt to fix a crash in reactions list view. 2021-12-31 00:59:29 +03:00
John Preston
9eba8ccc73 Always show reaction emoji in reactions view box. 2021-12-31 00:58:59 +03:00
John Preston
bb3c91aa44 Scale reaction images explicitly.
Fixes #17459.
2021-12-31 00:28:44 +03:00
John Preston
9f1268b6c8 Move kwayland-qt6 patch to kwayland build rule folder.
Fixes #17460.
2021-12-31 00:25:31 +03:00
John Preston
a6f1a1bd62 Fix bottom info with author signature.
Fixes #17464.
2021-12-30 23:57:12 +03:00
John Preston
1b2642b017 Fix spoilers with disabled animations.
Fixes #17458.
2021-12-30 23:38:28 +03:00
John Preston
e722645e7c Try to show the reaction button outside of the bubble. 2021-12-30 23:38:06 +03:00
John Preston
9486c266b5 Use context menu background for sticker reaction dropdown. 2021-12-30 23:36:52 +03:00
John Preston
dc21491099 Fix reactions icon in Manage Group / Channel. 2021-12-30 18:24:12 +03:00
John Preston
2f48bbd317 Version 3.4: Fix build with GCC. 2021-12-30 18:18:30 +03:00
John Preston
450f9ca91e Version 3.4: Update nimf submodule to clone fine on Windows. 2021-12-30 16:53:04 +03:00
John Preston
f86e2d98cc Version 3.4: Show mini-profiles from reactions overview. 2021-12-30 16:48:52 +03:00
John Preston
0cf85be86b Version 3.4.
- Send reactions to messages.
- Group and Channel admins can enable reactions in their chat
via '...' menu > Manage > Reactions.
- Select text when typing and choose 'Formatting > Spoiler' in
the context menu to hide some or all of the contents of a message.
- Click on the spoiler in chat to reveal its hidden text.
- Spoiler formatting hides text in chat,
as well as in the chat list and notifications.
2021-12-30 16:25:43 +03:00
John Preston
a15ef8bbc2 Check noforwards of specific messages in shared media. 2021-12-30 16:15:38 +03:00
John Preston
ecca60afe4 Some spoiler improvements. 2021-12-30 16:08:15 +03:00
John Preston
1ab0f840f3 Use reactions icon in context menu if more than 1 reaction type. 2021-12-30 16:08:15 +03:00
John Preston
3623fb1f9a Disable saveAs in media viewer if restricted. 2021-12-30 14:58:34 +03:00
John Preston
4cbfcc8dbc Disable reaction button on Call messages. 2021-12-30 14:33:11 +03:00
John Preston
90821428d3 Fix quick reaction button on Retina screens. 2021-12-30 14:33:11 +03:00
John Preston
c5468a1111 Fix spoilers in some cases. 2021-12-30 13:37:56 +03:00
John Preston
505ef04134 Show reaction button only when the cursor is over the message. 2021-12-30 13:37:39 +03:00
John Preston
f70c2adbdd Fix menu icons in proxy settings. 2021-12-30 13:37:17 +03:00
John Preston
2c20e7bb02 Beta version 3.3.2: Fix build with GCC. 2021-12-30 00:19:47 +03:00
John Preston
67fa58edc4 Beta version 3.3.2: One more attempt to fix macOS camera. 2021-12-30 00:02:21 +03:00
John Preston
43e1079969 Beta version 3.3.2.
- Select text when typing and choose 'Formatting > Spoiler' in the
context menu to hide some or all of the contents of a message.
- Click on the spoiler in chat to reveal its hidden text.
- Spoiler formatting hides text in chat,
as well as in the chat list and notifications.
2021-12-29 22:55:31 +03:00
John Preston
7b4354eb4a Fallback to QThreadPool if dispatch is unavailable. 2021-12-29 21:23:35 +03:00
John Preston
08b99b19c3 Fix crash in spoilers restoring. 2021-12-29 21:22:34 +03:00
John Preston
70658c6e65 Reactions under view button in the message bubble. 2021-12-29 21:22:34 +03:00
John Preston
c875f367e6 Add a semi-nice looking box with reactions overview. 2021-12-29 21:22:34 +03:00
23rd
3aacae2cb2 Added behavior to hide spoilers when switching sections. 2021-12-29 21:22:34 +03:00
John Preston
a381439e3e Show reactions in replies / pinned context menu. 2021-12-29 21:22:34 +03:00
John Preston
c6811640b5 Show box with reacted users. 2021-12-29 21:22:34 +03:00
John Preston
58c9494c03 Add reactions to replies / comments / pinned section. 2021-12-29 21:22:34 +03:00
John Preston
71d52d26c3 Show react button and dropdown with a delay. 2021-12-29 21:22:34 +03:00
John Preston
87e97ad533 Add admin event log phrases about reactions. 2021-12-29 21:22:34 +03:00
John Preston
a8bc7baa70 Update all messages in case of chat reactions toggle. 2021-12-29 21:22:34 +03:00
John Preston
ec16ca7df7 Poll reactions for visible messages. 2021-12-29 21:22:34 +03:00
John Preston
aafc24008b Apply reactions from message edit updates. 2021-12-29 21:22:34 +03:00
23rd
0ffd827fc5 Moved ellipsis string to lib_ui. 2021-12-29 21:22:34 +03:00
23rd
c40bcdc446 Added utility to correctly cut text with commands. 2021-12-29 21:22:34 +03:00
23rd
8b74dc2dec Added spoiler support to service messages. 2021-12-29 21:22:33 +03:00
John Preston
1d2065e4ef Fix reactions geometry for round videos. 2021-12-29 21:22:33 +03:00
John Preston
830a338082 Sort reactions in bubbles correctly. 2021-12-29 21:22:33 +03:00
John Preston
4228557722 Improve reactions position and colors. 2021-12-29 21:22:33 +03:00
John Preston
38c296b69f Remove test image-patterned message backgrounds. 2021-12-29 21:22:33 +03:00
John Preston
948dd7d545 Fix emoji in the input field with Qt 6.2.2. 2021-12-29 21:22:33 +03:00
John Preston
26827a5043 Fix build with Qt 6. 2021-12-29 21:22:33 +03:00
John Preston
a7c93a9421 Support patterned reactions dropdown. 2021-12-29 21:22:33 +03:00
John Preston
95e003153a Implement inline reactions dropdown. 2021-12-29 21:22:33 +03:00
John Preston
54f5b47585 Fix crash in reactions sending. 2021-12-29 21:22:33 +03:00
23rd
ec1511e0c9 Fixed focus when switching between accounts. 2021-12-29 21:22:33 +03:00
John Preston
b396d6e836 Start from-reaction-button dropdown. 2021-12-29 21:22:33 +03:00
23rd
022249f235 Fixed build on non-Windows. 2021-12-29 21:22:33 +03:00
23rd
fa4d1d72c4 Added animation for spoilers in sections. 2021-12-29 21:22:33 +03:00
23rd
938aa5d577 Added spoiler support to system notifications. 2021-12-29 21:22:33 +03:00
23rd
baca36e715 Added chat invites support to sponsored messages. 2021-12-29 21:22:33 +03:00
23rd
4252066cf6 Added spoiler support to export. 2021-12-29 21:22:33 +03:00
23rd
1cca4d71bd Provided spoiler info to preview text. 2021-12-29 21:22:33 +03:00
23rd
a027a02130 Provided spoiler info to notification text. 2021-12-29 21:22:33 +03:00
23rd
90dedb7b70 Added spoiler support to input field. 2021-12-29 21:22:33 +03:00
23rd
52699ccfc2 Added new colors to text palette for spoilers. 2021-12-29 21:22:33 +03:00
23rd
f2c7237d5f Moved item preview structs to separated file. 2021-12-29 21:22:33 +03:00
John Preston
79a09a4510 Show latest reacted in context menu. 2021-12-29 21:22:33 +03:00
John Preston
fe468ce7e9 Respect can_see_list flag in reactions. 2021-12-29 21:22:33 +03:00
John Preston
118072db77 Update API scheme on layer 136. 2021-12-29 21:22:33 +03:00
John Preston
6f2bb43505 Fix temporary reaction selector on Retina screens. 2021-12-29 21:22:33 +03:00
John Preston
a550b73e2c Move "who read" context menu item to the bottom. 2021-12-29 21:22:33 +03:00
John Preston
a5caebe890 Toggle reactions by the button. 2021-12-29 21:22:33 +03:00
John Preston
2991c3c17f Toggle reactions from the list under the message. 2021-12-29 21:22:33 +03:00
John Preston
b5edaf4c23 Fix layout of reactions in files / contacts. 2021-12-29 21:22:33 +03:00
John Preston
ad1476e80f Return reading proper noforwards value. 2021-12-29 21:22:33 +03:00
John Preston
6f8c9f65cf Optimize small emoji image caching and painting. 2021-12-29 21:22:33 +03:00
John Preston
4050866b3b Nice reactions design in private chats. 2021-12-29 21:22:33 +03:00
John Preston
2a3cf8ac58 Implement (sub-optimal) painting of reactions in groups. 2021-12-29 21:22:33 +03:00
John Preston
710ef43e41 Update API scheme on layer 136. 2021-12-29 21:22:33 +03:00
John Preston
51e96bf074 Support reaction button with gradient bubbles. 2021-12-29 21:22:33 +03:00
John Preston
68d45a2c08 Show / hide reactions selector. 2021-12-29 21:22:33 +03:00
John Preston
35378e717a Handle click on the reaction once again. 2021-12-29 21:22:33 +03:00
John Preston
b108e93092 Keep reaction visible if mouse is over it. 2021-12-29 21:22:33 +03:00
John Preston
371c9c1bfe Implement a nice corner reaction button. 2021-12-29 21:22:33 +03:00
John Preston
e148b5ff08 Proof-of-concept reactions dropdown. 2021-12-29 21:22:33 +03:00
John Preston
9c18f7b0e3 Allow choosing allowed reactions in groups / channels. 2021-12-29 21:22:33 +03:00
John Preston
bfdbb64295 Move some Settings icons to a subfolder. 2021-12-29 21:22:33 +03:00
John Preston
b773bb6e70 Add icons to the media viewer menus. 2021-12-29 21:22:33 +03:00
John Preston
2c36623cfb Add some icons to popup menus. 2021-12-29 21:22:33 +03:00
John Preston
535fd8d523 Display reactions outside bottom info in groups. 2021-12-29 21:22:33 +03:00
John Preston
3aacd15ef2 Use HistoryView::Object in BottomInfo. 2021-12-29 21:22:33 +03:00
John Preston
57cb921bb9 For testing show self reaction in bold. 2021-12-29 21:22:33 +03:00
John Preston
b1668afdf1 Use available reactions list from the server. 2021-12-29 21:22:33 +03:00
John Preston
be74f8f2bc Fix sponsored messages badge with BottomInfo. 2021-12-29 21:22:33 +03:00
John Preston
b151d210bf Add peer-list-like view for message reactions list. 2021-12-29 21:22:33 +03:00
John Preston
b5d80a3c15 Improve BottomInfo layout. 2021-12-29 21:22:33 +03:00
John Preston
2b0cd2a611 Fix refreshing bottom info. 2021-12-29 21:22:33 +03:00
John Preston
1af2cfe143 Extract BottomInfo from HistoryView::Message. 2021-12-29 21:22:33 +03:00
John Preston
3a43217301 Show reactions in messages. 2021-12-29 21:22:32 +03:00
John Preston
f5c7b206bb Track message reactions. 2021-12-29 21:22:32 +03:00
John Preston
a1439163ce Update API scheme to layer136. 2021-12-29 21:22:32 +03:00
Klemens Nanni
32473b2908 Remove unused variable
Unused since c79cd0b692
"Use Images::Read instead of App::readImage."
2021-12-29 20:16:04 +03:00
Klemens Nanni
078a2af385 Fix -Wunused-const-variable warnings under DESKTOP_APP_DISABLE_DBUS_INTEGRATION
OpenBSD builds without dbus integration (for now);  this fixes the warnings.
Those variables have been introduced in multiple commits.
2021-12-29 20:16:04 +03:00
Klemens Nanni
b61250e101 Remove unused variables
Not used anymore since 29c0956d61
"Always try to play video in voice chats.".
2021-12-29 20:16:04 +03:00
Ilya Fedin
f90fb6c80c Update cmake_helpers 2021-12-29 17:27:23 +03:00
Ilya Fedin
cbd0469042 Update statusnotifieritem 2021-12-29 17:27:23 +03:00
Ilya Fedin
a49feca281 Update submodule libraries 2021-12-29 17:27:23 +03:00
Ilya Fedin
641583b434 Update libraries in Dockerfile & snapcraft.yml 2021-12-29 17:27:23 +03:00
Ilya Fedin
9506093cbd Remove unused submodules 2021-12-29 17:27:23 +03:00
Ilya Fedin
ffe4208595 Implement loop status/shuffle for MPRIS 2021-12-29 00:56:46 +04:00
k1ee
4c3835c61c Use https:// not git:// to clone.
git:// is not going through proxy.
2021-12-28 15:26:42 +04:00
Nate Graham
dad1f196ba Mark as single-instance using X-GNOME-SingleWindow key
Telegram is a single-instance app; attempting to open a second instance
fails and simply focuses the existing instance. However the app's
.desktop file does not indicate this to Linux desktop shells like GNOME
and KDE Plasma, causing them to show a "Start new instance/Open new
window" action for the app that will not work when used.

This commit fixes that by setting `X-GNOME-SingleWindow=true` in the
desktop file. This is a GNOME-specific key, but it is honored in KDE
Plasma too.
2021-12-27 17:47:48 +04:00
John Preston
8aa2f56717 Specify exact FFmpeg revision. 2021-12-23 00:07:26 +00:00
John Preston
ede4c0f781 Beta version 3.3.1.
- Switch between contacts list sorting modes.
- Sort contacts list by last seen time by default.
- Fix disappearing Send As Channel button after message editing.
- Fix file upload cancelling.
- Fix crash in video capture on macOS.
- Fix labels in the About box.
- Use Qt 6.2.2 for macOS and Linux builds.
- Allow installing x64 Windows version on Windows ARM.
2021-12-23 00:07:26 +00:00
John Preston
75337ad1c2 Fix shared media list in migrated groups. 2021-12-23 00:07:26 +00:00
John Preston
e05b2f3b38 Fix build on Linux. 2021-12-22 17:32:35 +00:00
John Preston
0f15adb208 Sort contacts by last seen by default.
Fixes #5515.
2021-12-22 15:14:16 +00:00
John Preston
a7e552ccab Fix assertion violation in media overview.
Regression was introduced in 5e7e7eaa83.
2021-12-22 13:05:54 +00:00
John Preston
797433ebe9 Fix disappearing Send As Channel button.
Fixes #17359.
2021-12-22 12:32:09 +00:00
John Preston
633532b88d Fix build on Windows. 2021-12-22 11:47:17 +00:00
John Preston
a0dcade9d8 Remove redundant freedesktop.org.xml. 2021-12-22 10:42:32 +00:00
John Preston
2a0babe5ab Fix file upload cancelling.
Fixes #17408.
2021-12-22 10:34:00 +00:00
23rd
dd92f7fb9d Slightly refactored AddContactBox. 2021-12-22 10:27:43 +00:00
John Preston
7ad08b3ef8 Update submodules. 2021-12-22 10:23:54 +00:00
John Preston
73917e8a4b Re-apply crash fix on macOS video capture. 2021-12-22 10:17:50 +00:00
Ilya Fedin
dc7aef3f86 Move HFLAGS to other variables in Dockerfile 2021-12-22 14:15:48 +04:00
Ilya Fedin
d89597bf64 Activate crl dispatch backend on Linux
Linux is the only platform where slow QThreadPool is used, let's use dispatch here as well
2021-12-22 14:15:48 +04:00
Magnus Groß
c2b2d0a92a Do not destroy drag after launchDrag()
On X11 we need to keep the QDrag around a little longer.

Right now, drag is scoped local to launchDrag() and will be destroyed
immediately when launchDrag() finishes. However for X11 we must keep the
drag object alive a little longer. It may only be destroyed once the
drag operation has been accepted by another window, otherwise drag and
drop is broken on Linux and no action happens when something is dragged
from Telegram into another window.

This is because there is still communication happening in the XDND
protocol once QDrag::exec() finishes. See the documentation for
reference: https://freedesktop.org/wiki/Specifications/XDND/

Fixes #17291
2021-12-22 14:15:36 +04:00
John Preston
b341dddbb9 Move macOS and Linux builds to Qt 6.2.2. 2021-12-22 10:13:31 +00:00
John Preston
999e4264c5 Move macOS and Linux builds to Qt 6.2.2. 2021-12-22 10:13:29 +00:00
John Preston
aee11469c4 Fix crash in video capture on macOS.
Fixes #17420.
2021-12-22 10:11:57 +00:00
John Preston
651cfe5b7e Fix about box text labels layout. 2021-12-22 10:11:57 +00:00
John Preston
a34b2a5472 Fix build with DESKTOP_APP_USE_PACKAGED_RLOTTIE. 2021-12-22 10:11:57 +00:00
John Preston
5e7e7eaa83 FullMsgId rely on PeerId instead of ChannelId. 2021-12-22 10:11:57 +00:00
Ilya Fedin
a8f05a01ed Build kwayland as external project
This will simplify packaged Qt 6 build
2021-12-22 14:09:32 +04:00
Ilya Fedin
fedd21b0a6 Use QFontMetrics::height in PreLaunchWindow 2021-12-22 14:08:22 +04:00
Ilya Fedin
7ff7473db6 Auto-check for many instance
This option was invented when single instance check wasn't adapted for -workdir. Now, -workdir can work without -many and this option is redudant, but auto-update prevention is helpful. Let's autodetect whether the binary is already running with a lock file.
2021-12-22 14:07:22 +04:00
Vitaly Zaitsev
d89aab08bf Fixed build against OpenSSL 3.0.
Deprecated function FIPS_mode_set() was removed in OpenSSL 3.0.

Switched to EVP_default_properties_enable_fips() as described in OpenSSL
3.0 migration guide.

Signed-off-by: Vitaly Zaitsev <vitaly@easycoding.org>
2021-12-19 16:35:13 +04:00
Ilya Fedin
b2fb5424ed Get rid of deprecated OpenSSL <1.1 functions 2021-12-16 13:05:53 +04:00
John Preston
e7e34d50ba Fix building on Windows. 2021-12-14 16:27:57 +04:00
John Preston
19320cc5d8 Fix dependencies build on M1. 2021-12-14 11:33:59 +04:00
k1ee
107a87c7ce Add support to build on M1 Mac
On M1 mac, some dependencies build two `arm64` builds and makes `lipo` fail.
2021-12-14 11:32:13 +04:00
RadRussianRus
2cb1d2c0bc Removed explicit definition of cmake generator
Even though TDesktop build migrated to VS 2022, dependencies script still had "Visual Studio 16 2019" for mozjpeg and openal-soft as a generator. Removing these lines allows to use latest Visual Studio without changing the script.
2021-12-13 14:26:05 +04:00
Ilya Fedin
48ab88a9ca Don't use QPlatformNativeInterface for native window handle on Windows 2021-12-13 14:24:34 +04:00
Ilya Fedin
33b7ac209e Don't use QPlatformNativeInterface-based XCB::GetRootWindowFromQt 2021-12-13 14:24:34 +04:00
Ilya Fedin
4a0ffdc9f5 Result binary shouldn't be in bin subfolder with any generator on macOS
Since MACOSX_BUNDLE is used
2021-12-11 07:29:02 +04:00
Ilya Fedin
1ec2c16d27 Fix path to result binary in Linux action 2021-12-11 07:29:02 +04:00
John Preston
4b03fd0f23 Version 3.3: Fix build with GCC. 2021-12-08 08:35:03 +04:00
John Preston
9f117cd680 Version 3.3: Update submodules. 2021-12-07 16:29:38 +04:00
John Preston
f6d29991d6 Version 3.3.
- Content creators can restrict the ability to save media
and forward messages from their groups and channels.
- Clear messages in one-on-one chats from a specific day or date range.
- Comment as one of your channels in public groups and channel comments.
- When you request to join a community and its admin
or bot-admin contacts you with a message,
you will see which chat they are from at the top of the chat.
- Bot-admins can now ask users to complete tasks
before they are allowed to join - like accepting community rules,
passing a test, or making a donation to the content creators.
2021-12-07 15:52:33 +04:00
John Preston
1a0d430291 Fix crash in admin log right click.
Fixes #17325.
2021-12-07 15:42:30 +04:00
John Preston
e3b9927faa Reset session on receiving a really old msgId. 2021-12-07 10:05:41 +04:00
John Preston
d199e16a6e Load cloud image without active view only once. 2021-12-07 10:01:56 +04:00
John Preston
01c2be3f01 Add some checks for actions in a locked state. 2021-12-07 10:01:56 +04:00
Ilya Fedin
6db537d1ec Rename telegramdesktop.appdata.xml -> telegramdesktop.metainfo.xml
.appinfo.xml is legacy according to https://freedesktop.org/software/appstream/docs/chap-Metadata.html#spec-component-location
2021-12-06 11:53:28 +04:00
John Preston
e708b2d39c Move some icons, fix verified check scaling. 2021-12-03 15:30:40 +04:00
John Preston
ebd9587821 Fix admin ranks in participants edit. 2021-12-03 15:02:45 +04:00
John Preston
9e5117d336 Respect autodownload settings in reply previews. 2021-12-03 14:59:08 +04:00
John Preston
1c2ea8d84a Fix semi-transparent inline result thumbnails. 2021-12-02 16:03:13 +04:00
John Preston
235484b719 Fix saving group type without changing username. 2021-12-02 15:26:58 +04:00
John Preston
b9ea5718a2 Fix "about request admin panel" box hiding. 2021-12-02 15:00:27 +04:00
John Preston
db0c57a186 Fix reply-to-media timestamps in captions. 2021-12-02 14:42:50 +04:00
John Preston
0fa458737a Fix shared media loading. 2021-12-02 13:54:30 +04:00
John Preston
caaeff32c5 Move global privacy setting down. 2021-12-02 13:36:49 +04:00
John Preston
c4c234f0d3 Pass FilterId to pinnedIndexChanged. 2021-12-02 13:36:49 +04:00
John Preston
894e7c5828 Fix imported messages without a sender name. 2021-12-02 13:36:49 +04:00
John Preston
afcebb136c Don't use MTP for PeerData::isSelf. 2021-12-02 13:36:49 +04:00
Ilya Fedin
8592326a3c Revert "Use kernel accelerated sendfile to copy files on Linux"
This reverts commit 34534a9653.
2021-12-02 09:15:23 +04:00
John Preston
0b308aebb2 Beta version 3.2.8.
- Fix crash in opening shared media with another user.
2021-12-01 13:29:53 +04:00
John Preston
f7ec60b958 Fix crash in opening shared media with another user. 2021-12-01 13:29:19 +04:00
GitHub Action
7b4bc64191 Update User-Agent for DNS to Chrome 96.0.4664.45. 2021-12-01 13:26:23 +04:00
Ilya Fedin
5c91506723 Update tg_owt in snap 2021-12-01 07:39:03 +04:00
Ilya Fedin
e5ee665fa4 Add support for webkit2gtk-5.0 and webkit2gtk-4.1 2021-12-01 07:39:03 +04:00
John Preston
60a95df652 Beta version 3.2.7.
- Active sessions list redesign.
- Fix disappearing emoji selector button.
- Fix a crash in archived stickers loading.
- Fix a crash in calls to old Telegram versions.
2021-11-30 22:43:22 +04:00
John Preston
28eb2f1a91 Return terminate session button to the list. 2021-11-30 21:08:15 +04:00
John Preston
168711b352 Use PeerList for sessions list (wip). 2021-11-30 20:44:15 +04:00
John Preston
7bf557971e Fix "Send As" button on Retina screens. 2021-11-30 20:19:23 +04:00
John Preston
40330afbd3 Use distinct strings for groups / channels noforwards. 2021-11-30 18:09:06 +04:00
Ilya Fedin
0f0ade54a7 Update lock-threads bot to v3 2021-11-30 17:58:00 +04:00
Ilya Fedin
899de8a359 Use default values for daysUntilClose and closeComment arguments of no-response bot
The current closeComment follows the default comment anyway and it seems the default value of daysUntilClose (14 days) would be fine
2021-11-30 17:58:00 +04:00
John Preston
fa32151391 Add distinct strings for groups / channels noforwards. 2021-11-30 17:56:46 +04:00
23rd
9706b84409 Slightly refactored api_bot. 2021-11-30 17:38:22 +04:00
23rd
77d1d9bd3a Moved out getting of phone pattern groups from PhoneInput fields. 2021-11-30 17:38:17 +04:00
23rd
d218b76efe Removed MTP::Error from migrating chat. 2021-11-30 17:38:12 +04:00
23rd
0dfb77435d Slightly refactored add_contact_box. 2021-11-30 17:38:03 +04:00
23rd
69dc6c98ce Removed unused MTPBool from callbacks on done. 2021-11-30 17:37:39 +04:00
23rd
3647241f71 Removed unused MTP::Error from callbacks on fail. 2021-11-30 17:37:07 +04:00
23rd
287a35d208 Removed MTP* from PrePasswordErrorBox. 2021-11-30 17:36:54 +04:00
John Preston
0c3b289af9 Add floating dates to CalendarBox selecting mode. 2021-11-30 17:36:37 +04:00
John Preston
5309af5d56 Restrict shared media selection in noforward chats. 2021-11-30 16:26:47 +04:00
John Preston
1d1fa5f98b Improve session details box design. 2021-11-30 16:06:41 +04:00
John Preston
92e398e0b7 Support new skin color modifiers in rlottie. 2021-11-30 16:05:52 +04:00
John Preston
47074b48d6 Improve sessions list design. 2021-11-30 13:44:31 +04:00
John Preston
94bec3b574 Fix crash in archived stickers loading.
Fixes #17297.
2021-11-30 09:29:28 +04:00
John Preston
234ff3ba37 Add some resources for sessions redesign. 2021-11-29 18:05:49 +04:00
John Preston
d4c6475ae8 Show sessions list in a Settings Section. 2021-11-29 17:30:14 +04:00
Ilya Fedin
2ad20d6c4a Instantiate a local dbus server for webview IPC 2021-11-29 16:23:51 +04:00
John Preston
bd0e4c0075 Backport fix for empty bus name to glibmm patch. 2021-11-29 16:21:07 +04:00
John Preston
09bed4989b Cherry-pick a crash-fix patch for Qt 6.2. 2021-11-29 15:59:48 +04:00
John Preston
2eb64e051b Don't start animations from QEvent::Enter.
The enter/leave events may be sent from ~QWidget() and if we start
animating something with grabbing of widgets it crashes sometimes.
2021-11-29 15:56:50 +04:00
John Preston
03775e0cc5 Allow to ban channels in groups from moderate actions. 2021-11-29 15:24:30 +04:00
John Preston
fc4cdd4482 Fix crash in legacy calls with new WebRTC. 2021-11-29 15:24:08 +04:00
John Preston
16232c0a4a Open channel profile from message sender click. 2021-11-29 14:54:31 +04:00
John Preston
3c0f80719e Don't show playlist with mouse over controls. 2021-11-29 11:11:38 +04:00
John Preston
c153cdc70e Change volume by wheel events on volume icon. 2021-11-29 11:11:16 +04:00
John Preston
07dfe88d62 Fix player controls with animations disabled. 2021-11-29 10:25:55 +04:00
John Preston
453ce1bff9 Beta version 3.2.6: Fix build on Linux. 2021-11-29 09:49:40 +04:00
John Preston
5afcd47ab0 Beta version 3.2.6: Update tg_owt revision in Dockerfile. 2021-11-29 09:47:47 +04:00
John Preston
abc40f7e43 Beta version 3.2.6: Add logs for scroll on Linux. 2021-11-29 09:47:47 +04:00
John Preston
f2915064b5 Fix "Send As" list refresh on admin anonymity change. 2021-11-29 09:24:38 +04:00
John Preston
8460a62588 Don't show "Send As" button when editing a message.
Fixes #17302.
2021-11-28 16:37:11 +04:00
John Preston
27e80b8e42 Fix crash in inconsistent local send as peer data. 2021-11-28 16:26:34 +04:00
John Preston
133f64f370 Fix disappearing emoji selector button. 2021-11-28 15:45:16 +04:00
John Preston
feb1e9c4af Beta version 3.2.6: Disable LTO in 64 bit Windows build. 2021-11-27 21:37:01 +04:00
John Preston
6850cc5ab4 Beta version 3.2.6: Fix build in Release on macOS. 2021-11-27 10:20:59 +04:00
John Preston
9360f1f970 Beta version 3.2.6: Fix build on macOS. 2021-11-26 23:51:47 +04:00
John Preston
57340f9514 Beta version 3.2.6.
- Try out the new audio player with playlist shuffle and repeat.
- Give a custom name to your desktop session
to distinguish it in the sessions list.
2021-11-26 23:06:39 +04:00
Ilya Fedin
4e63346877 Use AL_REMIX_UNMATCHED_SOFT enum value instead of hard-coded value
This makes the feature require version 1.21.0, previously was 1.20.1
2021-11-26 18:48:35 +04:00
Ilya Fedin
f69d0823a9 Get rid of oal-soft specific alext.h include 2021-11-26 18:48:35 +04:00
Ilya Fedin
02ae541246 Get rid of unnecessary udev in docker image 2021-11-26 18:29:03 +04:00
Ilya Fedin
8fda1169e5 Get rid of Platform::MainWindow::psLinux* 2021-11-26 18:28:37 +04:00
Ilya Fedin
53305f5f46 Fix paste check in Linux global menu 2021-11-26 18:28:37 +04:00
John Preston
75fc88d679 Use VS 2022 with 10.0.22000.0 SDK version. 2021-11-26 18:13:58 +04:00
John Preston
8264968718 Use cloud "disable calls" settings instead of local. 2021-11-26 18:04:03 +04:00
John Preston
598cec8a9d Show session details on click. 2021-11-26 18:00:22 +04:00
John Preston
f3e1aef264 Allow editing sessions auto-termination period. 2021-11-26 18:00:22 +04:00
John Preston
fe4bb19358 Improve custom device name input design. 2021-11-26 18:00:22 +04:00
John Preston
07ba84c857 Fix requesting bots list in megagroup. 2021-11-26 18:00:22 +04:00
John Preston
0f443da758 Track noforwards flag in specific messages. 2021-11-26 18:00:22 +04:00
John Preston
886ff7de50 Fix different colors in active emoji icon. 2021-11-26 18:00:22 +04:00
John Preston
5cb5e3cc22 Use similar dropdown for playback speed. 2021-11-26 18:00:22 +04:00
John Preston
82e150a27e Improve device model name handling. 2021-11-26 18:00:22 +04:00
John Preston
c947586091 Add reverse / shuffle options dropdown. 2021-11-26 18:00:22 +04:00
John Preston
eb6afdf438 Fix build on Windows. 2021-11-26 18:00:22 +04:00
John Preston
b634ebab78 Update API scheme on layer 135. 2021-11-26 18:00:22 +04:00
23rd
e2fbcd4b0e Replaced parsing of MTPChannelParticipant in AdminLog::GenerateItems. 2021-11-26 18:00:22 +04:00
23rd
f255573070 Replaced use of raw MTP* participant type with new transitional class. 2021-11-26 18:00:22 +04:00
23rd
c65468f270 Added new class Api::ChatParticipant. 2021-11-26 18:00:22 +04:00
23rd
503814ad4e Slightly refactored Api::ChatParticipants. 2021-11-26 18:00:22 +04:00
23rd
b9c64499bd Moved code for api participants to separated file. 2021-11-26 18:00:21 +04:00
23rd
3271cdf251 Removed duplicated MTP* rights generation. 2021-11-26 18:00:21 +04:00
23rd
0eee937e6d Moved ChatRestrictionsInfo and ChatAdminRightsInfo to separated file. 2021-11-26 18:00:21 +04:00
23rd
30cd3cb681 Removed MTP* from AdminLog::FilterValue. 2021-11-26 18:00:21 +04:00
23rd
d6a30c4853 Slightly refactored AdminLog::GenerateItems. 2021-11-26 18:00:21 +04:00
John Preston
551e1f787c Move volume dropdown management to audio player. 2021-11-26 18:00:21 +04:00
John Preston
cdf09e0519 Use composition for playbackSpeed button. 2021-11-26 18:00:21 +04:00
John Preston
4b489ee7d2 Fade out controls in a narrow player. 2021-11-26 18:00:21 +04:00
John Preston
ca61b80fe5 Update audio player icons. 2021-11-26 18:00:21 +04:00
John Preston
aef37be3d0 Move box divider colors to the palette. 2021-11-26 18:00:21 +04:00
John Preston
96c86b3e49 Update API scheme on layer 135. 2021-11-26 18:00:21 +04:00
John Preston
38367dc1c7 Allow repeat all in shuffle mode. 2021-11-26 18:00:21 +04:00
John Preston
7ef78ba6c9 Fix contact status buttons display. 2021-11-26 18:00:21 +04:00
John Preston
433169626b Fix restarting shuffled playlist. 2021-11-26 18:00:21 +04:00
John Preston
5cd339332c Implement shuffled playlist. 2021-11-26 18:00:20 +04:00
John Preston
d1b9785d31 Allow deleting all from a channel to a group. 2021-11-26 18:00:20 +04:00
John Preston
a7c9a1ab34 Fix chats list forwarded messages sender. 2021-11-26 18:00:20 +04:00
John Preston
9bc9547b1c Revert "Fix crash in imported messages in search."
This reverts commit 65d96c0364.
2021-11-26 18:00:20 +04:00
John Preston
5e3b094e86 Allow report / block / delete all from channels. 2021-11-26 18:00:20 +04:00
John Preston
8d66680a96 Show info about request chat admin incoming message. 2021-11-26 18:00:20 +04:00
John Preston
bdc43c0aea Update API scheme on layer 135.
Add channelAdminLogEventActionSendMessage admin log action.
2021-11-26 18:00:20 +04:00
John Preston
4cb6e4b787 Allow group / channel type box if !can_edit_username. 2021-11-26 18:00:20 +04:00
John Preston
596c4a06a3 Use button colors for the calendar selections. 2021-11-26 18:00:20 +04:00
John Preston
4f7c728632 Update API scheme on layer 135. 2021-11-26 18:00:20 +04:00
John Preston
7d89952541 Edit noforwards in group / channel type. 2021-11-26 18:00:20 +04:00
John Preston
0309eb023e Cycle through repeat modes by repeat toggle button. 2021-11-26 18:00:20 +04:00
John Preston
969b27cb75 Many-day selection by two clicks in the calendar. 2021-11-26 18:00:20 +04:00
John Preston
ecb4d1d9ba Support repeat all in the audio player. 2021-11-26 18:00:20 +04:00
John Preston
68378cf8e5 Support reversed order in the playlist. 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
49544111ab Allow setting custom device name. 2021-11-26 18:00:19 +04:00
John Preston
f3a00abe18 Fix working with new tg_owt. 2021-11-26 18:00:19 +04:00
John Preston
a511681113 Take session name from device model. 2021-11-26 18:00:19 +04:00
John Preston
aab4dbb7cf Hide export and fast share for noforwards. 2021-11-26 18:00:19 +04:00
John Preston
80fcffcc40 Delete history for specific days in private chats. 2021-11-26 18:00:19 +04:00
John Preston
aa0a9b2db9 Update API scheme on layer 135. 2021-11-26 18:00:19 +04:00
John Preston
b7c95e9636 Support selecting messages range. 2021-11-26 18:00:19 +04:00
John Preston
4414369fc8 Implement jump-to-start / end by long press in CalendarBox. 2021-11-26 18:00:19 +04:00
John Preston
15dc6064ef Improve CalendarBox title design for vertical layout. 2021-11-26 18:00:19 +04:00
John Preston
b9b609f445 Track month in CalendarBox while scrolling. 2021-11-26 18:00:19 +04:00
John Preston
be7cd51740 Start scrollable CalendarBox. 2021-11-26 18:00:19 +04:00
John Preston
f13e28a9c5 Use in-class initializers for bitfields. 2021-11-26 18:00:19 +04:00
John Preston
fe025e3c44 Move Send As phrases to the langpack. 2021-11-26 18:00:19 +04:00
John Preston
dd7568ed3a Fix Send As button visibility. 2021-11-26 18:00:19 +04:00
John Preston
b47e29b182 Fix custom chat themes in scheduled messages. 2021-11-26 18:00:19 +04:00
John Preston
dee8b1fe6f Don't attach outgoing items from a channel to each other. 2021-11-26 18:00:19 +04:00
John Preston
3c040ab5f9 Fix send as button refresh. 2021-11-26 18:00:19 +04:00
John Preston
17ffebb684 Fix local display of sent-as from anonymous admin. 2021-11-26 18:00:19 +04:00
John Preston
8c824edaa5 Choose send as in scheduled / discussions. 2021-11-26 18:00:19 +04:00
John Preston
ad52c0cb16 Single-click change Send As. 2021-11-26 18:00:18 +04:00
John Preston
773755d70e Send as a channel in HistoryWidget. 2021-11-26 18:00:18 +04:00
John Preston
1bd74fe478 Choose a channel to send messages as. 2021-11-26 18:00:18 +04:00
John Preston
4691cff3f6 Start SendAsButton in HistoryWidget. 2021-11-26 18:00:18 +04:00
John Preston
c849d17667 Remove corner download if noforwards. 2021-11-26 18:00:18 +04:00
John Preston
96c910190b Restrict saving files as if noforwards. 2021-11-26 18:00:18 +04:00
John Preston
fd6751233e Disable selecting items with actions. 2021-11-26 18:00:18 +04:00
John Preston
487e8a9009 Disable copy to clipboard if noforwards. 2021-11-26 18:00:18 +04:00
John Preston
3a536c6f75 Show forwards toggle in recent actions. 2021-11-26 18:00:18 +04:00
John Preston
154c0e6bb2 Don't show empty top bar selections. 2021-11-26 18:00:18 +04:00
John Preston
9be47f0870 Allow restricting forwards in groups / channels. 2021-11-26 18:00:18 +04:00
John Preston
431e3035af Update API scheme to layer 135. 2021-11-26 18:00:18 +04:00
John Preston
bf18907fe6 Fix video in calls working on tgcalls v2 implementation. 2021-11-26 18:00:18 +04:00
John Preston
c7678f17ac Fix build of tg_owt with VS 2022. 2021-11-26 18:00:18 +04:00
John Preston
0c695a6a9a Update tg_owt with desktop capture fix on macOS. 2021-11-26 18:00:18 +04:00
John Preston
efe12e0289 Fix tg_owt build on Windows with C++20. 2021-11-26 18:00:18 +04:00
John Preston
dad11a17dd Build tg_owt / tgcalls / tgvoip with C++20. 2021-11-26 18:00:18 +04:00
John Preston
dbf673f674 Build new tgcalls with C++20 on Windows. 2021-11-26 18:00:17 +04:00
John Preston
9308615361 Fix crash in search in Finder on macOS. 2021-11-24 17:37:33 +04:00
Ilya Fedin
c7433477bc Use ninja as much as possible in docker 2021-11-21 09:51:01 +04:00
John Preston
8a1140c09f Extract Media::Player::Dropdown widget. 2021-11-18 21:51:10 +04:00
John Preston
a2bf1544df Remove Q_OBJECT from VolumeWidget. 2021-11-18 21:51:10 +04:00
John Preston
f4a6be2ed9 Move audio player icons to "player" folder. 2021-11-18 21:51:10 +04:00
Ilya Fedin
6b24eb6d8e Update lib_webview 2021-11-18 20:32:52 +04:00
Ilya Fedin
a55dbe212a Cleanup unneeded commands in Dockerfile 2021-11-18 20:32:52 +04:00
Ilya Fedin
55e44e3675 Use GCC 10 in GH action 2021-11-18 20:32:52 +04:00
Ilya Fedin
dc8aefd7ad Use GCC 10 in snap 2021-11-18 20:32:52 +04:00
John Preston
33f56a791a Show correct tooltip on YouTube timestamps. 2021-11-18 17:13:04 +04:00
John Preston
f2e4a5a35a Highlight YouTube video timestamps as external links. 2021-11-18 16:03:12 +04:00
John Preston
ebded1b421 Use Photo/DocumentData::isNull instead of date check. 2021-11-18 11:40:15 +04:00
John Preston
53c15ed2ac Make SendingAlbum::Item::Item non-inline. 2021-11-18 11:04:18 +04:00
John Preston
3b2f6b893d Hide MTPInputFile in Api::RemoteFileInfo. 2021-11-18 11:04:06 +04:00
John Preston
5d0445dd25 Remove unneeded namespace qualifiers. 2021-11-18 11:03:03 +04:00
John Preston
12eda0bb26 Use C++20 on Linux with GCC 10. 2021-11-17 10:03:14 +04:00
John Preston
96a3c704d2 Use Ninja Multi-Config generator on Linux. 2021-11-17 10:03:14 +04:00
John Preston
a02642b917 Switch to devtoolset-10 in Docker. 2021-11-17 10:03:14 +04:00
Ilya Fedin
80fe3d732a Try to fix snap store upload 2021-11-16 18:06:25 +04:00
John Preston
f55d3d1c6a Version 3.2.5: Add information about macOS build. 2021-11-16 14:35:28 +04:00
John Preston
deea69e119 Version 3.2.5. [Windows]
- Fix connecting in case bad characters appear in device name.
2021-11-16 12:45:34 +04:00
John Preston
6925bf6a8e Refresh global proxy after settings being read.
Fixes #16600, fixes #17249.
2021-11-16 12:39:24 +04:00
John Preston
a0110fed27 Allow to see who viewed message from the migrated history. 2021-11-16 12:39:19 +04:00
John Preston
30a945a043 Clean device name string.
Fixes #17243.
2021-11-16 12:38:59 +04:00
Amin Vakil
c062b4b3a1 Run yum clean all also for remote installations
They may try to install some dependencies from official centos mirrors.
2021-11-15 23:24:20 +04:00
Amin Vakil
06fb5540e1 Run yum clean all after package installation
KISS :)

Co-authored-by: ilya-fedin <fedin-ilja2010@ya.ru>

Make it in oneline

Co-authored-by: ilya-fedin <fedin-ilja2010@ya.ru>

perl-XML-Parser installation has been moved

Co-authored-by: ilya-fedin <fedin-ilja2010@ya.ru>

Typo

Co-authored-by: ilya-fedin <fedin-ilja2010@ya.ru>
2021-11-15 23:24:20 +04:00
John Preston
0e9a7ffe46 Version 3.2.4.
- Fix editing of scheduled messages on macOS.
- Fix launching on Chrome OS in Crostini container (fixes #17210).
2021-11-13 13:51:38 +04:00
John Preston
2f48fe920e Fixed edit of scheduled messages. 2021-11-13 13:44:56 +04:00
Ilya Fedin
936d4004ff Update controls geometry in MainWindow according to body changes 2021-11-10 19:30:29 +04:00
Ilya Fedin
fd03217032 Update patches in Docker 2021-11-09 16:17:45 +04:00
John Preston
963722cce1 Version 3.2.3.
- Fix autoupdater launch on macOS.
2021-11-08 17:44:53 +04:00
John Preston
b890b9542c Try fixing build on Linux. 2021-11-08 17:43:23 +04:00
John Preston
9b2d080e8e Fix restart before exec on macOS. 2021-11-08 17:42:33 +04:00
John Preston
6eaeb306d6 Add a RequestDependentMessageData method. 2021-11-08 12:37:02 +04:00
John Preston
213d7875ba Rename insertLocalMessage -> insertMessageToBlocks. 2021-11-08 12:37:02 +04:00
John Preston
7ff74b9e1e Fix build without DBus. 2021-11-07 12:53:10 +04:00
John Preston
bd5f145a8c Fix unwrapped media display in Replies chat. 2021-11-07 12:51:20 +04:00
John Preston
c534f3f22e Some internal HistoryItem refactoring.
Replace most IsServerMsgId / id <=> 0 with isRegular().
Track isLocal / isHistoryEntry in flags.
Remove toHistoryMessage.
2021-11-07 12:50:13 +04:00
Ilya Fedin
22b37c4bf8 Use webkitgtk without its headers 2021-11-06 16:33:39 +04:00
Ilya Fedin
1e60eb1894 Adjust snap permissions
Due to the removal of beariers, network-manager-observe shouldn't be needed anymore.
hardware-observe is needed for DeviceModelPretty, though.
Added systemd to stage-packages for calling systemd-detect-virt.
pulseaudio is a legacy interface, audio-playback and audio-record replace it.
2021-11-06 10:28:28 +04:00
John Preston
af93d7cc97 History::createItem returns not_null. 2021-11-06 00:36:16 +04:00
Ilya Fedin
0e6e263a7b Use epoxy in snap 2021-11-05 19:41:03 +04:00
John Preston
c0b106015c Version 3.2.2: Update lib_ui. 2021-11-05 17:03:07 +04:00
John Preston
681a3e602b Version 3.2.2: Update lib_base. 2021-11-05 16:25:23 +04:00
John Preston
00f75ca5d6 Version 3.2.2.
- Fix webpage preview links when View Button is present.
- Fixed possible crash on sponsored messages.
2021-11-05 15:32:03 +04:00
John Preston
c0f898b069 Cache sponsored messages for 5 minutes. 2021-11-05 15:28:45 +04:00
John Preston
d0cb387c6e Fix layout of webpage preview with a sticker with small height. 2021-11-05 15:28:32 +04:00
23rd
55eb381bd2 Removed display of stale sponsored messages. 2021-11-05 11:27:26 +03:00
John Preston
5565da5308 Fix webpage with ViewButton links in text. 2021-11-05 10:37:38 +04:00
John Preston
1ea6224e60 Fix autostart toggling. 2021-11-05 10:15:41 +04:00
23rd
5c4b68d632 Fixed possible crash on sponsored messages. 2021-11-05 08:27:33 +03:00
John Preston
f4a3d87b5d Update icon assets in Windows Store build. 2021-11-04 12:55:05 +04:00
John Preston
f10ed4b9bc Support autostart in Windows Store version.
Fixes #3234.
2021-11-04 12:36:28 +04:00
Ilya Fedin
81327ede7b Build Qt without high DPI scaling support 2021-11-04 10:20:48 +04:00
Ilya Fedin
9a4b8cdd82 Use QPlatformScreen::logicalDpi instead of QScreen::logicalDotsPerInch
QScreen::logicalDotsPerInch can be overriden by QT_FONT_DPI what is not good
2021-11-04 10:18:03 +04:00
John Preston
f882a0f407 Version 3.2.1.
- Remove AppImage icon hack and -pie. (Linux only)
2021-11-04 01:11:13 +04:00
John Preston
e48fd5d079 Revert "Re-enable -pie along with AppImage-like format hack."
This reverts commit d58b9dc954.

AppImage hack fired back: #17183
2021-11-03 21:35:50 +04:00
John Preston
63919422e0 Version 3.2: Fix build error on Linux. 2021-11-03 17:56:32 +04:00
John Preston
d6e6c51639 Version 3.2.
- Create special invite links that require admins
to approve users before they become members.
- Admins can view the applicants' profiles and bios
by tapping the Join Requests bar at the top of the chat.
- Add internal labels to your chat's Invite Links
to keep them organized.
- More Interactive Emoji - 👻, :dislike:, :face_vomiting:,
😂, 💸 or 🎃
2021-11-03 16:38:14 +04:00
John Preston
95a24d6aa1 Don't limit invite import aboutRequests text. 2021-11-03 16:27:51 +04:00
John Preston
fa28b0b405 Fallback to "Desktop" instead of "PC". 2021-11-03 16:24:37 +04:00
John Preston
42fcf4ceb2 Add patch system version component on macOS. 2021-11-03 16:18:31 +04:00
John Preston
3743dd0161 Fix small window icon counter.
Regression was introduced in aef45b3a1d.
2021-11-03 16:14:20 +04:00
John Preston
dab859ea29 Fix sponsored messages about text layout. 2021-11-03 16:01:38 +04:00
John Preston
a92394a81f Hide "Request admin approval" in public peers. 2021-11-03 16:01:25 +04:00
John Preston
7a57174ab1 Register sponsored view only on full message show. 2021-11-03 15:49:48 +04:00
23rd
52bacb3cde Improved tracking of views for sponsored messages. 2021-11-02 20:58:35 +03:00
23rd
8ad9770118 Fixed missed CallId alias. 2021-11-02 20:58:35 +03:00
John Preston
aef45b3a1d Refactor icon unread counter painting. 2021-11-02 20:12:57 +04:00
John Preston
87af865604 Fix warning about inactive QPainter. 2021-11-02 20:12:51 +04:00
John Preston
4efeaacf5c Add send context menu to StickerSetBox. 2021-11-02 20:11:20 +04:00
John Preston
e73928f6a3 Beta version 3.1.13.
- Fix requests to groups / channels processing.
- Fix internal link previews with View Content button layout.
- Fix crash in messages search with imported messages results.
- Don't use fractional system UI scaling on Linux.
- Fix invite link icons on macOS.
- Several crash fixes.
2021-11-02 11:28:53 +04:00
John Preston
589ddb7b22 Add network reachability plugin on macOS. 2021-11-02 11:16:54 +04:00
John Preston
6d73b11d54 Move "Request approval" button to the top. 2021-11-02 10:22:12 +04:00
John Preston
81ff4d7497 Show joined list on permanent link "N joined" click. 2021-11-02 10:10:48 +04:00
John Preston
e4ac810773 Allow exactly 1x20 aspect in photos. 2021-11-02 09:59:06 +04:00
John Preston
7e9302fce8 Try linking with -z,now on Linux once again. 2021-11-02 09:43:20 +04:00
John Preston
bd2fe2f68e Debug std::isnan assertion violation. 2021-11-02 09:37:33 +04:00
John Preston
e73c049899 Fix crash in PopupMenu hide on macOS. 2021-11-02 00:18:57 +04:00
John Preston
dab3bce8ba Fix crash on macOS before the app starts. 2021-11-02 00:07:22 +04:00
John Preston
eae6e4fc60 Fix build on non-Windows. 2021-11-02 00:06:56 +04:00
John Preston
79a8fced80 Fix scrolling by Page Up / Down by Qt 6 patch. 2021-11-01 16:57:40 +04:00
John Preston
3bd9ccd45d Don't generate dSYM for macOS build. 2021-11-01 16:57:40 +04:00
John Preston
1bfa97d4fd Fix invite link icons on macOS Retina. 2021-11-01 16:57:40 +04:00
John Preston
3b4b5d3576 Don't activate PeerListRow elements on mouse down. 2021-11-01 16:57:40 +04:00
John Preston
98cb1478c7 Fix requests list processing. 2021-11-01 16:04:30 +04:00
John Preston
099326f211 Don't set window border color on Windows 11.
When set it can only be opaque which doesn't look great.
When left default it is made of a semi-transparent shadow color.
2021-11-01 15:03:28 +04:00
John Preston
8b4a95826c Fix webpage layout with ViewButton. 2021-11-01 14:54:44 +04:00
Ilya Fedin
27a9b61f72 Avoid Qt's fractional scaling 2021-11-01 13:12:13 +04:00
GitHub Action
bad193ec29 Update User-Agent for DNS to Chrome 94.0.4606.81. 2021-11-01 13:12:00 +04:00
John Preston
60444b1fee Fix message ViewButton rendering in 1x. 2021-11-01 13:11:34 +04:00
John Preston
65d96c0364 Fix crash in imported messages in search. 2021-11-01 13:11:34 +04:00
John Preston
28f85eb710 Allow running custom commands through prepare script. 2021-11-01 11:51:49 +04:00
John Preston
63485dbf7f Change sponsored messages about link. 2021-11-01 11:50:55 +04:00
John Preston
d58b9dc954 Re-enable -pie along with AppImage-like format hack.
Fixes #1112.

This allows the binary to be launched even when compiled with -pie.
2021-10-31 16:49:44 +04:00
John Preston
7b8b50ecd5 Beta version 3.1.12.
- Create special invite links that require admins
to approve users before they become members.
- Admins can view the applicants' profiles and bios
by tapping the Join Requests bar at the top of the chat.
- Add internal labels to your chat's Invite Links
to keep them organized.
- Run natively on Apple Silicon (macOS only).
2021-10-31 12:33:22 +04:00
John Preston
5cbfdad2e8 Separate strings for "requested to join {date}". 2021-10-31 12:33:22 +04:00
John Preston
51addb7320 Fix build on Windows 64 bit. 2021-10-31 12:28:22 +04:00
John Preston
e652b4b65e Improve DeviceModelPretty. 2021-10-31 11:31:13 +04:00
John Preston
510e1e9cdf Fix one more unused variable warning. 2021-10-31 11:01:39 +04:00
John Preston
057e8ce391 Fix drag by title on macOS. 2021-10-31 10:14:00 +04:00
John Preston
1d655fb5b5 Fix build on Windows and Linux CI. 2021-10-31 10:07:12 +04:00
John Preston
5761e7559a Fix compilation error on GCC. 2021-10-31 09:45:43 +04:00
23rd
c55dc00180 Added selecting scroll to sections.
Fixed #17136.
2021-10-30 21:22:51 +03:00
23rd
27dc91e51a Moved management of selecting scroll to separated class in td_ui. 2021-10-30 21:22:51 +03:00
23rd
6ef67caa73 Fixed emoji clearing in sections when sending failed due to slowmode.
Fixed #17149.
2021-10-30 21:22:51 +03:00
Ilya Fedin
b36fce31d5 Add missing libSM and libICE to snap 2021-10-30 21:46:48 +04:00
John Preston
aaafa8b3f6 Fix compilation error on GCC. 2021-10-30 17:19:58 +04:00
John Preston
b4950fe943 Fix build for Mac App Store. 2021-10-30 17:19:24 +04:00
John Preston
7ad6699bff Show mouse hold tip when clicking record button. 2021-10-30 15:13:18 +04:00
John Preston
05efc925f8 Fix CMake warning when running on Windows. 2021-10-30 15:03:45 +04:00
23rd
06c9cac2e4 Updated Qt license. 2021-10-30 14:20:20 +04:00
Ilya Fedin
4b33d7cb2f Fix Qt dependencies in snap
Qt uses libOpenGL and libGLX instead of libGL now
2021-10-30 14:02:37 +04:00
John Preston
9c0bf32b84 Fix tg_owt build in prepare script on Windows. 2021-10-29 22:29:05 +04:00
Ilya Fedin
2a504dd90d Update lib_base 2021-10-29 22:06:46 +04:00
Ilya Fedin
97881e7754 Default to Qt 6 on Linux and macOS 2021-10-29 22:06:46 +04:00
Ilya Fedin
e42f08f08d Switch snap to Qt 6 2021-10-29 22:06:46 +04:00
John Preston
42015d6a72 Use new defaults in configure invocations. 2021-10-29 22:05:21 +04:00
John Preston
094010a91d Fix Breakpad + remove Crashpad build on Windows. 2021-10-29 22:01:04 +04:00
John Preston
f71a2149f3 Improve defaults in prepare script. 2021-10-29 21:21:33 +04:00
John Preston
1297860652 Fix build of minidump_stackwalk. 2021-10-29 21:11:23 +04:00
John Preston
c528ea24ea Version 3.1.11.
- Create special invite links that require admins to approve users before they become members.
- Admins can view the applicants' profiles and bios by tapping the Join Requests bar at the top of the chat.
- Add internal labels to your chat's Invite Links to keep them organized.
- Run natively on Apple Silicon (macOS only).
2021-10-29 19:06:19 +04:00
John Preston
fa8792927e Improve invite link name phrases. 2021-10-29 18:31:07 +04:00
John Preston
aaae5b0553 Support invite link label editing. 2021-10-29 18:31:07 +04:00
John Preston
eb82664452 Use recent requester userIds from API. 2021-10-29 18:31:07 +04:00
John Preston
36271d6b85 Save recent requester userIds from API. 2021-10-29 18:31:07 +04:00
John Preston
f839c7f2bb Update API scheme on layer 134. 2021-10-29 18:31:07 +04:00
John Preston
94dc595a81 Show full profile from group members list. 2021-10-29 18:31:07 +04:00
John Preston
2f4651fe6f Fix build on macOS. 2021-10-29 18:31:07 +04:00
John Preston
97ae094c3c Update API scheme with new cloud themes. 2021-10-29 18:31:07 +04:00
John Preston
045689fab1 Highlight links in about. 2021-10-29 18:31:07 +04:00
John Preston
47d957f942 Add 5 lines of About to group call context menu. 2021-10-29 18:31:07 +04:00
John Preston
d0606a3798 Show PeerShortInfoCover in group call context menu. 2021-10-29 18:31:07 +04:00
John Preston
bcddda3cd3 Extract PeerShortInfoCover from the box. 2021-10-29 18:31:07 +04:00
John Preston
b5f50a4b9f Preload photos in PeerShortInfoBox. 2021-10-29 18:31:07 +04:00
John Preston
9c77f26a8b Show radial progress in PeerShortInfoBox photo. 2021-10-29 18:31:07 +04:00
John Preston
d73d5724d8 Show radial progress in PeerShortInfoBox video. 2021-10-29 18:31:07 +04:00
John Preston
9f21da8bde Display profile video playback progress. 2021-10-29 18:31:07 +04:00
John Preston
6b137b9778 Make full PeerShortInfoBox scrollable. 2021-10-29 18:31:07 +04:00
John Preston
c9e5eadb06 Use a detailed phrase for single user join request. 2021-10-29 18:31:07 +04:00
John Preston
05bdef041b Improve PeerShortInfoBox cover updating. 2021-10-29 18:31:07 +04:00
John Preston
360a92c198 Show user photos overview in PeerShortInfoBox. 2021-10-29 18:31:07 +04:00
John Preston
64f6b86739 Return local search to requests box. 2021-10-29 18:31:07 +04:00
John Preston
dcc14a4726 Add info rows to PeerShortInfoBox. 2021-10-29 18:31:07 +04:00
John Preston
2ca5f26546 Don't show "You:" in private chats. 2021-10-29 18:31:07 +04:00
John Preston
24e0ea2a59 Show profile video in PeerShortInfoBox. 2021-10-29 18:31:07 +04:00
John Preston
61ac7e6c1d Start PeerShortInfoBox for small in-box profiles. 2021-10-29 18:31:06 +04:00
John Preston
49b28ac695 Reuse "info_add_member" icon for requests management. 2021-10-29 18:31:06 +04:00
John Preston
2163957299 Fix empty chat history after custom themed chat. 2021-10-29 18:31:06 +04:00
John Preston
2e1981c5a6 Improve confirm join box design. 2021-10-29 18:31:06 +04:00
John Preston
ab60628386 Usage limit and requests are mutually exclusive. 2021-10-29 18:31:06 +04:00
John Preston
2ade6be146 Show correct phrase in local join messages. 2021-10-29 18:31:06 +04:00
John Preston
721aac57a5 Fix processing requests from search results. 2021-10-29 18:31:06 +04:00
John Preston
8618f6d7eb Push recent requests from requests box to the bar. 2021-10-29 18:31:06 +04:00
John Preston
7543351bc9 Add pending requests bar in the chat. 2021-10-29 18:31:06 +04:00
John Preston
0dfbd5fa6e Allow processing requests from full list. 2021-10-29 18:31:06 +04:00
John Preston
9dfbc96274 Display full list of requests. 2021-10-29 18:31:06 +04:00
John Preston
ab58aa020e Allow many custom elements in PeerListRow. 2021-10-29 18:31:06 +04:00
John Preston
7f428f2eeb Show full requests list in a box. 2021-10-29 18:31:06 +04:00
John Preston
b4895ef730 Allow to accept / reject requests by link. 2021-10-29 18:31:06 +04:00
John Preston
9e05e44a14 Inform about join request being sent. 2021-10-29 18:31:06 +04:00
John Preston
3af3f85f82 Allow creating approve-only invite links. 2021-10-29 18:31:06 +04:00
John Preston
e471d61d7a Enable ads leading to a specific channel post. 2021-10-29 18:31:06 +04:00
John Preston
185523f66f Update API scheme to layer 134. 2021-10-29 18:31:06 +04:00
John Preston
66a83d3862 Update build script for macOS. 2021-10-29 18:29:29 +04:00
John Preston
ad9d15dd21 Remove debug code from resource loading. 2021-10-29 17:42:57 +04:00
John Preston
f204b9fca0 RegisterBundledResources only on macOS. 2021-10-29 17:42:57 +04:00
John Preston
a3e3bcd46d Fix repeated phoneCallRequested update handling. 2021-10-29 17:42:57 +04:00
John Preston
c693b03a64 Update breakpad build in Windows CI. 2021-10-29 17:42:57 +04:00
John Preston
31f15a2f09 Beta version 3.1.10.
- Native support for M1 on macOS.
2021-10-29 16:11:15 +04:00
John Preston
45b5e1241c Show device model in sessions list on Windows / Linux. 2021-10-29 16:11:15 +04:00
John Preston
43d42b54f8 Closed alpha version 3.1.9.5: Separate macOS updates. 2021-10-29 16:10:07 +04:00
John Preston
090277d7a1 Upload a separate macOS ARM update. 2021-10-29 16:10:07 +04:00
John Preston
766b393295 On macOS build autoupdates single-arch + universal setup. 2021-10-29 16:10:07 +04:00
John Preston
b2d647b579 Add support for fcitx-qt5 on Qt 6.2. 2021-10-29 16:10:07 +04:00
John Preston
1ed6844247 Use Qt resources from a file on macOS. 2021-10-29 16:10:07 +04:00
John Preston
5276e5b4ae Build minidump_stackwalk separately.
On macOS gyp is no longer required for non-official builds.
2021-10-29 16:10:07 +04:00
John Preston
6587f89db1 Update Breakpad to the latest commit. 2021-10-29 16:10:07 +04:00
John Preston
fb262b265b Link a single crashpad_client library. 2021-10-29 16:10:07 +04:00
John Preston
95074ef304 Closed alpha version 3.1.9.2 for macOS. 2021-10-29 16:10:07 +04:00
John Preston
4ac93806aa Fix emoji in the input fields on macOS with Qt 6.2. 2021-10-29 16:10:07 +04:00
John Preston
92b3149cdd Pass CMAKE_OSX_ARCHITECTURES from command line to configure. 2021-10-29 16:10:07 +04:00
John Preston
98c87d4a16 Dump symbols for both macOS builds. 2021-10-29 16:10:07 +04:00
John Preston
9a93d5811a Closed alpha version 3.1.9.1: Universal 2 macOS build. 2021-10-29 16:10:07 +04:00
John Preston
759e3270cc Fix popup menu transparency on macOS with Qt 6.2. 2021-10-29 16:10:07 +04:00
John Preston
746b72166f Fix main window drag-by-title on macOS with Qt 6.2. 2021-10-29 16:10:07 +04:00
John Preston
0292df12ef Working Universal 2 build. 2021-10-29 16:10:07 +04:00
John Preston
1e86c07505 Build FFMpeg as Universal 2 binaries. 2021-10-29 16:10:07 +04:00
John Preston
47b6956be9 Update crashpad to a new revision. 2021-10-29 16:10:07 +04:00
John Preston
df8708ef1e Build some dependencies as Universal 2 binaries. 2021-10-29 16:10:07 +04:00
John Preston
20c0be0df6 Use python from a correct folder. 2021-10-29 16:10:07 +04:00
23rd
cefdc29a7f Fixed release build of Breakpad on clean macOS. 2021-10-29 16:10:07 +04:00
23rd
70e9b4a332 Moved type of call id to alias. 2021-10-29 16:10:07 +04:00
23rd
08939ac51d Fixed display of edit badge in albums. 2021-10-29 16:10:07 +04:00
23rd
b5d9947408 Slightly improved code style in Calls:Call. 2021-10-29 16:10:07 +04:00
23rd
78f0cf908e Moved RateCallBox to td_ui. 2021-10-29 16:10:07 +04:00
23rd
93ae5e71f7 Guarded timers for online processing in touchbar's PinnedDialogButton. 2021-10-29 16:10:07 +04:00
Ilya Fedin
b8b268c7cc Add build architecture to version on other systems with non-x86_64 2021-10-29 16:02:41 +04:00
Ilya Fedin
c991bbc7e3 Reduce obtrusiveness of the lock bot 2021-10-29 16:02:15 +04:00
Ilya Fedin
45bbe33929 Multiple scale values in UI by device pixel ratio on non-Mac
To avoid confusion
2021-10-25 19:55:11 +04:00
John Preston
5aaa72e8cd Fix crash in scheduled emoji interactions.
Fixes #17093.
2021-10-25 09:43:22 +04:00
John Preston
57345cec3b Discard incoming calls by ring_timeout (1.5 minutes). 2021-10-25 09:43:12 +04:00
John Preston
fba17a8c25 Update description in lib/xdg/telegramdesktop.appdata.xml.in. 2021-10-25 09:23:36 +04:00
Ilya Fedin
70147922ae Re-enable kwayland with Qt 6 2021-10-25 08:59:43 +04:00
Ilya Fedin
44cc3c7809 Update submodules 2021-10-24 20:01:55 +04:00
Ilya Fedin
c50a5db277 Restore dbusmenu-qt dependent functionality with Qt 6 2021-10-24 20:01:55 +04:00
John Preston
389ea2af83 Fix compilation error on Linux. 2021-10-22 18:34:59 +04:00
John Preston
4cf9bf18e9 Fix clearing of macOS native notifications. 2021-10-21 23:37:14 +04:00
John Preston
7bc4b2c595 Add StickersSet::thumbnailBigFileBaseCacheKey. 2021-10-21 23:01:14 +04:00
John Preston
9075489c18 Use last history item date for jump-to-date. 2021-10-21 23:01:13 +04:00
John Preston
d361f5c6b0 Hide native notifications of deleted messages. 2021-10-21 23:01:13 +04:00
John Preston
1f95e00793 Fix "Copy Selected Text" appearing outside of selection. 2021-10-21 22:59:49 +04:00
John Preston
3d8899b9dc Update tg_owt revision. 2021-10-21 22:53:12 +04:00
John Preston
dba9aa30f7 Fix build action on macOS. 2021-10-21 21:01:33 +04:00
John Preston
3626943fc9 Use Qt 6.2 build on macOS GitHub action. 2021-10-21 20:20:35 +04:00
John Preston
1f6a9ab556 Fix prepare libraries on macOS with Qt 6.2. 2021-10-21 20:19:56 +04:00
John Preston
f7085b40b1 Support building macOS version with Qt 6.2. 2021-10-21 19:49:48 +04:00
Ilya Fedin
7222bc63f7 Update MozJPEG 2021-10-21 19:31:22 +04:00
Ilya Fedin
3dacbc6bf6 Ignore changes to Dockerfile on mac 2021-10-21 19:31:22 +04:00
Ilya Fedin
9dfa29ff0f Avoid using scl binary since it breaks conditions 2021-10-21 18:31:08 +04:00
Ilya Fedin
a1e67b6177 Fix failing on exit code check 2021-10-21 15:51:36 +04:00
Ilya Fedin
03a687c200 Adapt Dockerfile for Qt 6 2021-10-21 15:43:59 +04:00
Ilya Fedin
847c01d605 Add Qt 6 support
Tested only on Linux so far
2021-10-21 13:15:00 +04:00
23rd
ea10cf5758 Moved api polls processing to separated file. 2021-10-20 22:56:19 +03:00
23rd
159beb138a Moved api peer photo processing to separated file.
Removed MainWidget::deletePhotoLayer.
2021-10-20 22:56:19 +03:00
23rd
36d6682122 Improved code style in ChangePhoneBox. 2021-10-20 04:06:17 +03:00
23rd
25f6bea66e Moved ConfirmPhoneBox to td_ui. 2021-10-19 06:34:28 +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
3fa529d858 Extracted MaxInviteBox to separated file. 2021-10-19 06:34:27 +03:00
23rd
9117b3cdfa Extracted DeleteMessagesBox to separated file. 2021-10-19 06:34:27 +03:00
23rd
d4fe5f7a83 Extracted PinMessageBox to separated file. 2021-10-19 06:34:27 +03:00
23rd
fa6725c54a Extracted api code from ConfirmPhoneBox to separated file. 2021-10-19 06:34:27 +03:00
23rd
f9976005f7 Moved ShowPhoneBannedError to separated file. 2021-10-19 06:34:27 +03:00
23rd
c6e1b14429 Added Window::SessionController to ChangePhoneBox. 2021-10-19 06:34:27 +03:00
23rd
30681e2e58 Moved widget sliders to td_ui. 2021-10-19 06:34:27 +03:00
23rd
c15ba7d23a Moved SentCodeField to td_ui. 2021-10-19 06:34:27 +03:00
23rd
94d5d20281 Simplified saving self bio. 2021-10-19 06:34:27 +03:00
23rd
b776308fd7 Moved some constants for peer editing to separated file. 2021-10-19 06:34:27 +03:00
23rd
2d37920a4c Improved code style in some peer boxes. 2021-10-19 06:34:27 +03:00
23rd
ee05e0af06 Improved code style in UsernameBox. 2021-10-19 06:34:27 +03:00
23rd
2efd735243 Removed static storing of passport config. 2021-10-14 17:41:52 +03:00
John Preston
adb0a9b6f0 Fix document filenames.
Regression was introduced in 2b11e45692.
2021-10-11 22:58:24 +04:00
CoderTimZ
c9e24c2283 Display dates with the system date format 2021-10-11 21:56:29 +04:00
John Preston
041c922451 Add non-MTP ParseWebPageType. 2021-10-11 21:54:07 +04:00
John Preston
01c1096c62 Save Data::Session* in GameData. 2021-10-11 21:53:18 +04:00
John Preston
2b11e45692 Add DocumentData::setFileName. 2021-10-11 21:52:49 +04:00
23rd
6163e922b3 Added view button to webpages. 2021-10-10 19:30:38 +03:00
John Preston
1613495425 Version 3.1.9.
- Fix crash in chat closing while scrolling (macOS only).
2021-10-08 22:37:36 +04:00
23rd
455c7280a4 Fixed possible crash in scroll of empty HistoryWidget. 2021-10-08 19:10:39 +03:00
John Preston
746f8d835d Version 3.1.8.
- Show small media previews in chats list.
- Show media album previews and caption text in chats list.
- Add "Quick Reply" and "Mark as Read" to native Windows notifications.
2021-10-08 13:51:22 +04:00
John Preston
d66e9a1b00 Remove -pie linker flag.
See https://gitlab.gnome.org/GNOME/nautilus/-/issues/1601
2021-10-08 13:50:27 +04:00
John Preston
8cca75da5c Handle foreign instance in COM toast activator. 2021-10-08 13:46:52 +04:00
John Preston
8d0ff1b61d Try setting current window as foreground on activate. 2021-10-08 12:20:24 +04:00
John Preston
dd856b9e4a Use real QWindow for taskbar icon hider.
Fixes #17081.
2021-10-08 12:19:41 +04:00
23rd
eb5ba12ba3 Fixed ability to copy original caption in admin log.
Fixed #17076.
2021-10-08 10:39:36 +04:00
23rd
e2c5995a2e Fixed timestamp highlighting in albums.
Fixed #17078.
2021-10-08 10:39:36 +04:00
23rd
ef10bb2bd6 Fixed editing caption of album from context menu.
Fixed #17077.
2021-10-08 10:39:36 +04:00
23rd
64aa5480ad Fixed display edited badge in scheduled albums.
Moved hideEditedBadge from HistoryMessage to HistoryItem.
2021-10-08 10:39:36 +04:00
23rd
816f422e21 Removed MTP* from applying message edition.
Fixed #17073.
2021-10-08 10:39:36 +04:00
23rd
6c0dccd9ff Fixed replying in replies by double click.
Fixed #16645.
2021-10-08 10:39:36 +04:00
23rd
c2b505b78c Added ability to open specific post from sponsored messages. 2021-10-08 10:39:27 +04:00
23rd
d8fb5be9b5 Moved opening peer from PeerClickHandler to SessionController. 2021-10-07 23:32:10 +03:00
23rd
51b259fdea Updated ad description. 2021-10-07 23:32:10 +03:00
John Preston
d532b65d1c Don't use MTP* for replies data. 2021-10-07 22:57:44 +04:00
John Preston
bef35b9bc3 Don't use MTP* in call and invoice media data. 2021-10-07 18:22:28 +04:00
John Preston
ae261fcede Beta version 3.1.7.
- Fix channel message views and comments counter updates.
- Sponsored messages support.
- Crash fix.
2021-10-07 11:42:24 +04:00
John Preston
c04cdff7f7 Disable group call logs to console. 2021-10-07 11:42:24 +04:00
John Preston
466aa5a14d Fix view button style. 2021-10-07 11:38:07 +04:00
John Preston
4aac633413 Fix views increment.
Regression was introduced in 21aa1f49d7.

Fixes #17069.
2021-10-07 11:29:30 +04:00
23rd
ad328d35a2 Added box for ad description. 2021-10-07 11:09:09 +04:00
23rd
c5140f34a7 Added view button to sponsored messages. 2021-10-07 11:09:09 +04:00
23rd
419f6345b3 Added sponsored messages to HistoryWidget. 2021-10-07 11:09:09 +04:00
23rd
c2c53df886 Added new Ui::СontinuousScroll. 2021-10-07 11:09:09 +04:00
23rd
b3f73bb6a9 Added badge for sponsored messages. 2021-10-07 11:09:08 +04:00
23rd
eda5cd47ad Added manager of sponsored messages. 2021-10-07 11:09:08 +04:00
John Preston
0c906a5e6d Fix crash in local changelog messages. 2021-10-07 10:58:24 +04:00
John Preston
352768053d Beta version 3.1.6: Fix build on Linux. 2021-10-06 21:07:18 +04:00
John Preston
79b1cec4f3 Beta version 3.1.6: Remove -z,all from linker flags on Linux.
I hope it fixes #17037.
2021-10-06 20:37:39 +04:00
John Preston
8d09190439 Build ffmpeg without --disable-alsa/iconv on Linux. 2021-10-06 20:37:30 +04:00
John Preston
5cd0a3719e Beta version 3.1.6: Detach FastReply from MarkAsRead. 2021-10-06 19:24:30 +04:00
John Preston
8b7cd4a0c7 Beta version 3.1.6: Fix crash on old Windows 10 versions. 2021-10-06 17:36:30 +04:00
John Preston
937c2d3dce Beta version 3.1.6: Update patches revision. 2021-10-06 13:44:28 +04:00
23rd
1fa5d273cc Fixed scroll in Dialogs::Widget.
Regression was introduced in cb8f49aea0.
2021-10-06 13:40:26 +04:00
John Preston
24fa3dbf8f Beta version 3.1.6: Fix build on macOS. 2021-10-06 11:10:06 +04:00
John Preston
c9b782fd63 Beta version 3.1.6.
- Show small media previews in chats list.
- Show media album previews and caption text in chats list.
- Add "Quick Reply" and "Mark as Read" to native Windows notifications.
2021-10-06 11:07:38 +04:00
John Preston
e7cf560da0 Handle toast activations by COM activator. 2021-10-06 11:02:57 +04:00
John Preston
86e07518ad Fix clearing notifications from Action Center.
Regression was introduced in 997913be25.
2021-10-05 16:53:36 +04:00
John Preston
8c71d03959 Add reply from Windows native notifications. 2021-10-05 16:52:46 +04:00
John Preston
967e86f4ab Rewrite Windows native notifications using C++/WinRT. 2021-10-05 12:09:15 +04:00
John Preston
730412fefe Load albums of last chat messages. 2021-10-04 23:47:33 +04:00
John Preston
576883ddc8 Make mini preview radius 2px. 2021-10-04 23:47:33 +04:00
John Preston
992d636680 Generate album mini previews with up-to-three images. 2021-10-04 23:47:33 +04:00
John Preston
8cdd2f113f Add play icon to video mini previews. 2021-10-04 23:47:33 +04:00
John Preston
d5f935b73d Put mini-previews after sender name. 2021-10-04 23:47:33 +04:00
John Preston
84f561b251 Don't use MTP* in the image editor. 2021-10-04 23:47:33 +04:00
John Preston
21ac2b8f3a Don't use MTP* for reply markup data. 2021-10-04 23:47:30 +04:00
John Preston
1790828b01 Dump symbols from the binary instead of dSYM.
For some reason dump_syms from dSYM now fails with an error:

Telegram.app.dSYM/Contents/Resources/DWARF/Telegram:
the section '__text' in segment '__TEXT' claims its contents lie outside the segment's contents
2021-10-04 23:45:21 +04:00
John Preston
792b9090a7 Generate mini-previews for photos and files. 2021-10-04 23:45:21 +04:00
John Preston
8c21fad642 Move preview paint to Dialogs::Ui::MessageView. 2021-10-04 23:45:21 +04:00
John Preston
5136cc3c9c Rename Dialogs::Layout to Dialogs::Ui. 2021-10-04 23:45:21 +04:00
John Preston
b78b27f517 Move dialogs_layout to dialogs/ui/. 2021-10-04 23:45:21 +04:00
John Preston
85760ea92c Fix repeated attempt to transfer ownership.
Fixes #8570.
2021-10-04 23:45:21 +04:00
Ilya Fedin
c2212c719e Inform Qt about taskbar hider
This allows the feature to work without patching Qt
2021-10-04 23:23:50 +04:00
GitHub Action
fc8a0d0efd Update User-Agent for DNS to Chrome 94.0.4606.61. 2021-10-04 23:23:20 +04:00
23rd
c052c37621 Fixed build for non-Windows. 2021-09-30 21:04:43 +03:00
23rd
21f7cec781 Fixed build for macOS. 2021-09-30 21:21:07 +04:00
23rd
64af456d29 Fixed build for macOS. 2021-09-30 21:16:45 +04:00
John Preston
7751c4ac1f Port PQ factorization from TDLib. 2021-09-30 21:14:00 +04:00
23rd
ececdcb9c0 Removed Q_SLOTS from HistoryInner. 2021-09-30 18:45:38 +03:00
23rd
cb8f49aea0 Removed Q_OBJECT from ScrollArea. 2021-09-30 18:45:38 +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
51e80170e2 Always clear passcode lock widget on reset.
Fixes #17016.
2021-09-30 19:37:42 +04:00
John Preston
b2526ab7f6 Make sure special MsgId-s are always outside ServerMaxMsgId range. 2021-09-30 19:31:03 +04:00
John Preston
e220447bdd Put the "N Seen" context menu item always first. 2021-09-30 15:36:14 +04:00
John Preston
ead695b101 Don't pass wide fake MsgId through MTPMessage. 2021-09-30 15:30:39 +04:00
John Preston
4ea72f8f89 Don't add "Change colors" to profile menu. 2021-09-30 15:30:29 +04:00
John Preston
4ef550da9b Hide webview while showing a box in payments. 2021-09-30 14:53:18 +04:00
John Preston
1e660fc2a2 Allocate 64 bits for message ids. 2021-09-30 13:49:37 +04:00
Ilya Fedin
6adf791b3b Update cmake_helpers 2021-09-29 09:04:23 +04:00
Ilya Fedin
d2a41a42e0 Move applicationDidFinishLaunching code to init
This should make the Qt patch catching the event unneeded
2021-09-29 09:04:23 +04:00
John Preston
315549b5f8 Beta version 3.1.5: Fix build on Linux. 2021-09-28 23:48:37 +04:00
John Preston
fd4a543bab Beta version 3.1.5: Fix theme change UI on Retina screens. 2021-09-28 22:27:41 +04:00
John Preston
d525e56053 Beta version 3.1.5: Fix build on Linux. 2021-09-28 22:08:28 +04:00
John Preston
dab5d1f994 Beta version 3.1.5.
- Choose one of 8 new preset themes for any individual private chat.
- Click on '...' menu > 'Change Colors' to pick a theme.
- Both chat participants will see the same theme
in that chat – on all their devices.
- Each new theme features colorful gradient message bubbles,
beautifully animated backgrounds and unique background patterns.
- All chat themes have day and night versions
and will follow your overall dark mode settings.
- Implement main window rounded corners on Windows 11.
- Fix audio capture from AirPods on macOS.
2021-09-28 22:00:51 +04:00
23rd
de3b52425c Removed unused HistoryInner::setFirstLoading. 2021-09-28 21:14:33 +04:00
John Preston
844fd58a97 Support Windows 11 rounded corners and themeable title bar. 2021-09-28 21:11:35 +04:00
John Preston
de2bad51d3 Scroll to currently selected theme. 2021-09-28 19:27:41 +04:00
John Preston
1424ea3540 Allow scrolling themes list. 2021-09-28 19:27:41 +04:00
John Preston
a8efd0ef3d Show chosen element in custom theme selector. 2021-09-28 19:27:41 +04:00
John Preston
1204e282d3 Fix attach icon in theme preview. 2021-09-28 19:27:41 +04:00
John Preston
6588242793 Prepare correct custom chat theme preview. 2021-09-28 19:27:41 +04:00
John Preston
b1ba9a42c6 Use Ui::GenerateBackgroundImage for preview in Settings. 2021-09-28 19:27:41 +04:00
John Preston
ab0d2bf9c6 Initial chat theme changing. 2021-09-28 19:27:41 +04:00
John Preston
80028e41f3 Bump OpenAL version in prepare script. 2021-09-28 19:25:39 +04:00
John Preston
2c581adc55 Add some hardening compiler / linker flags to dependencies. 2021-09-28 18:44:52 +04:00
John Preston
f0e8c1e325 Update lib_webview and docker patches revision. 2021-09-28 12:23:54 +04:00
John Preston
a2db9de4d7 Remove debug code. 2021-09-28 11:30:18 +04:00
John Preston
a228c62286 Fix "Nobody Viewed / Watched / Listened" seen state. 2021-09-27 18:51:50 +04:00
John Preston
37d940eca6 Beta version 3.1.4.
- Fix crash in network availability init.
- Fix assertion violation after a NaN-resulting std::round call.
2021-09-27 13:29:11 +04:00
John Preston
f7c24c54a1 Fix crash in failed network availability init. 2021-09-27 13:25:04 +04:00
John Preston
19ce1edc16 Use base::SafeRound instead of std::round.
Previous assertion violations because of NaN from std::round were
in video streaming, see commits 27d58ba07b, 8f5830d520.

Now the crashes happened in the ConvertScale() call from a background
thread when preparing an image from clipboard for sending to a chat.
2021-09-27 12:13:57 +04:00
John Preston
21b10cebe0 Beta version 3.1.3.
- Fix illegal instruction crash in opus encoder.
2021-09-27 10:28:29 +04:00
John Preston
50435f7783 Allow creating links with Ip addresses. 2021-09-27 10:28:29 +04:00
Ilya Fedin
1b789de4f4 Cherry-pick a opus fix for detecting CPU instructions on Windows 2021-09-27 08:50:51 +04:00
John Preston
a50310f0c1 Beta version 3.1.2 (Windows only).
- Control video in fullscreen mode using arrows and numbers.
- Open locations in browser if default Bing Maps is not installed.
- Reconnect without timeout when network availability changes.
- Crash fixes.
2021-09-26 17:24:09 +04:00
John Preston
eb02a7861a Add modern C++/WinRT headers path to Telegram project. 2021-09-26 17:20:22 +04:00
John Preston
8759ca4577 Rewrite bingmaps check to C++/WinRT. 2021-09-26 17:17:57 +04:00
Hermesis
d5c6d9a231 Open map in browser if default "bingmaps:" handler is not found 2021-09-26 17:16:38 +04:00
John Preston
63f179e93e Add Windows network reachability backend. 2021-09-26 14:31:54 +04:00
Hermesis
cfcc1b1ce7 Control video in fullscreen mode using arrows and numbers 2021-09-26 14:07:02 +04:00
John Preston
da1945d0ca Add some more information for an assertion violation. 2021-09-25 22:49:51 +04:00
John Preston
12252ef1aa One more attempt of OpenGL context loss crash fix. 2021-09-25 22:39:49 +04:00
John Preston
1eef94e8d9 Fix possible crash in delayed typing updates. 2021-09-25 22:39:11 +04:00
Ilya Fedin
0984e631fa Use opus built with cmake on Windows 2021-09-25 15:35:32 +04:00
John Preston
ec064a904d Version 3.1.1.
- Crash fixes.
2021-09-24 08:47:02 +04:00
John Preston
b47692e920 Update patches revision. 2021-09-24 08:46:52 +04:00
John Preston
132f127f3f Add some assertions to debug a crash. 2021-09-24 08:44:22 +04:00
John Preston
5c44b851fe One more attempt to fix crashes on context loss. 2021-09-23 17:39:39 +04:00
John Preston
2f5bed2899 Skip "contact joined" toast if disabled in Settings.
The chats still appear (they are server-side), but skip the toast.
2021-09-23 17:37:29 +04:00
John Preston
cf76933352 Fix saving tray "Toggle notifications" on relaunch.
Fixes https://bugs.telegram.org/c/9509
2021-09-22 14:03:41 +04:00
John Preston
eaa4c5e5b1 Fix caching by making a fake dir ThirdParty/gyp. 2021-09-22 12:42:59 +04:00
John Preston
a4b5b6e370 Fix crash in lottie destructor.
Fixes #16985.
2021-09-21 21:29:59 +04:00
John Preston
c1be1ca4ae Add ./build/prepare/linux.sh which builds docker. 2021-09-21 18:11:24 +04:00
Ilya Fedin
b2df781b76 Fix icon for Quit Telegram taskbar item in snap 2021-09-20 15:09:42 +03:00
Ilya Fedin
38815c1ca8 Backport fonts hook from snapcraft extensions 2021-09-20 11:40:03 +03:00
John Preston
2ec92f541c Version 3.1: Fix building Qt for Release. 2021-09-19 18:42:29 +03:00
John Preston
7ce8b42216 Version 3.1.
- Some animated emoji now have extra effects.
- Send 🎆 🎉, 🎈, :like:, 💩 or ❤️
to any private chat, then click on the animated emoji
to launch the effect.
- If your chat partner also has the chat open,
you will both see the effects.
- See the "Watching" status
when your chat partner is enjoying emoji effects with you.
- More interactive emoji coming soon.
- Right click one of your outgoing messages in small groups
to see who recently viewed it.
- To protect privacy, read receipts are only stored for 7 days
after the message was sent.
- Record video and audio from live broadcasts in your group or channel.
- Admins can start recording from the '...' menu.
- Choose between recording in portrait or landscape orientation.
- Finished recordings are sent to the admin's Saved Messages
and can be easily shared.
2021-09-19 18:21:31 +03:00
John Preston
17511749de Hold only last 5 custom themes in memory. 2021-09-19 18:15:46 +03:00
John Preston
4f6c7657bf Fix comments root pinned view disappearing. 2021-09-19 17:48:00 +03:00
John Preston
54085c70a4 Select light / dark custom theme based on dialogsBg value. 2021-09-19 17:39:29 +03:00
John Preston
e6c4b96c54 Just close SendFilesBox on last item remove.
Fixes https://bugs.telegram.org/c/2298
2021-09-19 17:36:31 +03:00
John Preston
b75221737a Make history-down button scale better. 2021-09-19 17:29:42 +03:00
John Preston
c336d725ea Fix media controls hiding workaround. 2021-09-19 16:55:55 +03:00
John Preston
d0fcc40d25 Don't play interactions in an inactive window. 2021-09-19 15:12:37 +03:00
John Preston
422bfd973b Don't play interactions without large emoji. 2021-09-19 15:12:20 +03:00
John Preston
d4db679ce8 Base custom chat themes on a separate light theme. 2021-09-19 14:43:09 +03:00
John Preston
2c7d8858c0 Base custom chat themes on a separate dark theme. 2021-09-19 14:43:09 +03:00
John Preston
155bbed3f4 Show correct video recording status. 2021-09-19 14:42:56 +03:00
John Preston
b1517c68fb Colorize outgoing selected state in light custom themes. 2021-09-19 14:42:51 +03:00
John Preston
d206ba7e1d Always underline links if color is the same as text. 2021-09-19 14:42:46 +03:00
John Preston
af100c2d13 Fix poll answer check in custom chat themes. 2021-09-19 14:40:43 +03:00
John Preston
1f25777929 Update watching emoji interaction phrase. 2021-09-19 14:40:43 +03:00
John Preston
a566405598 Show correct emoticon in interaction-seen status. 2021-09-19 14:40:43 +03:00
John Preston
b02967a44e Update tg_angle in prepare script. 2021-09-19 14:40:43 +03:00
John Preston
e0135e509d Allow exporting test chat themes. 2021-09-19 14:40:43 +03:00
John Preston
8274fddcbc Revert build-in Tinted theme.
Fixes #16969.
2021-09-19 14:40:43 +03:00
John Preston
82c45871c7 Fix build with Xcode. 2021-09-19 14:40:43 +03:00
23rd
2164caaab7 Fixed formatting of comments count. 2021-09-19 14:40:07 +03:00
Ilya Fedin
f4b162cbaf Update submodules 2021-09-19 13:22:38 +03:00
Ilya Fedin
4bc4584868 Build glibmm with LTO
In combination with https://github.com/desktop-app/cmake_helpers/pull/126 gets rid of unused glib symbols
2021-09-19 13:22:38 +03:00
John Preston
890a126423 Use shared provider for interaction animations. 2021-09-18 20:29:56 +03:00
John Preston
42cc24e167 Cache interactions in four cache keys. 2021-09-17 19:23:52 +03:00
John Preston
26b9146c32 Beta version 3.0.5: Try fixing messages skipping. 2021-09-17 14:27:34 +03:00
John Preston
ab6f5ae2ac Optimize bubble gradient background painting. 2021-09-17 13:22:33 +03:00
John Preston
559d4cf4da Update theme preview. 2021-09-17 13:22:33 +03:00
23rd
449f2d2f94 Migrated dependencies in Github CI for macOS. 2021-09-17 13:12:07 +03:00
John Preston
038f19d055 Beta version 3.0.5: Fix build on Linux. 2021-09-17 11:45:05 +03:00
John Preston
10d405aef4 Beta version 3.0.5: Add in-app changelog. 2021-09-17 10:57:42 +03:00
John Preston
efd4cceb19 Beta version 3.0.5.
- Add support for Emoji 13.1.
2021-09-17 10:56:16 +03:00
John Preston
822a3b69b5 Update libtgvoip. 2021-09-17 10:27:10 +03:00
John Preston
a632798383 Preserve alpha value in colorizer. 2021-09-17 10:25:37 +03:00
John Preston
cca08e3946 Fix crash in emoji interactions. 2021-09-17 10:25:36 +03:00
John Preston
4d267327b8 Update built-in Tinted dark theme. 2021-09-17 10:25:36 +03:00
John Preston
06798adce4 Accept skin colors and heart colors. 2021-09-17 10:25:36 +03:00
John Preston
34c0d97c54 Show emoji interaction seen status. 2021-09-17 10:25:36 +03:00
John Preston
4b7f594b0e Send emoji interaction seen requests. 2021-09-17 10:25:36 +03:00
John Preston
cfb43081c7 Play incoming interactions. 2021-09-17 10:25:36 +03:00
John Preston
703ea9aacd Apply scale keeping window center in place. 2021-09-17 10:25:36 +03:00
John Preston
de9b21e436 Correctly render interactions on inbox messages. 2021-09-17 10:25:36 +03:00
John Preston
73c0ea4b7d Don't mark as read when forwarding to scheduled. 2021-09-17 10:25:36 +03:00
John Preston
3e681e5449 Always force window frame inside screen geometry.
I hope this fixes #16934.
2021-09-17 10:25:36 +03:00
John Preston
bc2f96251f Limit amount of playing interactions. 2021-09-17 10:25:36 +03:00
John Preston
15f83892a1 Start emoji interactions playback. 2021-09-17 10:25:36 +03:00
John Preston
b6fafdd8f7 Limit emoji size to half of sticker size. 2021-09-17 10:25:36 +03:00
John Preston
139b9723d7 Accumulate and send emoji interactions. 2021-09-17 10:25:36 +03:00
John Preston
d152782115 Load and reload interaction stickers. 2021-09-17 10:25:36 +03:00
John Preston
35356a1736 Update API scheme. 2021-09-17 10:25:35 +03:00
Gleb Smirnoff
ef27670954 Fix compilation in presence of libzip installed.
When both minizip [1] and libzip [2] are present in the build
environment we have two <zip.h> includes. We are interested in
the minizip. Unfortunately, libzip usually installs its zip.h
straight into ${PREFIX}/include where lots of other headers reside.
We pick up ${PREFIX}/include into the include path with the
desktop-app::lib_base target, which is also dependency of
of tdesktop::td_* targets. To fix compilation in presence of
conflicting zip.h we need to put minizip's include directory
before ${PREFIX}/include, thus record its dependency before
all other dependencies that can bring desktop-app::lib_base.

[1] http://www.winimage.com/zLibDll/minizip.html
[2] https://libzip.org
2021-09-17 09:47:48 +03:00
Gleb Smirnoff
8cf9dc3319 Pull up to recent cmake_helpers and tg_owt that bring FreeBSD fixes. 2021-09-15 23:24:39 +03:00
Gleb Smirnoff
59f2f750b4 On FreeBSD the system malloc is jemalloc and non-portable
extensions are enabled including malloc_np.h.
2021-09-15 23:24:39 +03:00
John Preston
8069fdd873 Use base/random.h instead of openssl::RandomValue. 2021-09-15 13:42:22 +03:00
John Preston
52721847f4 Fix outgoing voice message unread mark. 2021-09-15 13:42:22 +03:00
John Preston
e492bbb883 Fix delayed pattern-with-negative-intensity appearance. 2021-09-14 16:36:30 +03:00
John Preston
7f20cc7b44 Update emoji to 13.1. 2021-09-14 15:14:25 +03:00
John Preston
7fbce765c9 Apply uniform-color palette to webpage preview titles. 2021-09-14 15:14:12 +03:00
John Preston
f771ad8cb1 Beta version 3.0.4: Fix build for Windows. 2021-09-13 20:13:15 +03:00
John Preston
6a53fc7edc Beta version 3.0.4: Add some theme loading logging. 2021-09-13 20:09:55 +03:00
John Preston
889c3293e7 Fix PathShiftGradient colors with custom palettes. 2021-09-13 20:09:23 +03:00
23rd
fa4b7145f5 Added extra space to choosing sticker animation in left position. 2021-09-13 18:13:50 +03:00
23rd
a5be9d78d8 Fixed animation for grouped userpics in who read context menu item. 2021-09-13 18:13:50 +03:00
John Preston
21c562fcb7 Make "set_version.py" working with Python 2.7 as well. 2021-09-13 18:03:43 +03:00
John Preston
626c062bf0 Beta version 3.0.4.
- Fix a crash when joining video chat or live broadcast.
- Add a "Close to Taskbar" option when tray icon is disabled
(Windows and Linux).
2021-09-13 18:01:39 +03:00
Ilya Fedin
e92ae40ecb Implement close to taskbar option 2021-09-13 17:46:53 +03:00
John Preston
ce256161f1 Couple of crash fixes. 2021-09-13 17:39:17 +03:00
John Preston
3bf9a1c70b Build minidump_stackwalk as part of macOS prepare. 2021-09-13 16:59:10 +03:00
John Preston
3202a5f081 Fix prepare getch for macOS. 2021-09-13 16:50:44 +03:00
John Preston
e99f650eaa Change default autoupdate URL. 2021-09-13 16:33:31 +03:00
John Preston
c6097d3d11 Accept "livestream" and "videochat" link params. 2021-09-13 16:19:59 +03:00
John Preston
58b5b3deec Update main built-in palette values. 2021-09-13 15:40:02 +03:00
John Preston
5a63428093 Improve messages in preparep.py. 2021-09-13 15:39:44 +03:00
John Preston
0c42bca111 Ask before rebuilding in prepare.py. 2021-09-13 15:01:52 +03:00
John Preston
13bf089672 Update patches revision. 2021-09-13 14:21:56 +03:00
John Preston
f73264025d Fix a crash after joining broadcasts. 2021-09-13 14:21:01 +03:00
Ilya Fedin
0a6fb696a3 Build Qt without egl-extension-platform-wayland 2021-09-13 10:51:35 +03:00
John Preston
bc2e6c4fd1 Accept uppercase hex values in theme testing links. 2021-09-12 23:18:37 +03:00
John Preston
d822f8e9ff Improve colorizing more. 2021-09-12 23:16:23 +03:00
John Preston
86362875dd Beta version 3.0.3.
- Try fixing crashes in allocator on Linux.
2021-09-12 01:53:04 +03:00
John Preston
0a4a96d4cd Fix action build on Linux. 2021-09-12 01:39:28 +03:00
John Preston
1c33eee80a Update hime to 0.9.11. 2021-09-12 00:33:35 +03:00
Ilya Fedin
4f5558d28c Move new dependencies to the beginning of Dockerfile, update patches
The reason was to not to do a full rebuild, but looks like the cache is already cleaned
2021-09-12 00:25:01 +03:00
Ilya Fedin
3fbd68cff9 Don't link glib with DESKTOP_APP_DISABLE_DBUS_INTEGRATION 2021-09-12 00:12:13 +03:00
Ilya Fedin
ee8c6f68d7 Use clang to build jemalloc since it crashes with gcc 2021-09-12 00:11:47 +03:00
John Preston
8d4174afb5 Fix macOS build in GitHub Actions. 2021-09-11 20:13:18 +03:00
John Preston
9150cc77f9 Improve colorizing of custom themes. 2021-09-11 12:26:35 +03:00
John Preston
8d31769846 Fix build with Xcode. 2021-09-11 00:02:15 +03:00
John Preston
13c00949ed Add a simple way of testing color themes. 2021-09-10 22:29:30 +03:00
John Preston
c4d822ba02 Fix action build on Windows. 2021-09-10 16:19:07 +03:00
John Preston
fd288fbdfd Beta version 3.0.2: Fix Windows build scripts. 2021-09-10 14:33:47 +03:00
John Preston
453954f901 Fix forward options for text messages. 2021-09-10 14:33:18 +03:00
John Preston
b1d52e088e Beta version 3.0.2.
- Check who've seen your message in small groups from the context menu.
- Enable recording with video in live streams and video chats.
2021-09-10 13:42:53 +03:00
Ilya Fedin
0570b2639d Link drm & zlib statically like before, make GL optional 2021-09-10 13:24:13 +03:00
Gleb Smirnoff
720f238cf8 Close a race between Gio threads and Qt application init.
QApplication has a historical feature[1] of calling setlocale(3) at init,
which today cause more harm than good.  Such call isn't thread safe neither
per C standard, not per any known libc implementation.  The Gio threads
would call into locale reading functions all the time, so early access to
locale by Gio may race with setlocale() by Qt leading to undefined behavior.

Platform specific start before the Sandbox (aka QApplication) is at core
design of tdesktop and that order can't be changed. There is no way to pause
Gio until QApplication instantiates.

Fortunately, Qt library itself has a static global flag that prevents it
from calling setlocale() twice. We don't even need to instantiate a
temporary QCoreApplication, we can just call into the method.  So call
it form Platform::start before any existing or future calls to Gio.

Fixes #16922

[1] https://chat.stackoverflow.com/rooms/63812/discussion-between-phil-armstrong-and-matteo-italia
2021-09-10 13:18:20 +03:00
John Preston
05b35bb803 Update API scheme. 2021-09-10 12:58:52 +03:00
John Preston
faa5619f1e Remove check used only for 32 bit ids. 2021-09-10 10:23:00 +03:00
John Preston
28be89f7c3 Correctly apply photos from "min" users. 2021-09-09 16:59:36 +03:00
23rd
54e76c0b71 Removed extra space from end of country patterns. 2021-09-09 16:32:07 +03: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
baea762832 Allow QSurfaceFormat::NoProfile in OpenGL detection. 2021-09-09 16:31:51 +03:00
John Preston
79b0bbf6cf Add an icon to who read context menu item. 2021-09-09 16:27:44 +03:00
John Preston
b4bff83266 Limit popup menu with who read users height. 2021-09-09 16:02:37 +03:00
John Preston
a3e8e379dd Show userpics in full who read list. 2021-09-09 11:48:30 +03:00
John Preston
14314df26a Show userpics in who read context item. 2021-09-09 00:10:49 +03:00
John Preston
8f480b52e7 Display who seen loading state as disabled item. 2021-09-08 14:38:05 +03:00
John Preston
fa5e66a736 Check listened / viewed for voice / video messages. 2021-09-08 13:50:56 +03:00
John Preston
eb1874566b Fix media caption text selection rendering. 2021-09-08 13:47:34 +03:00
John Preston
f135ece841 Update patches revision. 2021-09-08 00:10:36 +03:00
John Preston
374e3238ad Build FFmpeg with upstream yasm on macOS. 2021-09-07 23:41:54 +03:00
John Preston
54adf77d99 Build dependencies by script on Windows and macOS. 2021-09-07 23:41:54 +03:00
John Preston
7797099a49 Fix media viewer loading animation first show. 2021-09-07 23:41:08 +03:00
John Preston
d00226d51e Don't show important tooltips above layers. 2021-09-07 23:41:08 +03:00
John Preston
abbac61702 Show who've seen the message in submenu. 2021-09-07 23:41:08 +03:00
John Preston
2f5f100626 Start loading users who've read an outgoing message. 2021-09-07 23:41:08 +03:00
John Preston
8f9e394dd0 Fix build with GCC. 2021-09-07 23:41:08 +03:00
23rd
4582d2d0d5 Attempted to fix ordering buttons above boxes in group calls panel. 2021-09-07 23:41:08 +03:00
23rd
cd59ba6629 Added ability to start video recording in group calls. 2021-09-07 23:41:08 +03:00
John Preston
19611d5b26 Update patches revision in Docker. 2021-09-07 23:41:08 +03:00
John Preston
74846c87ce Closed alpha version 3.0.1.1. 2021-09-07 23:41:08 +03:00
John Preston
e880b66574 Rotate background with half a speed. 2021-09-07 23:41:08 +03:00
John Preston
b6cd9c2911 Invert patter image to white for dark colors. 2021-09-07 23:41:08 +03:00
John Preston
4273167aa2 Adjust outgoing bubble text and icon colors. 2021-09-07 23:41:08 +03:00
John Preston
c318f57fc0 Use outbox bubble colors, adjust custom colors. 2021-09-07 23:41:08 +03:00
John Preston
e4e5c4a1d2 Support 64 bit peer-bare-ids in export settings. 2021-09-07 23:41:07 +03:00
John Preston
a6c98f4bb4 Update API scheme to layer 133. 2021-09-07 23:41:07 +03:00
23rd
ce7a3c354c Simplified conditions for hiding hint for photo editor. 2021-09-07 23:41:07 +03:00
23rd
150dbef19f Added ability to save icon of last voice playback speed. 2021-09-07 23:41:07 +03:00
23rd
81a72caf07 Added context menu to voice playback speed button.
Fixed #16868.
Fixed #16138.
2021-09-07 23:41:07 +03:00
23rd
2f1db4f449 Fixed sending of choosing type from field autocomplete. 2021-09-07 23:41:07 +03:00
23rd
92425c7a1e Fixed space of action animation in middle text for different scales. 2021-09-07 23:41:07 +03:00
23rd
dabe83bd27 Fixed animation updating with small width for choosing sticker. 2021-09-07 23:41:07 +03:00
23rd
613f2ba708 Replaced instant base::call_delayed with InvokeQueued. 2021-09-07 23:41:07 +03:00
23rd
c1d3e5f0c5 Removed sending of typing action when sticker is chose in autocomplete. 2021-09-07 23:41:07 +03:00
23rd
de3b1ff9ae Removed unused static variable from CountryInput. 2021-09-07 23:41:07 +03:00
23rd
d4c0ac5e4a Removed forwarding options for dices. 2021-09-07 23:41:07 +03:00
23rd
58da62b413 Added refreshing of list in CountrySelectBox on update. 2021-09-07 23:41:07 +03:00
23rd
e80a7907a9 Removed Q_OBJECT from CountryInput. 2021-09-07 23:41:07 +03:00
23rd
48f7d715d6 Added all available calling codes on each country to CountrySelectBox. 2021-09-07 23:41:07 +03:00
Ilya Fedin
45360adbc2 Remove unneeded libraries from snapcraft.yaml 2021-09-07 23:40:08 +03:00
Ilya Fedin
60fb2d7c1f Move LZMA usage under TDESKTOP_DISABLE_AUTOUPDATE 2021-09-07 23:40:08 +03:00
John Preston
84cbb98000 Attempt#3 to fix build with GCC. 2021-09-07 12:59:33 +03:00
John Preston
32301046e7 Attempt#2 to fix build with GCC. 2021-09-07 12:56:54 +03:00
Ilya Fedin
23378e4661 Migrate to no-response action since github app is archived 2021-09-07 12:26:22 +03:00
GitHub Action
9a6d7d3a95 Update User-Agent for DNS to Chrome 92.0.4515.131. 2021-09-07 12:24:42 +03:00
Beni Cherniavsky-Paskin
f8c631ed24 Export CSS: per-line automatic bidi direction
Fixes #16120.
`unicode-bidi: plaintext` makes browser auto-detect base bidi direction according to bidi algorithm heuristics, on each line separately.
https://drafts.csswg.org/css-writing-modes/#bidi-algo
AFAICT this matches both Android and Desktop behaviors, and is the friendly behavior for mixed-direction users.
Purely LTR users should not be affected — the heuristics return LTR even on "neutral" lines that contain no letters, only punctuation/emojis/digits.
(http://www.unicode.org/reports/tr9/#P2 — rule P3 defaults to level 0, which is LTR.)
Whereas all RTL language users in practice need to deal with mixed-direction texts, and the ability to split lines to prevent LTR/RTL mixups is extremely handy...

The `text-align: start` ensures LTR-detected lines are displayed left-aligned, and RTL-detected lines right-aligned.
Which again matches both Android and Desktop behaviors.
This is redundant — it seems already the default with current CSS — but is important for mixed-language users, so I wanted to ensure it in case somebody sets alignment on bigger parts of the document in the future.
2021-09-07 12:20:44 +03:00
John Preston
246f2ca1ac Attempt to fix build with GCC. 2021-09-07 12:19:42 +03:00
John Preston
9f43719075 Fix build with Xcode. 2021-09-07 12:18:18 +03:00
Ilya Fedin
05d4d58f8b Replace GTK integration with xsettings + XDP 2021-09-06 15:43:28 +03:00
John Preston
434a7c5293 Remember volume from SMC.
Co-authored-by: 23rd <23rd@vivaldi.net>
2021-09-06 15:40:51 +03:00
udf
fb1c253992 Set mixer volume on media control change 2021-09-06 15:40:51 +03:00
udf
d53932382c Set mixer volume before changing setting 2021-09-06 15:40:51 +03:00
John Preston
463da7e410 Allow Ui::GL::Renderer::deinit on lost context. 2021-09-06 13:13:26 +03:00
John Preston
241798ac29 Custom colors in historyDown/unreadMentions buttons. 2021-09-06 13:13:26 +03:00
John Preston
64457cd6cb Custom colors in FillComplex(Overlay|Location)Rect. 2021-09-06 13:13:26 +03:00
John Preston
16c9031f88 Fix a phrase in voice chat settings. 2021-09-06 13:13:26 +03:00
John Preston
b2364140e9 Custom colors in all media/history_view_ modules. 2021-09-06 13:13:26 +03:00
John Preston
cbfe57c51d Custom colors in history_view_document module. 2021-09-06 13:13:26 +03:00
John Preston
23e9e7b9f0 Remove for_const macro. 2021-09-06 13:13:26 +03:00
John Preston
2a2607d026 Custom colors in history_view_service_message module. 2021-09-06 13:13:26 +03:00
John Preston
1a4a9319f3 Custom colors in history_view_message module. 2021-09-06 13:13:26 +03:00
John Preston
444f21fd7e Support colorizing of the default palette. 2021-09-06 13:13:26 +03:00
John Preston
2554aaf3c0 Move Window::Theme::Colorizer to style::colorizer. 2021-09-06 13:13:26 +03:00
John Preston
c4982711db Use ui/style/style_core_palette. 2021-09-06 13:13:26 +03:00
Ilya Fedin
5000902d61 Convert feature request template to the new format 2021-09-05 17:36:45 +03:00
Ilya Fedin
32dcb73cba Convert bug report issue template to the new format 2021-09-05 17:36:45 +03:00
John Preston
f6175e7b7c Invite by link in case of non-self voice chat join. 2021-09-02 11:04:28 +03:00
John Preston
b487644355 Fix incorrect bad file size logging. 2021-09-02 11:03:40 +03:00
John Preston
09e014cc14 Force non-transparency for WebDocuments in PhotoData. 2021-09-02 10:31:57 +03:00
John Preston
b0f54822e0 Version 3.0.1.
- Crash fixes.
2021-09-01 19:41:57 +03:00
John Preston
df4c9a0765 Cache correct background faster. 2021-09-01 19:38:36 +03:00
John Preston
47e15d136d Fix background update with all chats closed. 2021-09-01 19:28:02 +03:00
John Preston
5aff4cca0e Fix rare crash in message history resizing. 2021-09-01 19:21:39 +03:00
John Preston
a064e836f2 Removed redundant "base::EnterFromEventLoop". 2021-09-01 19:08:56 +03:00
John Preston
81ed3acfa1 Attempt to fix a crash in event loop nesting tracking. 2021-09-01 19:08:23 +03:00
John Preston
cc2dd31555 Attempt to fix a possible crash in InputField. 2021-09-01 18:50:11 +03:00
John Preston
0ee6395022 Try to a fix crash after lost OpenGL context. 2021-09-01 18:38:12 +03:00
John Preston
1d2a18929a Use QOperatingSystemVersion. 2021-09-01 18:33:53 +03:00
John Preston
a0a3de125a Detect Windows 11 by build number 22000. 2021-09-01 18:33:43 +03:00
John Preston
1cf207671e Fix crash in countries list refresh. 2021-09-01 18:33:24 +03:00
John Preston
c208b5dc58 Couple more of crash fixes. 2021-09-01 13:45:45 +03:00
John Preston
6eb5d47c35 Couple of crash fixes. 2021-09-01 13:27:36 +03:00
23rd
59977da2b4 Added choosing sticker action to field autocomplete. 2021-09-01 01:23:20 +03:00
23rd
4550b2a315 Decreased record bitrate of voice messages.
Fixed #6708.
2021-09-01 01:23:20 +03:00
23rd
bcbab7ad8e Added ability to change playback speed for long audio files. 2021-09-01 01:23:20 +03:00
23rd
b635a9d4a5 Changed voice playback speed setting to storage value of speed. 2021-09-01 01:23:20 +03:00
23rd
eadd7704ef Removed Main::Session forward declaration from data_types. 2021-09-01 01:23:20 +03:00
23rd
e6f0c176f7 Moved AudioMsgId to separated file. 2021-09-01 01:23:20 +03:00
John Preston
22d4331ead Version 3.0: Update tgcalls submodule. 2021-09-01 01:15:49 +03:00
John Preston
1247fde04e Version 3.0.
- Broadcast video and share your screen
to an unlimited number of viewers.
- To begin, tap the Live Stream button
in the title bar of a community where you are an admin.
- Tap the "Forward Message" label above the input field
to change how messages will be sent.
- Hide or show the original sender's name.
- Remove or keep captions from media messages.
- See how many unread comments there are
when opening a channel's comments.
2021-08-31 22:26:06 +03:00
John Preston
88a2f05c6d Fix crash in new phone formatting. 2021-08-31 22:26:06 +03:00
John Preston
df15c67dab Improve phrase in forwarding options box. 2021-08-31 22:10:56 +03:00
John Preston
f59db10267 Update default chat background. 2021-08-31 22:10:39 +03:00
John Preston
d29a1f5cd2 Refresh choose sticker animation data on lang update. 2021-08-31 20:47:08 +03:00
John Preston
cd8d257c70 Disable chat themes. 2021-08-31 19:51:56 +03:00
John Preston
9dfc60026e Add simple forwarding options on bar click. 2021-08-31 19:47:38 +03:00
John Preston
e9a5c45f34 Use separate strings for channel voice chats. 2021-08-31 17:59:29 +03:00
John Preston
2c07bdd0e8 Beta version 2.9.14.
- Fix crash in authorization after logout.
2021-08-31 14:07:42 +03:00
John Preston
b106438de8 Fix crash in stale authorization keys destruction. 2021-08-31 14:06:12 +03:00
23rd
92b7afc5f5 Fixed position of send action animation. 2021-08-31 14:06:11 +03:00
John Preston
0f28069881 Beta version 2.9.13: Fix clean build. 2021-08-31 13:35:12 +03:00
John Preston
cbe38af427 Beta version 2.9.13: Mark 'isPrefix' as '[[maybe_unused]]'. 2021-08-31 12:45:37 +03:00
John Preston
4598ce2671 Beta version 2.9.13: Update lib_webview. 2021-08-31 11:13:48 +03:00
John Preston
244ccba871 Beta version 2.9.13.
- See unread comments count when scrolling discussions in channels.
2021-08-31 10:37:31 +03:00
23rd
dc8eb79295 Moved code of data send actions from Data::Session to separated file. 2021-08-30 23:08:57 +03:00
23rd
f7abd85761 Slightly optimized replacement in send action text. 2021-08-30 21:45:56 +03:00
23rd
436212bb88 Added animation of send action for stickers to middle of text. 2021-08-30 20:50:36 +03:00
23rd
8c17e3e578 Added sending action when choosing sticker. 2021-08-30 20:50:32 +03:00
23rd
0852dbc40f Formatted classes for send actions. 2021-08-30 20:50:28 +03:00
23rd
ccea6ce492 Added animated indicator of choosing sticker action to chats list. 2021-08-30 20:50:24 +03:00
John Preston
2d0bcf7dca Resend non-authorization requests on main DC change. 2021-08-30 20:32:58 +03:00
John Preston
ae40ea9336 Always start with QR-code login. 2021-08-30 20:32:58 +03:00
John Preston
52a6282eb9 Count unread replies locally when possible. 2021-08-30 20:32:58 +03:00
John Preston
c39024c7fd Track and display unread count in discussions. 2021-08-30 20:32:58 +03:00
John Preston
85e4c8527b Always write local drafts the same way. 2021-08-30 20:32:58 +03:00
John Preston
f2da34c9f5 Fix jump to message / to end in discussions. 2021-08-30 20:32:58 +03:00
John Preston
9709297713 Remove unread bar in not-seen post comments opening. 2021-08-30 20:32:58 +03:00
John Preston
809b0e9fe0 Fix build for Linux. 2021-08-30 20:32:58 +03:00
John Preston
d684c8057c Fix build for macOS. 2021-08-30 20:32:57 +03:00
John Preston
d5820e7a5a Closed alpha version 2.9.12.1. 2021-08-30 20:32:57 +03:00
John Preston
beff635e45 Colorize bubbles according to a custom chat theme. 2021-08-30 20:32:57 +03:00
John Preston
5de83ef30c Fix assertion violation in profile video with zero file size. 2021-08-30 20:32:57 +03:00
John Preston
f5a323e40a Move all background helper methods to chat_theme module. 2021-08-30 20:32:57 +03:00
John Preston
0a1e84ddb2 Move ChatTheme to td_ui. 2021-08-30 20:32:57 +03:00
John Preston
3cd0f9d189 Start non-unique ChatTheme. 2021-08-30 20:32:57 +03:00
John Preston
f3dd8c68b3 Load chat cloud themes list. 2021-08-30 20:32:57 +03:00
John Preston
70808dfa7d Show chat theme changing service messages. 2021-08-30 20:32:57 +03:00
John Preston
0821c21285 Support mono playback in OpenAL ADM. 2021-08-30 20:32:57 +03:00
John Preston
29c0956d61 Always try to play video in voice chats. 2021-08-30 20:32:57 +03:00
John Preston
0cfede984c Update API scheme to layer 132. 2021-08-30 20:32:56 +03:00
23rd
558e1d96fd Simplified extracting of calling code from phone number. 2021-08-30 20:32:56 +03:00
23rd
44c188024e Fixed updating of masked input field in intro. 2021-08-30 20:32:56 +03:00
23rd
3acbcc6247 Updated fallback countries list. 2021-08-30 20:32:56 +03:00
23rd
6caddb5141 Removed old code entry from country info. 2021-08-30 20:32:56 +03:00
23rd
963fda69a8 Removed old formatting of phone numbers. 2021-08-30 20:32:56 +03:00
23rd
6ff0cb853d Added ability to extract pattern groups from incomplete phone number. 2021-08-29 23:31:12 +03:00
23rd
10c8162575 Added ability to extract pattern groups from phone number in modern way. 2021-08-29 23:31:12 +03:00
23rd
e4640590d0 Added ability to format phone numbers in modern way. 2021-08-29 23:31:12 +03:00
23rd
e5b85bbaf1 Improved country caching. 2021-08-29 23:31:12 +03:00
23rd
8310d7e47c Improved parsing of countries data from server. 2021-08-29 23:31:12 +03:00
23rd
cf523953ad Added initial manager of countries. 2021-08-29 23:29:39 +03:00
23rd
3e80c04da7 Replaced const char ptr with QString in country structs. 2021-08-29 21:01:30 +03:00
23rd
c593f43629 Made list of countries mutable. 2021-08-29 21:01:30 +03:00
23rd
86aaa9673d Moved countries to singleton. 2021-08-29 21:01:10 +03:00
23rd
a230e83778 Simplified some names in countries. 2021-08-29 21:00:48 +03:00
23rd
df02bbb0a3 Moved countries from Data to Countries namespace. 2021-08-29 20:39:43 +03:00
John Preston
1b3075ac2e Fix pattern background tiling on Retina screens. 2021-08-25 17:15:07 +03:00
John Preston
d45c530db0 Fix CDN downloads after authorization. 2021-08-25 16:24:20 +03:00
John Preston
2671e67119 Fix crash on cancelled Qr login attempt. 2021-08-25 16:24:15 +03:00
John Preston
bdc275a927 Don't crash on bad userId in local storage. 2021-08-25 16:24:09 +03:00
Ilya Fedin
6192413f0b Split webview initialization from GtkIntegration class 2021-08-25 12:52:43 +03:00
Ilya Fedin
51df482571 Get rid of gtk open with dialog
Portal open with dialog works just fine and is a more universal solution... That allows to get rid of an additional process.
2021-08-25 12:52:43 +03:00
John Preston
2694cb76a7 Remove crash debug information from streaming. 2021-08-25 11:24:32 +03:00
John Preston
b5ae492f5e Beta version 2.9.12: Fix build on Windows. 2021-08-24 21:08:35 +03:00
John Preston
018ee0564f Beta version 2.9.12.
- Disable floating point exceptions in 32 bit Windows version.
2021-08-24 20:34:54 +03:00
John Preston
156eb69d38 Disable fp exceptions in Windows 32 bit build. 2021-08-24 20:32:26 +03:00
23rd
df0229cffd Fixed render of text selection in sections.
Regression was introduced in f4fdadd3b0.
2021-08-24 20:02:36 +03:00
23rd
b3f8d0e81a Removed dcId from passport FileKey. 2021-08-24 20:02:36 +03:00
23rd
559d488b0b Moved load status of files in passport to separated class. 2021-08-24 20:02:36 +03:00
John Preston
401529e7d1 Fix possible crash in media viewer hide workaround. 2021-08-24 19:25:31 +03:00
John Preston
a6fb0e372e Beta version 2.9.11.
- Resolve (again) a video playback crash in 32 bit Windows version.
2021-08-24 18:12:26 +03:00
John Preston
7948fc509e Remove (incorrect) checks for double casts. 2021-08-24 18:11:47 +03:00
John Preston
2d6155fc85 Throw fp exceptions in Windows 32 bit build. 2021-08-24 17:43:31 +03:00
John Preston
c7e60ef723 Beta version 2.9.10.
- Resolve (hopefully) a video playback crash in 32 bit Windows version.
2021-08-24 12:42:58 +03:00
John Preston
8f5830d520 Workaround both std::round-s in video streaming. 2021-08-24 12:42:27 +03:00
John Preston
f21d7821e7 Beta version 2.9.9.
- Still(3) debugging a video playback crash in 32 bit Windows version.
2021-08-23 20:34:38 +03:00
John Preston
e8f1373edc Add some checks for NAN in video playback. 2021-08-23 20:29:40 +03:00
John Preston
c8d1e01159 Beta version 2.9.8.
- And still debugging a video playback crash in 32 bit Windows version.
2021-08-23 18:30:14 +03:00
John Preston
7e6f24552a Add basic OpenGL info to crash annotations. 2021-08-23 18:29:20 +03:00
John Preston
27d58ba07b Try to do a non-failed double->crl::time cast.
A crash on some old CPUs show, that in video frame processing
sometimes a cast from double to crl::time fails, writing to
the resulting crl::time value INT64_MIN (0x8000000000000000).

This is shown in crash logs, with lines like:

...,rounded:104,casted:-9223372036854775808,...

where logs are written like:

...
).arg(std::round(adjust * _options.speed)
).arg(crl::time(std::round(adjust * _options.speed))
...

I don't know what to do and how to workaround this. Trying other casts.
2021-08-23 17:58:59 +03:00
23rd
3a92a181a1 Fixed editing on Up arrow in sections with non-empty input field. 2021-08-23 13:57:35 +03:00
23rd
ddd5617043 Fixed processing GIF images as non-album files.
Fixed #16844.
2021-08-23 13:57:31 +03:00
John Preston
70b3e414ce Fix crash in Update-requested-by-tg://-link. 2021-08-23 13:54:49 +03:00
John Preston
2b04653f24 Beta version 2.9.7.
- Still debugging a video playback crash in 32 bit Windows version.
2021-08-23 12:21:09 +03:00
John Preston
868015da25 Add extensive video playback crash logs. 2021-08-23 12:17:40 +03:00
John Preston
7aeffa242e Beta version 2.9.6.
- Debugging a video playback crash in 32 bit Windows version.
2021-08-21 09:34:26 +03:00
John Preston
3136c0586e Add some more assertions to debug a crash. 2021-08-21 09:33:20 +03:00
John Preston
fb0fcbca7f Remove redundant -static-libstdc++ for Updater. 2021-08-20 21:14:39 +03:00
John Preston
0d449c037b Beta version 2.9.5: Fix hide workaround for media viewer. 2021-08-20 19:56:40 +03:00
John Preston
4d98230694 Beta version 2.9.5.
- Tile chat background patterns horizontally.
- Fix a rare crash in spellchecker on Windows.
- Fix animated chat backgrounds in Saved Messages.
- Fix "Sorry, group is inaccessible" message in scheduled voice chats.
2021-08-20 18:42:13 +03:00
John Preston
3d36e501a1 Add some assertions to debug a crash in video playback. 2021-08-20 18:42:13 +03:00
John Preston
b4eb9a0827 Fix single-colored patterns. 2021-08-20 16:24:26 +03:00
John Preston
aaf0015be4 Improve pattern wallpaper preview in Settings. 2021-08-20 16:14:09 +03:00
John Preston
1e8e163bb1 Tile patterns horizontally. 2021-08-20 15:55:10 +03:00
John Preston
f3f741e1eb Hide 'Tile' option in generated backgrounds. 2021-08-20 15:14:28 +03:00
John Preston
44f52ca6cd Fix solid color background preview. 2021-08-20 14:54:11 +03:00
John Preston
2b6e04bca3 Apply initial bubble opacity in QImage bubble backgrounds. 2021-08-20 14:54:11 +03:00
John Preston
784d57a2bc Use QImage bubbles background for some Media parts. 2021-08-20 14:54:11 +03:00
John Preston
f4fdadd3b0 Allow arbitrary QImage as outgoing bubbles background. 2021-08-20 14:54:11 +03:00
John Preston
1cc9a52461 Fix my speaking status freeze in voice chats. 2021-08-18 17:52:23 +03:00
John Preston
cd52982752 Hopefully fix an assertion violation in voice chats. 2021-08-18 17:45:21 +03:00
John Preston
4dd58b79e9 Fix forward of a bot message with a game from a group. 2021-08-18 16:43:22 +03:00
John Preston
c5c94276c2 Allow editing caption of forwarded audio file.
Fixes https://bugs.telegram.org/c/3025
2021-08-18 16:29:05 +03:00
John Preston
8e0b9b685c Show 'X subscribers' in channel ConfirmInviteBox.
Fixes https://bugs.telegram.org/c/2059
2021-08-18 15:57:52 +03:00
John Preston
1792bed721 Remove additional padding in shared contacts. 2021-08-18 15:52:04 +03:00
John Preston
a502cbc06e Move message link up in registered shared contacts.
Fixes #16804.
2021-08-18 15:48:30 +03:00
John Preston
ddda7b8c52 Fix crash in application Dock menu on macOS. 2021-08-18 15:44:38 +03:00
John Preston
0f19ba3231 Fix spellcheck crash on Windows on certain strings. 2021-08-18 15:22:27 +03:00
John Preston
36486a3d73 Fix creating a theme from a default one.
Regression was introduced in 79cc797aff.
2021-08-18 14:52:57 +03:00
John Preston
02f48a7781 Don't allow selected items together with text. 2021-08-18 14:52:49 +03:00
John Preston
c77f4dd794 Fix build on Linux. 2021-08-18 13:06:47 +03:00
John Preston
ca31a08182 Fix 'Sorry, group is inac...' in scheduled voice chat. 2021-08-18 11:34:16 +03:00
John Preston
33936195a1 Animate the chat background in Saved Messages. 2021-08-18 11:33:37 +03:00
John Preston
67bafa02fe Remove attempt of a shadow Qt build. 2021-08-17 18:15:55 +03:00
John Preston
1ef0046002 Beta version 2.9.4.
- Choose one from dozens of new gorgeous animated backgrounds
in Chat Settings > Chat background.
2021-08-17 18:09:18 +03:00
John Preston
f2f19b14eb Fix reading one message if last one is outgoing. 2021-08-17 18:07:20 +03:00
John Preston
662966ba31 Support patterns with negative intensity. 2021-08-17 17:35:10 +03:00
John Preston
5383ae3d96 Fix log in after password change by email. 2021-08-17 15:51:36 +03:00
John Preston
d80b25944e Fix Snap build on GitHub Actions. 2021-08-17 15:17:58 +03:00
23rd
76813db3ad Completed ability to recover cloud password with email. 2021-08-17 15:08:57 +03:00
John Preston
c3595f2e31 Ask for a new password when recovering by email. 2021-08-17 15:07:58 +03:00
John Preston
5a882d1fdc Rotate background in ListWidget. 2021-08-17 14:55:40 +03:00
John Preston
ce6f9f580f Remove unused ColorizePattern function. 2021-08-17 13:06:28 +03:00
John Preston
52b9a1fceb Log all Qt messages as usual in debug builds. 2021-08-17 12:25:13 +03:00
John Preston
1209b2692a Generate correct next rotated gradient. 2021-08-16 17:15:02 +03:00
John Preston
2abcb51dda Filter out patterns without background colors. 2021-08-16 17:14:34 +03:00
John Preston
7a06eccaec Make complex gradients animate on outgoing messages. 2021-08-16 16:07:43 +03:00
John Preston
a1f81e4de8 Generate static complex gradients. 2021-08-16 13:24:15 +03:00
John Preston
689378ee04 Prefer 1280x720 resolution for camera video. 2021-08-16 10:26:08 +03:00
John Preston
b239506150 Fix pattern wallpaper preview on retina screens. 2021-08-16 10:26:08 +03:00
John Preston
3dadcd9352 Animated transition on pattern-on-gradient resize. 2021-08-16 10:26:08 +03:00
John Preston
b9a9520ef5 Don't blend SoftLight patterns in realtime. 2021-08-16 10:26:08 +03:00
John Preston
2b46f87d7b Cache background quickly if no buttons pressed. 2021-08-16 10:26:08 +03:00
John Preston
2667bb3568 Move background caching to Window::SessionController. 2021-08-16 10:26:08 +03:00
John Preston
1bc5277d51 Show color / gradient wallpapers in WebPage previews. 2021-08-16 10:26:08 +03:00
John Preston
436d7b9d82 Add support for linear gradients without patterns. 2021-08-16 10:26:08 +03:00
John Preston
ba7e976fe2 Fix background sample generation. 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
23rd
1fd28d5cfb Removed MTP* from public interface of Api::CloudPassword. 2021-08-15 13:44:43 +03:00
23rd
eec58137e9 Fixed build for Linux. 2021-08-15 13:26:43 +03:00
Ilya Fedin
e7d39e6046 Get rid of GtkIntegration::initializeSettings use 2021-08-13 15:21:19 +03:00
Ilya Fedin
63a92cb90a Log icon theme 2021-08-13 15:21:19 +03:00
John Preston
85cc3b30a0 Don't use MTP* for WallPaper flags. 2021-08-12 12:32:30 +03:00
John Preston
474a6a71d9 Move unread mentions menu to chat_helpers/send_context_menu. 2021-08-12 10:06:16 +03:00
John Preston
393173c1da Finish 'Mark mentions as read' context menu. 2021-08-12 09:46:02 +03:00
John Preston
badc27eda4 Fix build with a correct lib_ui revision. 2021-08-12 09:03:19 +03:00
test
920f3b245b Update lang.strings 2021-08-12 08:52:56 +03:00
test
f189ffc6ac Summary 2021-08-12 08:52:56 +03:00
Nicholas Guriev
840bb447ba Mention some missing includes in payments/ subdirectory 2021-08-12 08:51:45 +03:00
Ilya Fedin
414456d003 Revert "Use gtk clipboard when available to avoid https://bugreports.qt.io/browse/QTBUG-56595"
Fixed in Qt by https://codereview.qt-project.org/c/qt/qtbase/+/306771

This reverts commit 3a91003eea.
2021-08-12 08:51:10 +03:00
23rd
ea3191badf Fixed Github CI build. 2021-08-12 08:34:51 +03:00
John Preston
4452edcaad Update release asset uploading script. 2021-08-12 08:34:47 +03:00
23rd
76eb00cea9 Added drafts saving on account switching. 2021-08-12 02:36:41 +03:00
23rd
b3622b413e Added ability to set custom auto-lock timer. 2021-08-12 02:36:41 +03:00
23rd
b55383efe7 Moved time input widgets to lib_ui. 2021-08-12 02:36:41 +03:00
23rd
852e46f0c9 Added filepath removal for modified images in photo editor.
Fixed #16791.
2021-08-12 02:35:53 +03:00
John Preston
84fef1f045 Fix linking to QtSvg properly. 2021-08-11 20:22:45 +03:00
John Preston
6cadf54874 Add support for SVG patterns in wallpapers. 2021-08-11 19:56:12 +03:00
John Preston
e8fc874456 Build and link with QtSvg. 2021-08-11 19:55:47 +03:00
John Preston
c79cd0b692 Use Images::Read instead of App::readImage. 2021-08-11 18:55:08 +03:00
John Preston
b150ab8ef5 Add .tgv as a known mime type. 2021-08-11 18:23:14 +03:00
Ilya Fedin
8b7b0fa570 Remove -externalupdater flag
Having a path to executable in /etc/tdesktop/externalupdater is a way more convenient and is enough
2021-08-11 18:20:52 +03:00
Ilya Fedin
a3ee1e4ed5 Remove mentions of unused -testmode flag 2021-08-11 18:20:52 +03:00
Ilya Fedin
349446e6b0 Lock issues once a day rather than once a hour 2021-08-11 17:56:25 +03:00
Ilya Fedin
97262a99c7 Get rid of osx and linux32 special targets 2021-08-11 16:59:27 +03:00
Ilya Fedin
1d2e34f5e9 Write Qt messages only to log in debug mode 2021-08-11 15:49:31 +03:00
Ilya Fedin
bc2fc94e25 Don't check libtgvoip defines, too big queue 2021-08-11 15:46:38 +03:00
Ilya Fedin
6f0e94a04a WebKitGTK support doesn't depend on GTK integration anymore 2021-08-11 15:46:38 +03:00
John Preston
60e43cfa3f Version 2.9.3.
- Fix requesting screencast rights on macOS (again).
2021-08-11 11:35:48 +03:00
John Preston
46885b7f9f Fix mouse input in layers in call window. 2021-08-11 11:06:34 +03:00
23rd
fff42a664c Fixed Github CI Windows build. 2021-08-11 05:53:16 +03:00
John Preston
437d35d8c4 Version 2.9.2: Fix build on macOS. 2021-08-10 19:24:56 +03:00
John Preston
36a5dd8d8b Version 2.9.2: Buffer more audio data.
I hope this fixes #16733.
2021-08-10 16:44:59 +03:00
John Preston
d8e99b4860 Version 2.9.2.
- Fix crashes and bugs in scheduled messages.
- Fix file sending after a call or voice chat on Windows.
- Fix main window title glitches on Windows 7.
2021-08-10 16:10:59 +03:00
John Preston
3cddcaa039 Update submodules. 2021-08-10 16:05:08 +03:00
John Preston
49078e5679 Apply a window title workaround on Windows 7.
Fixes #16785, fixes #16758, fixes #16721.
2021-08-10 15:46:18 +03:00
John Preston
1dec054766 Check if native window frame fits for saved geometry. 2021-08-10 15:46:18 +03:00
John Preston
91ef6f13c8 Use good bitrate for screen capture in calls. 2021-08-10 15:46:18 +03:00
John Preston
73c8f16340 Fix maximized window on Linux, update tg_angle. 2021-08-10 15:46:18 +03:00
23rd
cbad2469db Moved MTP cloud password from ApiWrap to Api::CloudPassword. 2021-08-10 15:46:18 +03:00
23rd
0ae260c6e1 Moved MTP blocked peers from ApiWrap to Api::BlockedPeers. 2021-08-10 15:46:18 +03:00
23rd
221ded6d54 Fixed handle of last message on Up arrow in sections on macOS. 2021-08-10 15:46:18 +03:00
23rd
6f80811ecd Fixed applying server messages as scheduled.
Fixed #16726 and many other problems.
2021-08-10 15:46:18 +03:00
23rd
5bd73bab9b Moved user privacy from ApiWrap to Api::UserPrivacy. 2021-08-10 15:46:18 +03:00
Ilya Fedin
ac86f3e5bd Use Communications category for tray icon
Since tdesktop fits it
2021-08-10 15:42:21 +03:00
GitHub Action
bae6a29326 Update User-Agent for DNS to Chrome 92.0.4515.107. 2021-08-09 10:21:57 +03:00
John Preston
dcf86f55af Version 2.9.1.
- Fix requesting screencast rights on macOS.
2021-07-30 21:28:24 +03:00
John Preston
2d223b3a2d Version 2.9: Add jemalloc submodule. 2021-07-30 21:26:05 +03:00
John Preston
f3ab01604c Version 2.9: Fix build on Linux. 2021-07-30 21:03:49 +03:00
John Preston
66bcc20f58 Fix requesting screencast rights on macOS. 2021-07-30 20:45:00 +03:00
John Preston
d69a1d3cd9 Version 2.9: Updated changelog. 2021-07-30 18:21:54 +03:00
John Preston
ccc5aeb8f7 Version 2.9.
- Reset your Two-Step Verification password even if you forgot
your old password and don't have a recovery email.
- To do this, you must be logged into your account.
The reset takes 7 days and can be cancelled from any of your devices.
2021-07-30 17:35:30 +03:00
John Preston
5899d60363 Remove some legacy langs scripts. 2021-07-30 16:11:42 +03:00
John Preston
4f89216db0 Disable noise suppression by default. 2021-07-30 16:11:13 +03:00
John Preston
bd78bac4bf Warn admins about many voice chat participants. 2021-07-30 16:06:27 +03:00
John Preston
b2e829904f Add support for 1 month self-destruct messages. 2021-07-30 16:05:13 +03:00
John Preston
256546071b Add ability to reset cloud password in 7 days. 2021-07-30 14:32:49 +03:00
John Preston
c100055fac Allow sharing screen or window in one-on-one calls. 2021-07-30 00:40:25 +03:00
John Preston
ae30366cbf Fix window move by title on macOS. 2021-07-29 15:30:22 +03:00
John Preston
663c99cc2d Fix build on macOS. 2021-07-29 15:30:22 +03:00
Ilya Fedin
d986e70a89 Fix global menu on 64-bit systems with X11
When Wayland support for global menu was added (0b86feeeb5), X11 support was broken since QWindow::winId returns WId what is a quintptr that expands to uint32 on 32-bit and to uint64 on 64-bit, while AppMenu d-bus service accepts only uint32.
2021-07-28 23:41:36 +03:00
Ilya Fedin
1ebf27bfa1 Switch MainWindow to Ui::RpWindow 2021-07-28 18:05:39 +03:00
John Preston
4ef2d3b957 Fix crash in mosaic layout. 2021-07-28 17:34:39 +03:00
John Preston
868c494299 Extract Mosaic::Layout::AbstractMosaicLayout. 2021-07-28 17:00:46 +03:00
John Preston
4a86b172d4 Rename Ui::Window to Ui::RpWindow. 2021-07-28 16:24:11 +03:00
Ilya Fedin
f71ce9afdf Fix dark titlebar on Windows 10 17763 2021-07-28 16:01:50 +03:00
John Preston
c170a86189 Fix build on Windows. 2021-07-28 15:59:42 +03:00
John Preston
116a768fde Don't use MTP* for Message flags. 2021-07-28 15:28:17 +03:00
John Preston
22e77bf3af Don't use MTP* for ReplyMarkup flags. 2021-07-28 15:16:23 +03:00
John Preston
bbbcd37b8f Provide latency values to AEC. 2021-07-28 15:16:23 +03:00
John Preston
bc707320f8 Add 'invited' icon in narrow voice chat members list. 2021-07-28 15:16:23 +03:00
23rd
000911ecfa Updated section icon for shared GIFs. 2021-07-27 20:40:44 +03:00
23rd
479611f6df Removed ui_getPeerForMouseAction. 2021-07-27 02:50:08 +03:00
23rd
dcc8a64d37 Removed App::sendBotCommand. 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
05f1caf944 Removed App::searchByHashtag from facades. 2021-07-27 02:18:49 +03:00
23rd
93bcd90fd4 Provided more context for click handlers. 2021-07-27 02:18:49 +03:00
23rd
7c8b1cd5b1 Disabled forced session switching when closing PiP.
Regression was introduced in 7decf68122.
2021-07-26 18:54:58 +03:00
23rd
82165bec5e Replaced MainWidget::replyToItem with history element delegate. 2021-07-26 17:39:18 +03:00
23rd
65aecf16a6 Removed App::wnd() from HistoryView::Message. 2021-07-26 17:38:52 +03:00
23rd
ca83b8a8c6 Removed App::wnd() from HistoryView::Contact. 2021-07-26 17:38:52 +03:00
23rd
024bb5e54f Moved App::formatPhone to td_ui. 2021-07-26 17:38:51 +03:00
23rd
a14f2144e1 Removed layout.cpp/h. 2021-07-26 17:38:51 +03:00
23rd
c6071d1148 Moved generic document preview info to separated file. 2021-07-26 17:38:51 +03:00
23rd
6e2f8eb9a7 Moved text selection utils to td_ui. 2021-07-26 17:38:51 +03:00
23rd
793f748d2e Replaced overview and inline mosaic layouts with new mosaic layout. 2021-07-26 17:38:51 +03:00
23rd
bb404a38d3 Merged mosaic layouts from overview and inline to td_ui generic class. 2021-07-26 17:38:51 +03:00
23rd
c82006c6f8 Moved position info from ItemBases to AbstractLayoutItem. 2021-07-26 17:38:51 +03:00
23rd
2256482ae0 Moved layout utils to td_ui. 2021-07-26 17:38:51 +03:00
23rd
d11e756381 Detached abstract part of LayoutItemBase and moved to td_ui. 2021-07-26 17:38:51 +03:00
John Preston
a128c16f59 Define 'KHRONOS_STATIC' globally. 2021-07-26 16:23:41 +03:00
John Preston
48207102ce Beta version 2.8.13.
- Fix crash in messages animation.
- Save GIFs from context menu in channel comments.
2021-07-23 23:22:08 +03:00
23rd
2d354f8777 Added ability to save GIFs from context menu in sections.
Fixed #8739.
2021-07-23 22:05:23 +03:00
John Preston
b27dc4ef8d Fix crash in messages animation. 2021-07-23 21:41:43 +03:00
John Preston
99505b4ee2 Beta version 2.8.12: Fix build on Linux. 2021-07-23 20:42:24 +03:00
John Preston
245909e381 Beta version 2.8.12: Prune icon cache on Linux. 2021-07-23 19:39:31 +03:00
John Preston
0a545589ce Beta version 2.8.12: Fix build on macOS. 2021-07-23 19:36:47 +03:00
John Preston
4ec764bb57 Beta version 2.8.12.
- Change the default chat background.
- Add GIFs overview section in chats.
- Add a simple new messages animation.
- Use modern Telegram application icon.
- Use Direct3D 11 by default on Windows.
- Fix Direct3D acceleration on basic Windows 7 setup.
2021-07-23 15:46:25 +03:00
23rd
9b6ab6e137 Fixed date badge in Shared GIFs section. 2021-07-23 15:42:17 +03:00
23rd
73bb1382b1 Replaced MatrixRowShift with layout utils. 2021-07-23 15:42:17 +03:00
23rd
a153059b38 Added ability to unload not visible GIFs as heavy parts in overview. 2021-07-23 15:42:17 +03:00
23rd
039ffd3d34 Copied layout items mosaic drawing for overview layout. 2021-07-23 15:42:17 +03:00
23rd
abdd2fa99b Added ability to force open media viewer from overview layout. 2021-07-23 15:42:17 +03:00
23rd
b366c27a0c Added to Overview::Layout::Delegate ability to request repaint item. 2021-07-23 15:42:17 +03:00
23rd
1fa71b6569 Copied GIF Layout from inline bots results to overview. 2021-07-23 15:42:17 +03:00
23rd
81c39af122 Replaced mosaic drawing in InlineBots::Layout::Inner. 2021-07-23 15:42:17 +03:00
23rd
9699aeb1cd Slightly simplified ChatHelpers::GifsListWidget. 2021-07-23 15:42:17 +03:00
23rd
85ce179f58 Added layout utils file. 2021-07-23 15:42:17 +03:00
23rd
c4d8d52aed Replaced mosaic drawing in ChatHelpers::GifsListWidget. 2021-07-23 15:42:17 +03:00
23rd
812f5d4311 Modernized code style of InlineBots::Bots::MosaicLayout. 2021-07-23 15:42:17 +03:00
23rd
34d2d7bcba Moved layout items mosaic drawing to separate file. 2021-07-23 15:42:17 +03:00
c0re100
842a89d2c7 Add GIFs shared media section 2021-07-23 15:42:17 +03:00
John Preston
565877630f Dither default background to avoid color banding. 2021-07-23 15:42:17 +03:00
John Preston
8f478b86ee Change default wallpaper. 2021-07-23 15:42:17 +03:00
John Preston
9943f8a093 Use custom 'gpu_driver_bug_list.json'. 2021-07-23 15:42:17 +03:00
John Preston
c0f8e68f5d Don't use CurrentSingleComponentFormat.
Fix noise in voice chat blur in OpenGL ES (ANGLE).
2021-07-23 15:42:16 +03:00
John Preston
92d9ebc9f3 Fix Direct3D 11 ANGLE backend colors issue. 2021-07-23 15:42:16 +03:00
John Preston
530aae4bdb Fix crash in inline bots results. 2021-07-23 15:42:16 +03:00
23rd
e1ff230547 Added info for empty section of scheduled messages. 2021-07-23 15:42:16 +03:00
23rd
95a896004f Added bubble widget for empty list info in modern history view list. 2021-07-23 15:42:16 +03:00
John Preston
87ca2c891a Update Windows taskbar icon in new version. 2021-07-20 20:21:21 +03:00
John Preston
3a26644fa2 Fix new messages animation in sections. 2021-07-20 20:21:20 +03:00
John Preston
7e11966766 Fix d3dcompiler_47.dll loading on 64 bit build. 2021-07-20 20:21:20 +03:00
John Preston
c1c4314e52 Pack compiler to portable / store version. 2021-07-20 19:30:17 +03:00
23rd
a6dbcdad54 Disabled auto-closing section of scheduled messages after 'Send Now'. 2021-07-20 19:30:00 +03:00
23rd
3dc73417e9 Fixed some bugs in EditCaptionBox.
Fixed checkbox display in some cases.
Fixed editing of album items.

Regression was introduced in 7e83088a84.
2021-07-20 19:30:00 +03:00
John Preston
1ce66e5198 Pack and deploy d3dcompiler_47.dll. 2021-07-20 17:10:23 +03:00
Christian Hesse
6e90d6ae53 Add loading of custom shipped d3dcompiler_47.dll. 2021-07-20 15:41:49 +03:00
John Preston
5910c0ae30 Fix build on Windows. 2021-07-20 14:28:18 +03:00
23rd
2de0b79b4e Fixed overlapping emoji suggestions in Replies section. 2021-07-20 12:20:31 +03:00
23rd
cba0ebce6e Fixed size of animated preview in boxes. 2021-07-20 12:20:30 +03:00
John Preston
773912f586 Apply local / server comment updates together. 2021-07-20 12:20:22 +03:00
John Preston
c789349b24 Support add item animation in ListWidget (sections). 2021-07-20 12:20:22 +03:00
John Preston
7bbc4b7191 Add basic new messages animation. 2021-07-20 12:20:22 +03:00
John Preston
551732738b Update app icon. 2021-07-20 12:19:56 +03:00
Ilya Fedin
c5867e2293 Fix build with clang 2021-07-20 10:34:03 +03:00
Ilya Fedin
46d5fc1fa0 Allow to build with generators other than Xcode on mac 2021-07-20 10:27:40 +03:00
Christian Hesse
b922839490 re-compress preview image
The preview image takes some time to load, just re-compressing it can
save about 13% of data without changing the result.
2021-07-20 10:26:35 +03:00
Ilya Fedin
4b82a56270 Remove old instructions & patches they referred to
(& rename instructions to the actual state)

Old instruction names were from the time when tdesktop used GYP that had MSVC, XCode and CMake backends.
But tdesktop uses CMake now, so these names are no longer correct.
2021-07-20 09:50:57 +03:00
Christian Hesse
b2c762e974 Set (group) call window icon. 2021-07-20 00:15:04 +04:00
Ilya Fedin
0a4b8fc7f6 Always use QLibrary for gtk to avoid confusing dynamic linker 2021-07-19 22:57:07 +03:00
Ilya Fedin
087fbe89ce Add additional checks to NotificationData::setImage 2021-07-19 22:56:38 +03:00
Ilya Fedin
3e8912a53f Remove reference to non-existing linux_mpris_support from CMakeFiles.txt 2021-07-19 22:56:14 +03:00
Ilya Fedin
dc81f9eeaf Remove SetWatchingMediaKeys
Since SPMediaKeyTap has been removed on Mac, Linux is the only platform where this function is implemented, but that's not really needed due to MPRIS support, so SetWatchingMediaKeys can be dropped entirely
2021-07-19 22:56:14 +03:00
Ilya Fedin
49fed41dfa Use RegisterUrlScheme from lib_base 2021-07-19 22:55:57 +03:00
Ilya Fedin
9b1d967967 Move NotificationServiceWatcher to notifications manager 2021-07-19 22:39:38 +03:00
Pavel Moiseenko
4ea065fdf1 Specify name of app in list of installed apps 2021-07-19 22:33:25 +03:00
Ilya Fedin
a094fa42a0 Update submodules 2021-07-19 22:31:27 +03:00
Ilya Fedin
6f151f20e9 Add support for DESKTOP_APP_DISABLE_WEBKITGTK
Co-authored-by: mid-kid <esteve.varela@gmail.com>
2021-07-19 22:31:27 +03:00
Ilya Fedin
ae70dfb1f4 Return after throwing access denied error 2021-07-19 22:31:27 +03:00
Ilya Fedin
d9ea4f31ca Add SYSTEM flag to target_include_directories where appropriate 2021-07-19 22:31:27 +03:00
Ilya Fedin
ba9b72e038 Fix -Wunused-variable warnings with gcc 2021-07-19 22:31:27 +03:00
Christian Hesse
3d1a049405 window title for call window
Having an empty window title brings different issues, for example:

* invisible on task bar
* invisible in task switcher
* apply properties by match
* ...

So let's use the contact user name for window title.

Fixes #10243
2021-07-19 19:26:32 +03:00
Mahdi Jafari
df9e9a9d75 Fix applying of patches in Dockerfile. 2021-07-19 19:02:18 +03:00
John Preston
77d8c7ce01 Version 2.8.11.
- Check shader compilation / linking before using ANGLE.

It fails on default Windows 7 installations.
2021-07-17 12:47:10 +03:00
John Preston
de0897343b Version 2.8.10: Fix media loading. 2021-07-16 20:15:44 +03:00
John Preston
e27399baa6 Pinpoint patches revision, including Dockerfile. 2021-07-16 19:38:54 +03:00
John Preston
42eb74d07a Version 2.8.9: Fix GIF caption edit. 2021-07-16 10:10:58 +03:00
John Preston
aee991f598 Version 2.8.9.
- Fix version on Windows without SetDefaultDllDirectories.
- Fix fonts on Linux.
2021-07-16 09:41:52 +03:00
John Preston
96c3dc4161 Fix Windows version without SetDefaultDllDirectories. 2021-07-16 09:39:52 +03:00
John Preston
77586a1297 Fix font styles on Linux. 2021-07-16 09:27:26 +03:00
John Preston
b69cac3ed6 Version 2.8.8.
- Added an image editor.
Crop photos or highlight parts of screenshots before sending.
2021-07-15 21:22:58 +03:00
John Preston
c4654f1ee8 Update patches revision for Windows build. 2021-07-15 21:22:54 +03:00
John Preston
c45122ab1e Update tgcalls submodule. 2021-07-15 21:08:47 +03:00
John Preston
10e1feb40b Use GL_BGRA_EXT format with ANGLE. 2021-07-15 16:42:38 +03:00
John Preston
4d99c1fd44 Allow sharing system audio with window share. 2021-07-15 16:42:38 +03:00
John Preston
4276b6cce0 Use rpl for Window::Theme::Background updates. 2021-07-15 16:42:36 +03:00
23rd
7e83088a84 Completely refactored EditCaptionBox.
Moved preview content to separate widget.
Increased caption area height.
2021-07-13 22:15:49 +03:00
23rd
47a4f4229d Added ability to hide attach controls. 2021-07-13 22:15:22 +03:00
23rd
7cf5e6d94f Added ability to set controls type for single previews. 2021-07-13 22:15:22 +03:00
23rd
5431541694 Added AbstractSinglePreview. 2021-07-13 22:15:22 +03:00
23rd
c1e86418c2 Added ability to generate single media preview from history item. 2021-07-13 22:15:22 +03:00
23rd
86db29cec7 Added AbstractSingleMediaPreview. 2021-07-13 22:15:22 +03:00
23rd
19139a9a5f Added ability to generate single file preview from history item. 2021-07-13 22:15:22 +03:00
23rd
9509a00664 Added AbstractSingleFilePreview. 2021-07-13 22:15:20 +03:00
John Preston
e2a85e3156 Closed alpha version 2.8.7.1. 2021-07-13 22:09:48 +03:00
John Preston
99353dcfba Update submodules. 2021-07-13 22:09:14 +03:00
John Preston
86a2a4d63a Count unique video senders in limit. 2021-07-13 22:08:10 +03:00
John Preston
ab67aa28b5 Support resampling for loopback audio. 2021-07-13 22:08:10 +03:00
John Preston
db81638656 Allow sharing screen with sound on Windows. 2021-07-13 22:08:09 +03:00
John Preston
402729dc99 Check unmuted video limit in group call. 2021-07-13 22:08:09 +03:00
John Preston
801c8b6220 Screencast with system sound on Windows. 2021-07-13 22:08:09 +03:00
John Preston
881eb4510e Separate test and production RSA keys. 2021-07-13 22:08:09 +03:00
John Preston
cc013305ac Apply local volume / mute to additional audio stream. 2021-07-13 22:08:09 +03:00
John Preston
f17fc0b670 Support additional audio ssrc. 2021-07-13 22:08:09 +03:00
John Preston
5e2cdde2c8 Update API scheme. 2021-07-13 22:08:09 +03:00
John Preston
eea48c7139 Update used public RSA keys. 2021-07-13 22:08:09 +03:00
John Preston
95a7ce4622 New auth key generation algorithm. 2021-07-13 22:08:09 +03:00
John Preston
a0540e0486 Send dependent requests in bunches. 2021-07-13 22:08:09 +03:00
John Preston
e28fb1211e Handle MSG_WAIT_FAILED / MSG_WAIT_TIMEOUT. 2021-07-13 22:08:09 +03:00
John Preston
bae8335285 Always resend messages in a container. 2021-07-13 22:08:09 +03:00
John Preston
8fc7ba7ac1 Handle updateBotCommands. 2021-07-13 22:08:09 +03:00
John Preston
8f5ac0420e Update API scheme to layer 131. 2021-07-13 22:08:09 +03:00
John Preston
b57255297c Clang on Linux build fixes. 2021-07-13 21:56:36 +03:00
Ilya Fedin
79cc797aff Fix -Wunused-variable warnings 2021-07-13 21:43:34 +03:00
Ilya Fedin
b6881022ce Allow to build with -Werror and clang
Fixes -Wdeprecated-enum-enum-conversion, -Wdeprecated-declarations, -Wrange-loop-construct, -Winconsistent-missing-override
2021-07-13 21:32:06 +03:00
Ilya Fedin
89765340c3 Fix -Wunused-function warnings 2021-07-13 21:31:22 +03:00
John Preston
84b1fac0c8 Fix more warnings in submodules. 2021-07-13 21:30:55 +03:00
nyakze
a283049b34 Expand moderator mode + fix
Apparently for commands to work, they have to be bind to 1-9 keys, apart from any other alternative hotkeys. It should address this issue, as well as expanding to ease the usage on numpad.
2021-07-13 16:04:16 +03:00
Ilya Fedin
8ecc98eb03 Right file dialog freeze fix
The freezing is still happening if the service is not accessible
2021-07-12 11:10:16 +03:00
Ilya Fedin
c53564cfdc Set service name for MPRIS 2021-07-10 14:28:04 +03:00
John Preston
cc7f569c77 Fix build on non-Windows. 2021-07-09 21:39:08 +03:00
23rd
7526964904 Simplified calculation of minimum crop size in photo editor.
It also fixes cropping of images with unbalanced ratios.
2021-07-09 13:15:31 +03:00
23rd
f1669674d8 Moved formatting of image size text to single place.
Fixed wrong size display on retina screens.
Replaced "x" with special character.
2021-07-09 13:15:31 +03:00
23rd
cab8a52f8f Fixed visual glitch in image size text from SendFilexBox.
Regression was introduced in f52c6a6daa.
2021-07-09 13:15:31 +03:00
23rd
6b93d8dc41 Refactored and fixed saving scene states between modes in photo editor. 2021-07-09 12:49:07 +03:00
23rd
9be122710d Moved SaveState from Editor::BaseItem to Editor::NumberedItem. 2021-07-09 12:49:07 +03:00
23rd
1e3044fbf4 Moved performing of Undo/Redo from Editor::Paint to Editor::Scene. 2021-07-09 12:49:07 +03:00
23rd
aef2148ed0 Moved hasUndo and hasRedo from Editor::Paint to Editor::Scene. 2021-07-09 12:49:07 +03:00
23rd
fb511c3e03 Added status to Editor::NumberedItem. 2021-07-09 12:49:07 +03:00
23rd
6acd9f18ad Replaced interaction with QGraphicsItem to Editor::NumberedItem. 2021-07-09 12:49:07 +03:00
23rd
78b25c694e Added ability to save and restore items state in photo editor. 2021-07-09 12:49:07 +03:00
23rd
d2d97a3e47 Moved to separate file some structs for internal usage in photo editor. 2021-07-09 12:49:07 +03:00
23rd
bf8f3e42f4 Simplified work with Editor::ItemBase::Data. 2021-07-09 12:49:07 +03:00
23rd
fe8eae09c4 Fixed item handlers size when opening photo editor with modified scene. 2021-07-09 12:49:07 +03:00
23rd
5bbf3a329d Fixed items order when opening photo editor with modified scene. 2021-07-09 12:49:07 +03:00
23rd
8ddbf08a97 Changed max and min sizes of scene items from pixels to ratio. 2021-07-09 12:49:06 +03:00
23rd
d69090bf34 Moved flip and rotation info to Editor::ItemBase struct. 2021-07-09 12:49:06 +03:00
23rd
0c50fbf1b9 Moved Editor::ItemBase arguments to struct. 2021-07-09 12:49:06 +03:00
John Preston
4206ff0483 Don't use MTP* for StickersSet flags. 2021-07-09 09:08:58 +03:00
Ilya Fedin
62fd968409 Don't call gtk_selection_data_get_length on nullptr 2021-07-08 22:09:26 +03:00
Ilya Fedin
2c6e4eed19 Use unique_ptr for GtkSelectionData 2021-07-08 22:09:26 +03:00
John Preston
75090dedaa Don't store MTPInputStickerSet in data. 2021-07-08 22:08:59 +03:00
23rd
9dfb43d525 Fixed build for macOS and Linux. 2021-07-08 20:18:40 +03:00
Ilya Fedin
3b07785f87 Optimize pasting with gtk 2021-07-08 18:58:40 +03:00
John Preston
f22e68fc32 Don't use MTP* for PeerSettings flags. 2021-07-08 17:32:39 +03:00
John Preston
878c890bc2 Bump version to 2.8.7.beta for serialization. 2021-07-08 16:11:30 +03:00
John Preston
a74228acea Don't use MTP* for ChannelData flags. 2021-07-08 16:11:09 +03:00
John Preston
5040c2e766 Don't use MTP* for ChatData flags. 2021-07-08 15:11:46 +03:00
John Preston
e34375405e Don't use MTP* for UserData flags. 2021-07-08 14:19:12 +03:00
John Preston
2ffda9f240 Don't use MTP* for ChatAdminRight / ChatRestriction. 2021-07-08 13:34:06 +03:00
23rd
8e73a6a6ff Fixed Github CI Windows build. 2021-07-07 19:31:36 +03:00
John Preston
b642a80cd8 Fix timers race condition on Windows. 2021-07-07 17:57:31 +03:00
John Preston
94bdae13d8 Fix Qt build instructions on Windows. 2021-07-07 17:29:20 +03:00
Ilya Fedin
ee773a28bb Fix 30s freeze after pasting 2021-07-07 16:40:09 +03:00
John Preston
caddb44a2c Update tg_owt revision. 2021-07-07 16:39:26 +03:00
Ilya Fedin
1b4216803d Add snap permission to own name for gtk integration IPC 2021-07-07 14:26:33 +03:00
Ilya Fedin
17cee8ec56 Set service name for lib_base and lib_webview gtk integration 2021-07-07 12:16:01 +03:00
John Preston
3cdd115317 Beta version 2.8.6: Fix build for Linux. 2021-07-07 00:54:56 +03:00
John Preston
bdd1d2484c Beta version 2.8.6: Update build script. 2021-07-06 20:32:08 +03:00
John Preston
d5a416d5ea Beta version 2.8.6: Fix build for macOS. 2021-07-06 20:25:46 +03:00
John Preston
46d393ea0f Beta version 2.8.6.
- Added a simple image editor.
Crop photos or highlight parts of screenshots before sending.
- Use Direct3D 9 backend in ANGLE by default (Windows).
- Fix "Show in Finder" not focusing the Finder window (macOS).
- Use GTK from a child process (Linux).
2021-07-06 17:17:23 +03:00
nyakze
68e351b7c8 Attempt to fix not working commands
Attempt to fix not working commands by using more conventional keys
2021-07-06 17:16:46 +03:00
John Preston
6f9c911faa Fix Qt build instructions with ANGLE. 2021-07-06 17:04:05 +03:00
John Preston
dd381d9b56 Show vector elements count in DebugLogs. 2021-07-06 16:54:26 +03:00
John Preston
8eedc7b2ba Fix build on Windows. 2021-07-06 15:56:43 +03:00
John Preston
9ba1af2eb9 Use tg_angle fork. 2021-07-06 15:55:49 +03:00
23rd
f567328a60 Fixed deleting item after saving result of scene in photo editor. 2021-07-06 14:15:07 +03:00
23rd
953fa52490 Fixed updating of undo state on deleting item in photo editor. 2021-07-06 14:15:07 +03:00
23rd
b1477260f0 Improved content margins in photo editor. 2021-07-06 14:15:07 +03:00
23rd
038de9ef15 Changed behavior to keep StickerSetBox until pack is archived. 2021-07-06 12:13:06 +03:00
23rd
4701c5d6e3 Added ability to archive mask packs. 2021-07-06 12:13:06 +03:00
23rd
8420b7dc17 Disabled ability to use hotkeys when selecting color in photo editor. 2021-07-06 12:13:06 +03:00
23rd
9dacf69d41 Fixed line drawing on mode switching in photo editor. 2021-07-06 12:13:06 +03:00
23rd
a91efd9164 Fixed ability to draw blank lines in photo editor. 2021-07-06 12:13:06 +03:00
23rd
a631a28092 Removed App::pixmapFromImageInPlace. 2021-07-06 12:13:06 +03:00
23rd
7bcb1fc8b2 Fixed borders of drawn lines in photo editor. 2021-07-06 12:13:06 +03:00
23rd
cdafd8f171 Fixed width of preview for small media in SendFilesBox.
Regression was introduced in 42d4fdb89f.
2021-07-06 12:13:06 +03:00
23rd
116aa01e51 Refactored column width in SingleMediaPreview. 2021-07-06 12:13:06 +03:00
23rd
96b40f43e9 Added ability to drag and drop images in photo editor. 2021-07-06 12:13:06 +03:00
23rd
a93ec9c2c2 Added Escape hotkey to clear selection in photo editor. 2021-07-06 12:13:06 +03:00
23rd
3ee3919d50 Added hotkeys for switching between modes in photo editor. 2021-07-06 12:13:06 +03:00
23rd
b4410c49b9 Added background color in photo editor. 2021-07-06 12:13:06 +03:00
23rd
82bf6ca94f Fixed display of sticker panel on mode change in photo editor. 2021-07-06 12:13:06 +03:00
23rd
785ebfee34 Added animation to button bars in photo editor. 2021-07-06 12:13:06 +03:00
23rd
a60f8d75a0 Added second button bar for paint mode in photo editor. 2021-07-06 12:13:06 +03:00
23rd
5976a7ed19 Moved edge buttons to bar in photo editor. 2021-07-06 12:13:06 +03:00
23rd
df7026b59c Made alignment to bottom for button strip in photo editor. 2021-07-06 12:13:06 +03:00
23rd
edfd9bedc1 Improved style for controls in EditCaptionBox. 2021-07-06 12:13:06 +03:00
23rd
f52c6a6daa Improved style for controls in SendFilesBox. 2021-07-06 12:13:06 +03:00
23rd
af10b6d487 Added icons for SendFilesBox. 2021-07-06 12:13:06 +03:00
23rd
e30eacff41 Added photo editor hint to SendFilesBox. 2021-07-06 12:13:06 +03:00
23rd
18154e403a Added ability to open photo editor in SendFilesBox with left-click. 2021-07-06 12:13:06 +03:00
23rd
6975b04e6b Fixed triggering of pressed buttons in album preview. 2021-07-06 12:13:06 +03:00
23rd
948302cf02 Added setting to hide photo editor hint. 2021-07-06 12:13:06 +03:00
23rd
e4cff8cb4b Added photo editor hint to EditCaptionBox. 2021-07-06 12:13:06 +03:00
23rd
5bd17ae1b2 Fixed caption area height in EditCaptionBox.
Regression was introduced in 51f960442e.
2021-07-06 12:13:06 +03:00
23rd
22213a71c1 Added ability to open photo editor in EditCaptionBox with left-click. 2021-07-06 12:13:06 +03:00
23rd
e926e5f882 Slightly improved style of controls in photo editor. 2021-07-06 12:13:06 +03:00
23rd
221d45b500 Updated control icons for photo editor. 2021-07-06 12:13:06 +03:00
23rd
6bb7e2c2eb Removed using of hardcoded numbers of tray menu actions. 2021-07-06 12:13:06 +03:00
23rd
2a86ce596d Added shortcuts for actions of items in photo editor. 2021-07-06 12:13:06 +03:00
23rd
f936e484cc Removed unused types from scene items. 2021-07-06 12:13:05 +03:00
23rd
b2a1c10036 Removed masks panel when there are no masks. 2021-07-06 12:13:05 +03:00
23rd
2a58d01927 Removed search and featured buttons from masks panel. 2021-07-06 12:13:05 +03:00
23rd
7cd6b821b3 Fixed update of recently attached stickers after sending. 2021-07-06 12:13:05 +03:00
23rd
de108c8efe Fixed removing masks set from StickersListWidget. 2021-07-06 12:13:05 +03:00
23rd
e7104b5ebe Added support for archived masks. 2021-07-06 12:13:05 +03:00
23rd
2d17bd02a3 Moved mask management to separate box. 2021-07-06 12:13:05 +03:00
23rd
2a3115f461 Fixed phrases to display mask count. 2021-07-06 12:13:05 +03:00
23rd
8d62800e77 Moved stickerSetInstalled from ApiWrap to Data::Stickers. 2021-07-06 12:13:05 +03:00
23rd
7e04bf9533 Added ability to install mask sets. 2021-07-06 12:13:05 +03:00
23rd
2bd3a8aaff Added ability to delete and reorder mask sets.
Moved ApiWrap::stickerSetDisenabled and ApiWrap::stickersSaveOrder
to ApiWrap::saveStickerSets as lambdas.
2021-07-06 12:13:05 +03:00
23rd
70f92a7817 Added initial masks tab to manage stickers box. 2021-07-06 12:13:05 +03:00
23rd
8e08f69508 Added support updateNewStickerSet and updateStickerSets for masks. 2021-07-06 12:13:05 +03:00
23rd
abe62475cb Added support updateStickerSetsOrder for masks. 2021-07-06 12:13:05 +03:00
23rd
1cdb83462e Added initial implementation of masks panel. 2021-07-06 12:13:05 +03:00
23rd
d9a29b6f15 Fixed item pen width in big images. 2021-07-06 12:13:05 +03:00
23rd
1504f92a64 Fixed size limits of item on big images. 2021-07-06 12:13:05 +03:00
23rd
36e5056b59 Fixed selection of items on mode switching. 2021-07-06 12:13:05 +03:00
23rd
c5c707f0fd Fixed independence of item and scene transforms when adding. 2021-07-06 12:13:05 +03:00
23rd
832dd8d50c Moved some photo editor files to separate directories. 2021-07-06 12:13:05 +03:00
23rd
7d2b20e624 Made TabbedSelector more flexible. 2021-07-06 12:13:05 +03:00
23rd
049945a9b9 Added ability to duplicate items in photo editor. 2021-07-06 12:13:05 +03:00
23rd
808c9e3d2c Added ability to flip items in photo editor. 2021-07-06 12:13:05 +03:00
23rd
fde7cef9c8 Removed using of raw pointers for QGraphicsItem in photo editor.
Now all items are wrapped in the shared_ptr,
and the Scene loses ownership of all items before being destroyed.
2021-07-06 12:13:05 +03:00
23rd
2791f89f30 Added initial context menu to items in photo editor. 2021-07-06 12:13:05 +03:00
23rd
858b5831e8 Fixed clearing of redo list after adding sticker item in photo editor. 2021-07-06 12:13:05 +03:00
23rd
9166423598 Fixed multi selection of items in photo editor. 2021-07-06 12:13:05 +03:00
23rd
184d984336 Added ability to snap rotation of items with Shift key in photo editor. 2021-07-06 12:13:05 +03:00
23rd
0b5044f064 Fixed size of handles of base item in photo editor. 2021-07-06 12:13:05 +03:00
23rd
274b66f74b Added ability to create items in photo editor with different ratios. 2021-07-06 12:13:05 +03:00
23rd
e05343d721 Added sending info of stickered photos. 2021-07-06 12:13:05 +03:00
23rd
bc316a2536 Removed Storage::UploadedThumbDocument struct. 2021-07-06 12:13:05 +03:00
23rd
a6904be81d Slightly optimized mouse painting in photo editor. 2021-07-06 12:13:05 +03:00
23rd
690a7d1608 Fixed undo and redo paint actions. 2021-07-06 12:13:05 +03:00
23rd
a3e54fcd7c Moved draft painting in photo editor to separate files. 2021-07-06 12:13:05 +03:00
23rd
23c67bb2a2 Added ability to add stickers to photo in photo editor. 2021-07-06 12:13:05 +03:00
23rd
75367f0488 Added sticker panel to photo editor. 2021-07-06 12:13:05 +03:00
23rd
216ffad80e Added container of controllers for photo editor. 2021-07-06 12:13:05 +03:00
23rd
c312607ff8 Added stickers panel controller for photo editor. 2021-07-06 12:13:05 +03:00
23rd
812d616f66 Added scene base item for photo editor. 2021-07-06 12:13:05 +03:00
23rd
183408cb2d Added button highlighting for flipped image to photo editor. 2021-07-06 12:13:05 +03:00
23rd
1a7d5b7c95 Removed unused photo crop box. 2021-07-06 12:13:05 +03:00
23rd
17465e1082 Replaced old photo crop box with photo editor for profile photos. 2021-07-06 12:13:05 +03:00
23rd
a996b14291 Fixed keeping of aspect ratio in crop widget. 2021-07-06 12:13:05 +03:00
23rd
2045252cfd Added ability to pass data for photo editor. 2021-07-06 12:13:05 +03:00
23rd
a2e674bdb6 Added Window::Controller pointer to data of intro widget. 2021-07-06 12:13:05 +03:00
23rd
cc4055a5e3 Added method to Window::Controller to show custom layer widget. 2021-07-06 12:13:05 +03:00
23rd
d1b6cf1fae Added draft menu to EditCaptionBox to open photo editor. 2021-07-06 12:13:05 +03:00
23rd
671a06c407 Replaced using of QPixmap in photo editor with Image. 2021-07-06 12:13:05 +03:00
23rd
3ce315111f Added draft menu to SendFilesBox to open photo editor. 2021-07-06 12:13:05 +03:00
23rd
09768ce28a Refactored crop widget in photo editor. 2021-07-06 12:13:05 +03:00
23rd
c9affe0da5 Added custom layer widget with photo editor. 2021-07-06 12:13:05 +03:00
23rd
4909ba5a1e Added ability to pass custom layer widgets to stack. 2021-07-06 12:13:05 +03:00
23rd
e322733e20 Added saving of color and size of brush from photo editor to settings. 2021-07-06 12:13:05 +03:00
23rd
dc7f440902 Added color picker to photo editor. 2021-07-06 12:13:05 +03:00
23rd
4849376347 Added ability to undo and to redo paint actions in photo editor. 2021-07-06 12:13:05 +03:00
23rd
8eca57f419 Added saving and discarding between modes in photo editor. 2021-07-06 12:13:05 +03:00
23rd
0adcd37030 Added edge buttons to controls of photo editor. 2021-07-06 12:13:05 +03:00
23rd
2bdb9af146 Added dummy control icons for photo editor. 2021-07-06 12:13:05 +03:00
23rd
5b6bddd7fc Added initial implementation of mouse drawing in photo editor. 2021-07-06 12:13:05 +03:00
23rd
e1ea833ad6 Added ability to crop images in photo editor. 2021-07-06 12:13:05 +03:00
23rd
85c21ba0e4 Added ability to open photo editor with saved modifications. 2021-07-06 12:13:05 +03:00
23rd
4d72d20398 Added ability to send modified images. 2021-07-06 12:13:04 +03:00
23rd
9d3d16a725 Added initial ability to rotate and flip image to photo editor. 2021-07-06 12:13:04 +03:00
23rd
99deaf6005 Added dummy buttons to PhotoEditorControls. 2021-07-06 12:13:04 +03:00
23rd
d8921c7cf5 Added HorizontalContainer for buttons to PhotoEditorControls. 2021-07-06 12:13:04 +03:00
23rd
f7fa36ca1d Added photo painting to PhotoEditorContent. 2021-07-06 12:13:04 +03:00
23rd
45f8e68203 Initialized empty files of photo editor. 2021-07-06 12:13:04 +03:00
John Preston
2b47d6d63f Add depot_tools information to build instructions. 2021-07-06 12:05:45 +03:00
John Preston
aaefeed3f1 Support custom keyboard placeholders. 2021-07-05 21:12:52 +03:00
John Preston
7f00065bd8 Update API scheme to layer 130. 2021-07-05 21:12:52 +03:00
Ilya Fedin
6f031a715e Revert "Use QMenuBar instead of own global menu implementation on Linux"
This reverts commit 79f96480c2.
2021-07-05 21:01:20 +03:00
John Preston
6981ae605a Fix fake unread status reset on account change. 2021-07-05 19:48:06 +03:00
John Preston
d91c21fb26 Try enabling OpenGL back after switching to ANGLE. 2021-07-05 19:48:06 +03:00
John Preston
c95f052e60 Fix "Show in Finder" app focus bug by a Qt patch. 2021-07-05 19:31:21 +03:00
John Preston
c33be27b3c Update lib_webview submodule. 2021-07-05 15:57:55 +03:00
John Preston
6be9b25e99 Submit voice chat boxes by Enter. 2021-07-05 15:37:34 +03:00
Ilya Fedin
0bb391937e Update lib_webview 2021-07-04 20:05:53 +03:00
Ilya Fedin
75ff7a6637 Control GtkOpenWithDialog lifetime from outside 2021-07-04 20:05:53 +03:00
John Preston
aece7c1096 Remove testing code in stickers view. 2021-07-02 22:11:34 +03:00
John Preston
d2e6e7adf2 Fix build on macOS. 2021-07-02 22:11:23 +03:00
John Preston
b930bc0e6d Track bot commands separately in different chats. 2021-07-02 20:41:48 +03:00
John Preston
93d99d6173 Track only strings in BotCommand struct. 2021-07-02 20:41:46 +03:00
John Preston
a8df3dcf91 Remove test code for animated path thumbnails. 2021-07-02 20:40:32 +03:00
John Preston
b22e2ffe1d Animate inline path thumbnails with sliding gradient. 2021-07-02 20:40:32 +03:00
Ilya Fedin
22d23c8be1 Add missed signalId check 2021-07-02 20:11:28 +03:00
Ilya Fedin
b335741f99 Use gsl::finally to pop thread context where appropriate 2021-07-02 20:11:28 +03:00
Ilya Fedin
1261c775d4 Fix freeze after creating file dialog 2021-07-02 15:51:58 +03:00
John Preston
01b4a24ac7 Save sticker path thumbnails to local storage. 2021-07-02 13:39:08 +03:00
John Preston
4124c2eb57 Show inline path thumbnails for stickers. 2021-07-02 13:13:48 +03:00
John Preston
f09b91ebb5 Beta version 2.8.5: Fix build on non-Windows. 2021-07-02 04:45:58 +03:00
John Preston
57b147e0c8 Beta version 2.8.5.
- Use ANGLE for OpenGL over DirectX 9 / DirectX 11 (Windows).
- Use GTK from a child process (Linux).
2021-07-02 00:59:51 +03:00
Ilya Fedin
551ea7d879 Move GTK integration out of process with D-Bus 2021-07-02 00:59:36 +03:00
John Preston
d3c9bb0bc6 Try disabling native child OpenGL workaround. 2021-07-02 00:37:27 +03:00
John Preston
c711b1f1df Fix build on non-Linux systems. 2021-07-02 00:27:25 +03:00
23rd
af7ea90246 Added floating panel of playing playlist for scheduled audio files. 2021-07-01 23:53:45 +03:00
23rd
348cf4829c Added ability to scroll media in section of scheduled messages.
Fixed #8388.
2021-07-01 23:53:45 +03:00
23rd
4753a57091 Added ability to validate playlists in section of scheduled messages. 2021-07-01 23:53:45 +03:00
23rd
1a93f4fa4c Added ability to sparse id slices of scheduled media. 2021-07-01 23:53:45 +03:00
23rd
118fd187e3 Added abstract class for sparse ids slices. 2021-07-01 23:53:45 +03:00
23rd
baa47bde7f Removed unused MsgRange from SparseIdsSlice. 2021-07-01 23:53:45 +03:00
John Preston
18b48df9ce Allow to choose ANGLE backend. 2021-07-01 23:48:18 +03:00
John Preston
e71fc60d22 Use exact revision of ANGLE. 2021-07-01 23:48:16 +03:00
John Preston
148af59615 Don't check dll-s if "SetDefaultDllDirectories" is available. 2021-07-01 23:47:12 +03:00
John Preston
5b2db4112f Don't allow any .dll-s near Telegram.exe 2021-07-01 23:47:12 +03:00
John Preston
7cedc1f7a5 Add dynamic DirectX loading helper. 2021-07-01 23:47:08 +03:00
John Preston
6cea7d4a52 Fix YUV->RGB on D3D9 ANGLE backend. 2021-07-01 23:46:52 +03:00
John Preston
bd93aed393 Test build with statically linked ANGLE. 2021-07-01 23:46:52 +03:00
John Preston
348666de6d Use media viewer size hack only when required. 2021-07-01 23:46:52 +03:00
Ilya Fedin
47e32bebe4 Remove not really needed gtk scale factor query 2021-07-01 22:13:50 +03:00
Ilya Fedin
0b21c04489 Remove the copy of gtk file dialog 2021-07-01 22:13:50 +03:00
Ilya Fedin
85f013ebdb Revert "Avoid removing portal platformtheme plugin in snap"
This reverts commit 12db51fe75.
2021-07-01 22:13:50 +03:00
Ilya Fedin
832cc6ac69 Build Qt with gtk integration 2021-07-01 22:13:50 +03:00
Ilya Fedin
30ce049f51 Update submodules 2021-07-01 22:13:20 +03:00
Ilya Fedin
d42fb6d1b9 Switch from mallocng to jemalloc
Now it's known how to make it free the memory in an expected manner and it's better maintained
2021-07-01 22:13:20 +03:00
John Preston
cade53aa0a Version 2.8.4.
- Crash fixes in WebView on Windows.
2021-07-01 11:05:21 +03:00
GitHub Action
2fdcda7536 Update User-Agent for DNS to Chrome 91.0.4472.114. 2021-07-01 10:48:17 +03:00
Ilya Fedin
7e6439e4f8 Fix counting screen bottom point when restoring geometry 2021-06-30 00:27:39 +03:00
Ilya Fedin
f07ee7f590 Update lib_base and cmake_helpers 2021-06-29 17:35:39 +03:00
Ilya Fedin
02db4e01fa Get rid of qt5ct 2021-06-29 17:35:39 +03:00
Ilya Fedin
8d75078a42 Use Glib::MainLoop instead of QEventLoop in glib code 2021-06-29 15:10:08 +03:00
John Preston
0e25ef7524 Handle WinRT exceptions in WebView. 2021-06-29 14:08:50 +03:00
John Preston
8608d8aa4d Crash Fix: Destroy WebView before the container. 2021-06-29 11:07:47 +03:00
sammiee5311
c1a7332a5e Shorten if statement
Shorten if statement
2021-06-29 10:38:35 +03:00
Ilya Fedin
c3fb392906 Clean dbus-specific code in main_window_linux.h 2021-06-29 10:30:48 +03:00
Ilya Fedin
a59bfdb2f8 Fix handleNativeSurfaceChanged when dbus integration is disabled 2021-06-29 10:30:48 +03:00
Ilya Fedin
79f96480c2 Use QMenuBar instead of own global menu implementation on Linux 2021-06-29 10:30:48 +03:00
John Preston
60cbd96d91 Version 2.8.3.
- Fix crashes in OpenSSL on macOS.
2021-06-28 13:51:06 +03:00
John Preston
ee0400f1ac Version 2.8.2.
- Attempt to fix random crashes on macOS.

Fixes #16504.
2021-06-28 08:57:40 +03:00
John Preston
b8a3746558 Version 2.8.1: Fix NuGet WinRT header generation. 2021-06-26 13:26:39 +03:00
John Preston
14f25fc997 Version 2.8.1.
- Fix crash in audio player volume slider.
2021-06-26 13:03:40 +03:00
John Preston
27da6ee9eb Update patches revision in instructions. 2021-06-26 13:00:16 +03:00
John Preston
48d482006a Fix crash fix. 2021-06-26 12:33:18 +03:00
John Preston
9afee2620a Fix crash in vertical sliders.
Regression was introduced in 90ff8ecd0f.
2021-06-26 08:20:37 +03:00
John Preston
baca3047d4 Version 2.8: Fix build on Windows x64. 2021-06-24 18:39:41 +04:00
John Preston
43a5265e0c Version 2.8.
- Start video conferences from Voice Chats in any group.
- Share your screen or video from your camera
with up to 30 participants (limit to be increased soon).
- Talk without video with an unlimited number of participants.
- Create voice chats from the info page
of any group where you are an admin.
- Group video calls are supported natively on all devices,
including iPads and laptops.
2021-06-24 17:57:09 +04:00
John Preston
5519bb3523 Allow reporting private groups as well.
Fixes #7451.
2021-06-24 17:44:55 +04:00
John Preston
ff213d1386 Enable /LARGEADDRESSAWARE for 32 bit Windows build. 2021-06-24 17:44:55 +04:00
John Preston
55b3f99653 Fix new formatting mixing with emoji. 2021-06-24 17:44:55 +04:00
John Preston
8a6ff3f414 Add separator above volume control in voice chats. 2021-06-24 17:44:55 +04:00
John Preston
feb8624d05 Don't use private Hunspell headers. 2021-06-24 17:44:55 +04:00
John Preston
a2c33545d4 Improve some paddings. 2021-06-24 17:44:28 +04:00
23rd
7decf68122 Fixed possible crash in OverlayWidget when video continues from PiP. 2021-06-24 17:44:28 +04:00
John Preston
6b62ec97c6 Fix possible crash in export panel management. 2021-06-24 11:57:27 +04:00
Ilya Fedin
ea3dab4a06 Update lib_base 2021-06-24 11:26:24 +04:00
Ilya Fedin
5c8f08fc92 Move preview support from QGtkDialog to GtkFileDialog 2021-06-24 11:26:24 +04:00
Ilya Fedin
00a0b2c8b6 Get rid of GTK cast templates 2021-06-24 11:26:24 +04:00
Ilya Fedin
007218cc13 Use C++ wrappers in GtkOpenWithDialog 2021-06-24 11:26:24 +04:00
Ilya Fedin
8afe495a4f Avoid using g_unix_fd_list_new_from_array 2021-06-24 11:26:24 +04:00
Ilya Fedin
257f2086d1 Get rid of gtk2 header compatibility 2021-06-24 11:26:24 +04:00
Ilya Fedin
f011c84ce8 Make Linux file dialog API better 2021-06-24 11:26:24 +04:00
Ilya Fedin
8b839f46b2 Fix crash report window scale 2021-06-24 11:26:08 +04:00
23rd
c1067d8fe1 Fixed possible crash in notifications manager. 2021-06-24 11:25:36 +04:00
23rd
bb76818cc8 Split adaptive changed rpl::producer into two. 2021-06-24 11:25:35 +04:00
John Preston
5dcc219f1c For large video tile always request full quality. 2021-06-24 10:57:23 +04:00
John Preston
4ff9e90153 Add some assertions and logging for a crash debugging. 2021-06-24 10:49:01 +04:00
John Preston
28fe98af80 Add some assertions for a strange crash debugging. 2021-06-24 10:24:52 +04:00
John Preston
5eba65aaa0 Remove unused legacy protocol code. 2021-06-24 09:55:57 +04:00
John Preston
d1e3e7d240 Don't show pinned tooltips if only one video. 2021-06-23 20:14:49 +04:00
John Preston
90ff8ecd0f Fix volume slider in voice chats. 2021-06-23 20:14:22 +04:00
John Preston
468e75a572 Update submodules. 2021-06-23 20:13:19 +04:00
John Preston
ae3e5487d7 Fix editing messages with monospace parts. 2021-06-23 15:55:29 +04:00
John Preston
03147a5426 Fix possible crash in case of API error. 2021-06-23 14:29:38 +04:00
John Preston
14a2b10989 Show error if camera could not be enabled. 2021-06-23 12:04:05 +04:00
John Preston
b29f8aa1e6 Remove background over highlight in volume change item. 2021-06-23 11:07:23 +04:00
John Preston
f9bb932cd8 Fix voice chat window expanding near the screen edges. 2021-06-23 10:52:04 +04:00
John Preston
a38cbbf7e8 Fix disappearing icons after popup menu display. 2021-06-23 10:43:51 +04:00
John Preston
d5bb1717e0 Beta version 2.7.10: Fix link on macOS. 2021-06-22 23:07:33 +04:00
John Preston
520ff8f2ce Beta version 2.7.10: Fix build with Xcode. 2021-06-22 21:25:03 +04:00
John Preston
b3848f6a84 Beta version 2.7.10: Fix screencasts. 2021-06-22 21:23:01 +04:00
John Preston
518f387e0c Beta version 2.7.10: Update version. 2021-06-22 20:00:35 +04:00
John Preston
635f76a312 Beta version 2.7.10.
- Added ability to mix together bold, italic and other formatting.
- Fix voice chats and video calls OpenGL with some drivers on Windows.
- Several bug fixes.
2021-06-22 19:59:22 +04:00
John Preston
ff14ac68ee Always show tooltip about the muted microphone. 2021-06-22 19:50:26 +04:00
John Preston
948c5d50cb Add C++/WinRT library helper to lib_base. 2021-06-22 19:47:02 +04:00
John Preston
6b520ecc05 Add overlapping markup support. 2021-06-22 19:05:27 +04:00
John Preston
bb474686eb Use NuGet package for WinRT headers generation. 2021-06-22 09:53:20 +04:00
John Preston
659ddae9a8 Use native child window in video calls on Windows. 2021-06-21 11:29:29 +04:00
John Preston
b70276912e Use native child window in group calls on Windows. 2021-06-21 09:23:10 +04:00
23rd
858c575782 Fixed Hunspell license. 2021-06-21 09:23:10 +04:00
23rd
62fe14d592 Fixed lock icon display when switching layers in one column mode. 2021-06-21 09:23:10 +04:00
Ilya Fedin
6ad037e556 Update lib_waylandshells and cmake_helpers 2021-06-20 10:39:42 +04:00
Ilya Fedin
a55b41faa1 Provide a list of shell integrations in QT_WAYLAND_SHELL_INTEGRATION 2021-06-20 10:39:42 +04:00
Ilya Fedin
a26d769304 Set QT_WAYLAND_SHELL_INTEGRATION to custom value 2021-06-19 08:16:38 +04:00
John Preston
e1120d1cb5 Optimize out most of LastUserInputTime() calls.
Fixes #16118.
2021-06-18 19:22:36 +04:00
John Preston
8897f9e46a Limit requested qualities to 4 Full / 16 Medium. 2021-06-18 18:43:13 +04:00
John Preston
7a588be54f Add a hint to unmute your microphone. 2021-06-18 17:47:07 +04:00
John Preston
1cb1f1cbc1 Add a hint to turn on the camera. 2021-06-18 16:11:32 +04:00
John Preston
5827d6ffdb Update lib_ui submodule. 2021-06-18 12:15:01 +04:00
Ilya Fedin
766bc90921 Adapt for Ui::DisableCustomScaling changes 2021-06-18 12:15:01 +04:00
23rd
eb228eb744 Removed unused methods from file click handler. 2021-06-18 09:48:39 +03:00
23rd
7c02d67665 Moved cancelUploadLayer from MainWidget to SessionController. 2021-06-18 09:39:10 +03:00
23rd
23c54896e5 Removed App::main() from file click handlers. 2021-06-18 09:20:49 +03:00
23rd
460baa54d8 Fixed switching between PiP and OverlayWidget. 2021-06-18 07:30:54 +03:00
23rd
6c56fad180 Fixed updating of parent id for file click handlers.
Fixed #16447.
2021-06-18 07:30:54 +03:00
23rd
3fd772ce17 Moved file click handlers to separated file. 2021-06-18 07:30:54 +03:00
John Preston
8834ec8bf2 Disable audio device tracking on macOS. 2021-06-17 17:15:13 +04:00
John Preston
003fb52fb9 Make 100% volume value more sticky. 2021-06-17 16:42:50 +04:00
John Preston
ec234cdc43 Improve volume slider design in group calls. 2021-06-17 16:22:51 +04:00
John Preston
55e494f55a Beta version 2.7.9.
- Added "Enable noise suppression" option to group calls Settings.
- Fix media viewer with Retina + Non-Retina dual monitor setup on macOS.
- Several bug and crash fixes.
2021-06-17 12:11:08 +04:00
John Preston
0b4605a656 Don't pass Quality::Medium for screencast to tgcalls. 2021-06-17 12:03:26 +04:00
John Preston
18a86e500b Update tgcalls and tg_owt. 2021-06-17 11:55:10 +04:00
John Preston
e19af1257c Improve video in voice chats controls layout. 2021-06-17 11:52:53 +04:00
John Preston
e0159e15b2 Close StickerSetBox on error. 2021-06-17 11:06:17 +04:00
23rd
b6e77537e2 Fixed logo size in box of invite link QR code generation. 2021-06-17 10:57:46 +04:00
23rd
beaa4190eb Removed Q_OBJECT from GroupMembersWidget.
Removed unused onlineCountUpdated since d93c1ccbaa.
2021-06-17 10:57:46 +04:00
23rd
7924979dfb Removed Ui::showPeerHistoryAtItem from facades. 2021-06-17 10:57:46 +04:00
23rd
570ed5691d Added Window::Controller pointer to data of intro widget. 2021-06-17 10:57:45 +04:00
23rd
c25779b844 Removed showDocument and showPhoto from Media::View::OverlayWidget. 2021-06-17 10:57:45 +04:00
23rd
7304f2b695 Removed Application::showTheme. 2021-06-17 10:57:45 +04:00
23rd
b4bff939b1 Removed showDocument and showPhoto from Application. 2021-06-17 10:57:45 +04:00
23rd
1f816c249b Replaced DocumentOpenClickHandler. 2021-06-17 10:57:45 +04:00
23rd
8591d58798 Added ability to show content from Controller for Shared Media. 2021-06-17 10:57:45 +04:00
23rd
9290cd3a16 Added SessionController pointer to Media::View::OverlayWidget. 2021-06-17 10:57:45 +04:00
23rd
dc0aaec4a4 Added ability to show document from Controller for sections. 2021-06-17 10:57:45 +04:00
23rd
eefa7263b5 Added ability to show photo from Controller for sections. 2021-06-17 10:57:45 +04:00
23rd
7885be4a94 Added ability to show content from Controller for inline results. 2021-06-17 10:57:45 +04:00
23rd
583c3d3429 Moved static functions from DocumentData to separated file. 2021-06-17 10:57:45 +04:00
23rd
6d0d399250 Added initial ability to show documents in OverlayWidget from Controller. 2021-06-17 10:57:45 +04:00
23rd
0e89c93993 Added initial ability to show content in OverlayWidget from Controller. 2021-06-17 10:57:45 +04:00
23rd
b422ec025e Removed Ui::show from classes that have pointer to Controller. 2021-06-17 10:57:45 +04:00
John Preston
c8535acad8 Fix crash in hunspell initialization. 2021-06-17 10:11:08 +04:00
John Preston
e2a97e2ae9 Fix possible crash in media viewer. 2021-06-17 10:09:22 +04:00
John Preston
77a019325d Show information about unsupported gradient backgrounds. 2021-06-16 11:30:33 +04:00
23rd
115dc460ac Removed unused variables from LastCrashedWindow. 2021-06-16 09:31:32 +03:00
23rd
3df1a73cf5 Removed Q_OBJECT from LastCrashedWindow. 2021-06-16 09:31:32 +03:00
23rd
5cf69366d1 Removed Q_OBJECT from NetworkSettingsWindow. 2021-06-16 09:31:32 +03:00
23rd
8c2b1168af Fixed background color of input fields in crash reports with dark theme. 2021-06-16 09:31:32 +03:00
23rd
a425024f21 Fixed userpic updating of pinned peers in touchbar. 2021-06-16 09:31:32 +03:00
23rd
e85026ec46 Removed observable in Intro::details::Step. 2021-06-16 09:31:32 +03:00
23rd
1c6e2eae04 Removed unused enum from local legacy storage settings scheme. 2021-06-16 09:31:32 +03:00
23rd
4db5624beb Completely removed Global namespace. 2021-06-16 09:31:32 +03:00
23rd
6d08542afa Moved proxy global variables from facades to core settings. 2021-06-16 09:31:32 +03:00
23rd
707b36dc12 Moved DBIWorkMode to Core::Settings. 2021-06-16 09:31:32 +03:00
23rd
da3e140069 Moved DBINotifyView to Core::Settings. 2021-06-16 09:31:32 +03:00
23rd
5334372671 Moved WorkMode global variable from facades to core settings. 2021-06-16 09:31:32 +03:00
23rd
16db8468fa Moved ScreenIsLocked variable from facades to application. 2021-06-16 09:31:32 +03:00
23rd
2ed3543b53 Renamed class back from AdaptiveModern to Adaptive. 2021-06-16 09:31:32 +03:00
23rd
5b4d442799 Removed Adaptive namespace and related global variables from facades. 2021-06-16 09:31:32 +03:00
23rd
9669a8a44a Moved Core::Settings:chatWide to Window::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
824fbc21e8 Removed Adaptive namespace from peer context menu. 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
9b488f03a1 Removed Adaptive namespace from Settings::Chat. 2021-06-16 09:31:32 +03:00
23rd
295a863d69 Removed Adaptive namespace from Profile::BackButton. 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
1af8e89eb9 Removed Adaptive namespace from HistoryWidget. 2021-06-16 09:31:32 +03:00
23rd
7cf79e1f8a Removed Adaptive namespace from sections. 2021-06-16 09:31:32 +03:00
23rd
019fd83c8a Removed Adaptive namespace from Dialogs::Widget. 2021-06-16 09:31:32 +03:00
23rd
65779ec37e Removed Adaptive namespace from FieldAutocomplete. 2021-06-16 09:31:32 +03:00
23rd
2d90a06078 Added new Adaptive class to replace legacy Adaptive namespace.
Temporarily named class as AdaptiveModern.
2021-06-16 09:31:32 +03:00
23rd
d2c8780c0f Removed NotificationsDemoIsShown global variable from facades. 2021-06-16 09:31:32 +03:00
23rd
54dd63d61a Removed LocalPasscode global variable from facades. 2021-06-16 09:31:32 +03:00
23rd
7852c82eab Simplified updating of autolock time in Settings::PrivacySecurity. 2021-06-16 09:31:32 +03:00
23rd
77c8bf8176 Removed PeerChooseCancel global variable from facades. 2021-06-16 09:31:32 +03:00
23rd
daa14466e5 Replaced observable in Lang::CloudManager with rpl. 2021-06-16 09:31:32 +03:00
23rd
aad38c2809 Replaced observable in Window::Notifications::System with rpl. 2021-06-16 09:31:32 +03:00
23rd
2c50d3d87b Replaced observable in Intro::details::Data with rpl. 2021-06-16 09:31:32 +03:00
23rd
0fe7c07007 Replaced observable with rpl in FixedBar of admin log. 2021-06-16 09:31:32 +03:00
23rd
c22d200c17 Removed unused observable trackFinished from Media::Audio::Instance. 2021-06-16 09:31:32 +03:00
23rd
9e6afa0d4e Removed observable dragFinished from MainWindow. 2021-06-16 09:31:32 +03:00
23rd
3340b2dc03 Replaced observable in Dialogs::InnerWidget with rpl. 2021-06-16 09:31:32 +03:00
23rd
386fae952b Replaced observable in SessionController with rpl. 2021-06-16 09:31:32 +03:00
23rd
a164cb9480 Removed unused observable passcodedChanged from Application. 2021-06-16 09:31:32 +03:00
23rd
bc9b288617 Replaced observable in StickersBox with rpl. 2021-06-16 09:31:32 +03:00
23rd
5c7229f875 Replaced observable in EditColorBox with rpl. 2021-06-16 09:31:31 +03:00
John Preston
658d5a1322 Fix move between Retina / Non-Retina. 2021-06-16 10:30:08 +04:00
John Preston
52e841ec29 Select correct quality for incoming screencast. 2021-06-16 08:59:15 +04:00
John Preston
df28da4d97 Show "Video is paused" in wide panel mode. 2021-06-15 16:49:53 +04:00
John Preston
8dac6896d6 Set Send/Receive buffer size for download TCP sockets. 2021-06-15 16:45:48 +04:00
John Preston
f18e157e46 Add video placeholder if can't receive it. 2021-06-15 14:30:51 +04:00
John Preston
b2bf8244dd Add "Enable noise suppression" setting to group calls. 2021-06-15 12:33:02 +04:00
John Preston
4e0355d09f Fix semi-transparent .webp in media viewer. 2021-06-14 15:28:39 +04:00
John Preston
7059336ff0 Show red mute icon for force-muted. 2021-06-14 15:15:33 +04:00
John Preston
94f10ce72e Fix dropping self level around mute button. 2021-06-14 14:57:25 +04:00
John Preston
68be54288c Fix working using OpenGLES / ANGLE. 2021-06-14 12:16:00 +04:00
John Preston
10636d931f Validate video speed before applying. 2021-06-14 11:22:57 +04:00
John Preston
3b1aa55d21 Don't send OpenGL initialization crash reports. 2021-06-14 11:22:39 +04:00
mid-kid
37f59095f4 Fix building with LINK_TO_GTK 2021-06-12 15:08:11 +04:00
John Preston
f85d1b8a29 Beta version 2.7.8: Update lib_waylandshells. 2021-06-12 00:27:56 +04:00
John Preston
ece491eee7 Beta version 2.7.8.
- Crash fixes.
2021-06-11 23:15:53 +04:00
John Preston
750c13e5fe Add OpenGL init crash checker. 2021-06-11 23:01:07 +04:00
John Preston
0fde35f59e Increase limit for full video request. 2021-06-11 22:52:59 +04:00
John Preston
5ab8a7d9c5 Fix controls in PiP video player. 2021-06-11 20:29:34 +04:00
John Preston
b1fad4f7e0 Fix possible crash in DBus SettingWatcher. 2021-06-11 19:41:58 +04:00
John Preston
4f0f815201 Fix crash in saving document from media viewer. 2021-06-11 19:36:27 +04:00
John Preston
f2286fdffd Fix possible crash in emoji suggestions. 2021-06-11 19:31:16 +04:00
John Preston
46dfde881a Fix crash in screencast error handling. 2021-06-11 19:19:50 +04:00
John Preston
95f7704d14 Fix crash in voice chat camera enabling. 2021-06-11 19:12:14 +04:00
John Preston
64a6838764 Fix crash in account switching. 2021-06-11 19:11:58 +04:00
3394 changed files with 184892 additions and 111281 deletions

View File

@@ -1,34 +0,0 @@
---
name: Bug report
about: Report errors or unexpected behavior.
---
<!--
Thanks for reporting issues of Telegram Desktop!
To make it easier for us to help you please enter detailed information below.
-->
### Steps to reproduce
1.
2.
3.
### Expected behaviour
Tell us what should happen
### Actual behaviour
Tell us what happens instead
### Configuration
**Operating system:**
**Version of Telegram Desktop:**
**Installation source (Linux Only)** - the official website / GitHub releases / flatpak / snap / distribution package:
**Used theme**:
<details><summary><b>Logs</b>:</summary>
Insert log.txt here (if necessary)
</details>

67
.github/ISSUE_TEMPLATE/BUG_REPORT.yml vendored Normal file
View File

@@ -0,0 +1,67 @@
name: Bug report
description: Report errors or unexpected behavior.
labels: [bug]
body:
- type: markdown
attributes:
value: |
Thanks for reporting issues of Telegram Desktop!
To make it easier for us to help you please enter detailed information below.
- type: textarea
attributes:
label: Steps to reproduce
placeholder: |
1.
2.
3.
validations:
required: true
- type: textarea
attributes:
label: Expected behaviour
placeholder: Tell us what should happen
validations:
required: true
- type: textarea
attributes:
label: Actual behaviour
placeholder: Tell us what happens instead
validations:
required: true
- type: input
attributes:
label: Operating system
description: >
Your operating system name, version and desktop environment.
Please don't use kernel version (uname), it's useless.
validations:
required: true
- type: input
attributes:
label: Version of Telegram Desktop
description: >
Please note we don't support versions from Linux distro repositories.
If you need support for these versions, please contact your distro maintainer
or your distro bugtracker.
Don't use 'latest', specify actual version, that's a reason to close your issue.
validations:
required: true
- type: dropdown
attributes:
label: Installation source
multiple: false
options:
- Static binary from official website
- Microsoft Store
- Mac App Store
- Flatpak
- Snap
- Other (unofficial) source
validations:
required: true
- type: textarea
attributes:
label: Logs
placeholder: Insert log.txt here (if necessary)
render: shell

View File

@@ -1,18 +0,0 @@
---
name: Feature request
about: Suggest an idea.
title: "[Feature Request] "
---
### Is your feature request related to a problem?
A clear and concise description of what the problem is.
### Describe the solution you'd like
A clear and concise description of what you want to happen.
### Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
### Additional context
Add any other context or screenshots about the feature request here.

View File

@@ -0,0 +1,30 @@
---
name: Feature request
description: Suggest an idea.
labels: [enhancement]
title: "[Feature Request] "
body:
- type: textarea
attributes:
label: Is your feature request related to a problem?
placeholder: A clear and concise description of what the problem is.
validations:
required: true
- type: textarea
attributes:
label: Describe the solution you'd like
placeholder: A clear and concise description of what you want to happen.
validations:
required: true
- type: textarea
attributes:
label: Describe alternatives you've considered
placeholder: A clear and concise description of any alternative solutions or features you've considered.
validations:
required: true
- type: textarea
attributes:
label: Additional context
placeholder: Add any other context or screenshots about the feature request here.
validations:
required: false

View File

@@ -1,11 +0,0 @@
# Number of days of inactivity before an Issue is closed for lack of response
daysUntilClose: 30
# Label requiring a response
responseRequiredLabel: waiting for answer
# Comment to post when closing an Issue for lack of response. Set to `false` to disable
closeComment: >
This issue has been automatically closed because there has been no response
to our request for more information from the original author. With only the
information that is currently in the issue, we don't have enough information
to take action. Please reach out if you have or find the answers we need so
that we can investigate further.

21
.github/stale.yml vendored
View File

@@ -1,21 +0,0 @@
# Number of days of inactivity before an issue becomes stale
daysUntilStale: 180
# Number of days of inactivity before a stale issue is closed
daysUntilClose: 30
# Issues with these labels will never be considered stale
exemptLabels: [ "enhancement" ]
# Label to use when marking an issue as stale
staleLabel: stale
# Comment to post when marking an issue as stale. Set to `false` to disable
markComment: |
Hey there!
This issue was inactive for a long time and will be automatically closed in 30 days if there isn't any further activity. We therefore assume that the user has lost interest or resolved the problem on their own.
Don't worry though; if this is an error, let us know with a comment and we'll be happy to reopen the issue.
Thanks!
# Comment to post when closing a stale issue. Set to `false` to disable
closeComment: false
# Process only issues
only: issues

View File

@@ -15,11 +15,26 @@ jobs:
name: Ubuntu
runs-on: ubuntu-latest
env:
IMAGE_TAG: ghcr.io/${{ github.repository }}/centos_env:latest
steps:
- name: Clone.
uses: actions/checkout@v2
uses: actions/checkout@v3.1.0
with:
submodules: recursive
- name: First set up.
run: curl -sSL https://install.python-poetry.org | python3 -
- name: Docker image build.
run: docker build -t telegram_desktop Telegram/build/docker/centos_env
run: |
cd Telegram/build/docker/centos_env
poetry install
DEBUG= LTO= poetry run gen_dockerfile | docker buildx build -t $IMAGE_TAG -
- name: Push the Docker image.
if: ${{ github.ref_name == github.event.repository.default_branch }}
run: |
echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin
docker push $IMAGE_TAG

View File

@@ -5,7 +5,6 @@ on:
paths-ignore:
- 'docs/**'
- '**.md'
- '!docs/building-cmake.md'
- 'changelog.txt'
- 'LEGAL'
- 'LICENSE'
@@ -13,7 +12,6 @@ on:
- '!.github/workflows/linux.yml'
- 'snap/**'
- 'Telegram/build/**'
- 'Telegram/Patches/**'
- 'Telegram/Resources/uwp/**'
- 'Telegram/Resources/winrc/**'
- 'Telegram/SourceFiles/platform/win/**'
@@ -25,7 +23,6 @@ on:
paths-ignore:
- 'docs/**'
- '**.md'
- '!docs/building-cmake.md'
- 'changelog.txt'
- 'LEGAL'
- 'LICENSE'
@@ -33,7 +30,6 @@ on:
- '!.github/workflows/linux.yml'
- 'snap/**'
- 'Telegram/build/**'
- 'Telegram/Patches/**'
- 'Telegram/Resources/uwp/**'
- 'Telegram/Resources/winrc/**'
- 'Telegram/SourceFiles/platform/win/**'
@@ -48,14 +44,14 @@ jobs:
name: CentOS 7
runs-on: ubuntu-latest
container:
image: docker.pkg.github.com/telegramdesktop/tdesktop/centos_env
image: ghcr.io/${{ github.repository }}/centos_env
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
defaults:
run:
shell: scl enable devtoolset-9 -- bash --noprofile --norc -eo pipefail {0}
shell: scl enable rh-python38 -- scl enable llvm-toolset-7.0 -- scl enable devtoolset-10 -- bash --noprofile --norc -eo pipefail {0}
strategy:
matrix:
@@ -64,9 +60,6 @@ jobs:
- "DESKTOP_APP_DISABLE_DBUS_INTEGRATION"
- "DESKTOP_APP_DISABLE_X11_INTEGRATION"
- "DESKTOP_APP_DISABLE_WAYLAND_INTEGRATION"
- "DESKTOP_APP_DISABLE_GTK_INTEGRATION"
- "LIBTGVOIP_DISABLE_ALSA"
- "LIBTGVOIP_DISABLE_PULSEAUDIO"
env:
UPLOAD_ARTIFACT: "false"
@@ -76,7 +69,7 @@ jobs:
run: echo "REPO_NAME=${GITHUB_REPOSITORY##*/}" >> $GITHUB_ENV
- name: Clone.
uses: actions/checkout@v2
uses: actions/checkout@v3.1.0
with:
submodules: recursive
path: ${{ env.REPO_NAME }}
@@ -84,7 +77,7 @@ jobs:
- name: First set up.
run: |
gcc --version
ln -s $LibrariesPath Libraries
ln -s /usr/src/Libraries
- name: Telegram Desktop build.
run: |
@@ -104,16 +97,14 @@ jobs:
-D CMAKE_CXX_FLAGS="-Werror" \
-D CMAKE_EXE_LINKER_FLAGS="-s" \
-D TDESKTOP_API_TEST=ON \
-D DESKTOP_APP_USE_PACKAGED=OFF \
-D DESKTOP_APP_DISABLE_CRASH_REPORTS=OFF \
$DEFINE
cd ../out/Debug
make -j$(nproc)
cmake --build ../out --config Debug --parallel
- name: Check.
run: |
filePath="$REPO_NAME/out/Debug/bin/Telegram"
filePath="$REPO_NAME/out/Debug/Telegram"
if test -f "$filePath"; then
echo "Build successfully done! :)"
@@ -127,7 +118,7 @@ jobs:
- name: Move artifact.
if: env.UPLOAD_ARTIFACT == 'true'
run: |
cd $REPO_NAME/out/Debug/bin
cd $REPO_NAME/out/Debug
mkdir artifact
mv Telegram artifact/
- uses: actions/upload-artifact@master
@@ -135,4 +126,4 @@ jobs:
name: Upload artifact.
with:
name: ${{ env.ARTIFACT_NAME }}
path: ${{ env.REPO_NAME }}/out/Debug/bin/artifact/
path: ${{ env.REPO_NAME }}/out/Debug/artifact/

View File

@@ -2,22 +2,14 @@ name: 'Lock Threads'
on:
schedule:
- cron: '0 * * * *'
- cron: '0 0 * * *'
jobs:
lock:
runs-on: ubuntu-latest
steps:
- uses: dessant/lock-threads@v2
- uses: dessant/lock-threads@v3
with:
github-token: ${{ github.token }}
issue-lock-inactive-days: 45
pr-lock-inactive-days: 45
issue-lock-comment: >
This issue has been automatically locked since there
has not been any recent activity after it was closed.
Please open a new issue for related bugs.
pr-lock-comment: >
This pull request has been automatically locked since there
has not been any recent activity after it was closed.
Please open a new issue for related bugs.
issue-inactive-days: 45
pr-inactive-days: 45

View File

@@ -5,7 +5,6 @@ on:
paths-ignore:
- 'docs/**'
- '**.md'
- '!docs/building-xcode.md'
- 'changelog.txt'
- 'LEGAL'
- 'LICENSE'
@@ -13,8 +12,7 @@ on:
- '!.github/workflows/mac.yml'
- 'lib/xdg/**'
- 'snap/**'
- 'Telegram/build/**'
- 'Telegram/Patches/**'
- 'Telegram/build/docker/**'
- 'Telegram/Resources/uwp/**'
- 'Telegram/Resources/winrc/**'
- 'Telegram/SourceFiles/platform/win/**'
@@ -24,7 +22,6 @@ on:
paths-ignore:
- 'docs/**'
- '**.md'
- '!docs/building-xcode.md'
- 'changelog.txt'
- 'LEGAL'
- 'LICENSE'
@@ -32,8 +29,7 @@ on:
- '!.github/workflows/mac.yml'
- 'lib/xdg/**'
- 'snap/**'
- 'Telegram/build/**'
- 'Telegram/Patches/**'
- 'Telegram/build/docker/**'
- 'Telegram/Resources/uwp/**'
- 'Telegram/Resources/winrc/**'
- 'Telegram/SourceFiles/platform/win/**'
@@ -44,35 +40,23 @@ jobs:
macos:
name: MacOS
runs-on: macos-latest
runs-on: macos-12
strategy:
matrix:
defines:
- ""
env:
MIN_MAC: "-mmacosx-version-min=10.12"
UNGUARDED: "-Werror=unguarded-availability-new"
GIT: "https://github.com"
PREFIX: "/usr/local/macos"
MACOSX_DEPLOYMENT_TARGET: "10.12"
XZ: "xz-5.2.5"
QT: "5_15_2"
OPENSSL_VER: "1_1_1"
QT_PREFIX: "/usr/local/desktop-app/Qt-5.15.2"
LIBICONV_VER: "libiconv-1.16"
UPLOAD_ARTIFACT: "false"
ONLY_CACHE: "false"
MANUAL_CACHING: "2"
DOC_PATH: "docs/building-xcode.md"
AUTO_CACHING: "1"
PREPARE_PATH: "Telegram/build/prepare/prepare.py"
steps:
- name: Get repository name.
run: echo "REPO_NAME=${GITHUB_REPOSITORY##*/}" >> $GITHUB_ENV
- name: Clone.
uses: actions/checkout@v2
uses: actions/checkout@v3.1.0
with:
submodules: recursive
path: ${{ env.REPO_NAME }}
@@ -80,439 +64,37 @@ jobs:
- name: First set up.
run: |
sudo chown -R `whoami`:admin /usr/local/share
brew install automake fdk-aac lame libass libtool libvorbis libvpx \
ninja opus sdl shtool texi2html theora x264 xvid yasm pkg-config
brew install automake
# Disable spotlight.
sudo mdutil -a -i off
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
xcodebuild -version > CACHE_KEY.txt
echo $MIN_MAC >> CACHE_KEY.txt
echo $PREFIX >> CACHE_KEY.txt
echo $MANUAL_CACHING >> CACHE_KEY.txt
echo "$GITHUB_WORKSPACE" >> CACHE_KEY.txt
if [ "$AUTO_CACHING" == "1" ]; then
thisFile=$REPO_NAME/.github/workflows/mac.yml
echo `md5 -q $thisFile` >> CACHE_KEY.txt
fi
echo "CACHE_KEY=`md5 -q CACHE_KEY.txt`" >> $GITHUB_ENV
echo "$PWD/Libraries/depot_tools" >> $GITHUB_PATH
mkdir -p Libraries/macos
cd Libraries/macos
echo "LibrariesPath=`pwd`" >> $GITHUB_ENV
curl -o tg_owt-version.json https://api.github.com/repos/desktop-app/tg_owt/git/refs/heads/master
- name: Patches.
run: |
echo "Find necessary commit from doc."
checkoutCommit=$(grep -A 1 "cd patches" $REPO_NAME/$DOC_PATH | sed -n 2p)
cd $LibrariesPath
git clone $GIT/desktop-app/patches.git
cd Patches
eval $checkoutCommit
- name: XZ.
run: |
cd $LibrariesPath
wget https://tukaani.org/xz/$XZ.tar.gz
tar -xvzf $XZ.tar.gz
cd $XZ
CFLAGS="$MIN_MAC" LDFLAGS="$MIN_MAC" ./configure --prefix=$PREFIX
make -j$(nproc)
sudo make install
- name: Zlib.
run: |
cd $LibrariesPath
git clone $GIT/desktop-app/zlib.git
cd zlib
CFLAGS="$MIN_MAC $UNGUARDED" LDFLAGS="$MIN_MAC" ./configure --prefix=$PREFIX
make -j$(nproc)
sudo make install
- name: MozJPEG.
run: |
cd $LibrariesPath
git clone -b v4.0.1-rc2 $GIT/mozilla/mozjpeg.git
cd mozjpeg
cmake -B build . \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=$PREFIX \
-DWITH_JPEG8=ON \
-DPNG_SUPPORTED=OFF
cmake --build build -j$(nproc)
sudo cmake --install build
- name: OpenSSL cache.
id: cache-openssl
uses: actions/cache@v2
- name: ThirdParty cache.
id: cache-third-party
uses: actions/cache@v3.0.11
with:
path: ${{ env.LibrariesPath }}/openssl_${{ env.OPENSSL_VER }}
key: ${{ runner.OS }}-${{ env.OPENSSL_VER }}-${{ env.CACHE_KEY }}
- name: OpenSSL.
if: steps.cache-openssl.outputs.cache-hit != 'true'
run: |
cd $LibrariesPath
path: ThirdParty
key: ${{ runner.OS }}-third-party-${{ hashFiles(format('{0}/{1}', env.REPO_NAME, env.PREPARE_PATH)) }}
restore-keys: ${{ runner.OS }}-third-party-
git clone $GIT/openssl/openssl openssl
cd openssl
git checkout OpenSSL_"$OPENSSL_VER"-stable
./Configure \
--prefix=$PREFIX \
no-tests \
darwin64-x86_64-cc \
-static \
$MIN_MAC
make build_libs -j$(nproc)
SSL_DIR=$LibrariesPath/openssl_$OPENSSL_VER
mkdir -p $SSL_DIR/include
copyLib() {
cp $1.a $SSL_DIR/$1.a
}
copyLib libssl
copyLib libcrypto
sudo cp -R include/. $SSL_DIR/include/
- name: Opus cache.
id: cache-opus
uses: actions/cache@v2
- name: Libraries cache.
id: cache-libs
uses: actions/cache@v3.0.11
with:
path: ${{ env.LibrariesPath }}/opus-cache
key: ${{ runner.OS }}-opus-${{ env.CACHE_KEY }}
- name: Opus.
if: steps.cache-opus.outputs.cache-hit != 'true'
path: Libraries
key: ${{ runner.OS }}-libs-${{ hashFiles(format('{0}/{1}', env.REPO_NAME, env.PREPARE_PATH)) }}
restore-keys: ${{ runner.OS }}-libs-
- name: Libraries.
run: |
cd $LibrariesPath
./$REPO_NAME/Telegram/build/prepare/mac.sh skip-release silent
git clone $GIT/xiph/opus
cd opus
git checkout v1.3
./autogen.sh
CFLAGS="$MIN_MAC $UNGUARDED" CPPFLAGS="$MIN_MAC $UNGUARDED" LDFLAGS="$MIN_MAC" ./configure --prefix=$PREFIX
make -j$(nproc)
sudo make DESTDIR="$LibrariesPath/opus-cache" install
- name: Opus install.
run: |
cd $LibrariesPath
sudo cp -R opus-cache/. /
- name: Rnnoise.
run: |
cd $LibrariesPath
git clone $GIT/desktop-app/rnnoise.git
mkdir -p rnnoise/out/Debug
cd rnnoise/out/Debug
cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug ../..
ninja
- name: Libiconv cache.
id: cache-libiconv
uses: actions/cache@v2
with:
path: ${{ env.LibrariesPath }}/libiconv-cache
key: ${{ runner.OS }}-${{ env.LIBICONV_VER }}-${{ env.CACHE_KEY }}
- name: Libiconv.
if: steps.cache-libiconv.outputs.cache-hit != 'true'
run: |
cd $LibrariesPath
wget https://ftp.gnu.org/pub/gnu/libiconv/"$LIBICONV_VER".tar.gz
tar -xvzf "$LIBICONV_VER".tar.gz
cd $LIBICONV_VER
CFLAGS="$MIN_MAC $UNGUARDED" CPPFLAGS="$MIN_MAC $UNGUARDED" LDFLAGS="$MIN_MAC" ./configure --enable-static --prefix=$PREFIX
make -j$(nproc)
sudo make DESTDIR="$LibrariesPath/libiconv-cache" install
- name: Libiconv install.
run: |
cd $LibrariesPath
sudo cp -R libiconv-cache/. /
- name: FFmpeg cache.
id: cache-ffmpeg
uses: actions/cache@v2
with:
path: ${{ env.LibrariesPath }}/ffmpeg-cache
key: ${{ runner.OS }}-ffmpeg-${{ env.CACHE_KEY }}
- name: FFmpeg.
if: steps.cache-ffmpeg.outputs.cache-hit != 'true'
run: |
cd $LibrariesPath
git clone $GIT/FFmpeg/FFmpeg.git ffmpeg
cd ffmpeg
git checkout release/4.4
CFLAGS=`freetype-config --cflags`
LDFLAGS=`freetype-config --libs`
PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig:/usr/lib/pkgconfig:/usr/X11/lib/pkgconfig
./configure --prefix=$LibrariesPath/ffmpeg-cache \
--extra-cflags="$MIN_MAC $UNGUARDED" \
--extra-cxxflags="$MIN_MAC $UNGUARDED" \
--extra-ldflags="$MIN_MAC" \
--x86asmexe=`pwd`/macos_yasm_wrap.sh \
--enable-protocol=file \
--enable-libopus \
--disable-programs \
--disable-doc \
--disable-network \
--disable-everything \
--enable-hwaccel=h264_videotoolbox \
--enable-hwaccel=hevc_videotoolbox \
--enable-hwaccel=mpeg1_videotoolbox \
--enable-hwaccel=mpeg2_videotoolbox \
--enable-hwaccel=mpeg4_videotoolbox \
--enable-decoder=aac \
--enable-decoder=aac_at \
--enable-decoder=aac_fixed \
--enable-decoder=aac_latm \
--enable-decoder=aasc \
--enable-decoder=alac \
--enable-decoder=alac_at \
--enable-decoder=flac \
--enable-decoder=gif \
--enable-decoder=h264 \
--enable-decoder=hevc \
--enable-decoder=mp1 \
--enable-decoder=mp1float \
--enable-decoder=mp2 \
--enable-decoder=mp2float \
--enable-decoder=mp3 \
--enable-decoder=mp3adu \
--enable-decoder=mp3adufloat \
--enable-decoder=mp3float \
--enable-decoder=mp3on4 \
--enable-decoder=mp3on4float \
--enable-decoder=mpeg4 \
--enable-decoder=msmpeg4v2 \
--enable-decoder=msmpeg4v3 \
--enable-decoder=opus \
--enable-decoder=pcm_alaw \
--enable-decoder=pcm_alaw_at \
--enable-decoder=pcm_f32be \
--enable-decoder=pcm_f32le \
--enable-decoder=pcm_f64be \
--enable-decoder=pcm_f64le \
--enable-decoder=pcm_lxf \
--enable-decoder=pcm_mulaw \
--enable-decoder=pcm_mulaw_at \
--enable-decoder=pcm_s16be \
--enable-decoder=pcm_s16be_planar \
--enable-decoder=pcm_s16le \
--enable-decoder=pcm_s16le_planar \
--enable-decoder=pcm_s24be \
--enable-decoder=pcm_s24daud \
--enable-decoder=pcm_s24le \
--enable-decoder=pcm_s24le_planar \
--enable-decoder=pcm_s32be \
--enable-decoder=pcm_s32le \
--enable-decoder=pcm_s32le_planar \
--enable-decoder=pcm_s64be \
--enable-decoder=pcm_s64le \
--enable-decoder=pcm_s8 \
--enable-decoder=pcm_s8_planar \
--enable-decoder=pcm_u16be \
--enable-decoder=pcm_u16le \
--enable-decoder=pcm_u24be \
--enable-decoder=pcm_u24le \
--enable-decoder=pcm_u32be \
--enable-decoder=pcm_u32le \
--enable-decoder=pcm_u8 \
--enable-decoder=vorbis \
--enable-decoder=wavpack \
--enable-decoder=wmalossless \
--enable-decoder=wmapro \
--enable-decoder=wmav1 \
--enable-decoder=wmav2 \
--enable-decoder=wmavoice \
--enable-encoder=libopus \
--enable-parser=aac \
--enable-parser=aac_latm \
--enable-parser=flac \
--enable-parser=h264 \
--enable-parser=hevc \
--enable-parser=mpeg4video \
--enable-parser=mpegaudio \
--enable-parser=opus \
--enable-parser=vorbis \
--enable-demuxer=aac \
--enable-demuxer=flac \
--enable-demuxer=gif \
--enable-demuxer=h264 \
--enable-demuxer=hevc \
--enable-demuxer=m4v \
--enable-demuxer=mov \
--enable-demuxer=mp3 \
--enable-demuxer=ogg \
--enable-demuxer=wav \
--enable-muxer=ogg \
--enable-muxer=opus
make -j$(nproc)
sudo make install
- name: FFmpeg install.
run: |
cd $LibrariesPath
# List of files from cmake/external/ffmpeg/CMakeLists.txt.
copyLib() {
mkdir -p ffmpeg/$1
\cp -fR ffmpeg-cache/lib/$1.a ffmpeg/$1/$1.a
}
copyLib libavformat
copyLib libavcodec
copyLib libswresample
copyLib libswscale
copyLib libavutil
sudo cp -R ffmpeg-cache/. $PREFIX
sudo cp -R ffmpeg-cache/include/. ffmpeg/
- name: OpenAL Soft.
run: |
cd $LibrariesPath
git clone --branch capture_with_webrtc $GIT/telegramdesktop/openal-soft.git
cd openal-soft/build
CFLAGS="$UNGUARDED" CPPFLAGS="$UNGUARDED" cmake \
-D CMAKE_INSTALL_PREFIX:PATH=$PREFIX \
-D ALSOFT_EXAMPLES=OFF \
-D LIBTYPE:STRING=STATIC \
-D CMAKE_OSX_DEPLOYMENT_TARGET:STRING=$MACOSX_DEPLOYMENT_TARGET ..
make -j$(nproc)
sudo make install
- name: Crashpad cache.
id: cache-crashpad
uses: actions/cache@v2
with:
path: ${{ env.LibrariesPath }}/crashpad
key: ${{ runner.OS }}-crashpad-${{ env.CACHE_KEY }}-${{ hashFiles('**/crashpad.diff') }}-${{ hashFiles('**/mini_chromium.diff') }}
- name: Crashpad.
if: steps.cache-crashpad.outputs.cache-hit != 'true'
- name: Free up some disk space.
run: |
cd Libraries
echo Install GYP for Crashpad.
git clone https://chromium.googlesource.com/external/gyp
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
cd gyp
git checkout 9f2a7bb1
git apply $LibrariesPath/patches/gyp.diff
./setup.py build
sudo ./setup.py install
cd $LibrariesPath
git clone https://chromium.googlesource.com/crashpad/crashpad.git
cd crashpad
git checkout feb3aa3923
git apply ../patches/crashpad.diff
cd third_party/mini_chromium
git clone https://chromium.googlesource.com/chromium/mini_chromium
cd mini_chromium
git checkout 7c5b0c1ab4
git apply ../../../../patches/mini_chromium.diff
cd ../../gtest
git clone https://chromium.googlesource.com/external/github.com/google/googletest gtest
cd gtest
git checkout d62d6c6556
cd ../../..
build/gyp_crashpad.py -Dmac_deployment_target=10.10
ninja -C out/Debug
- name: Qt 5.15.2 cache.
id: cache-qt
uses: actions/cache@v2
with:
path: ${{ env.LibrariesPath }}/qt-cache
key: ${{ runner.OS }}-qt-${{ env.CACHE_KEY }}-${{ hashFiles('**/qtbase_5_15_2/*') }}
- name: Use cached Qt 5.15.2.
if: steps.cache-qt.outputs.cache-hit == 'true'
run: |
cd $LibrariesPath
mv qt-cache Qt-5.15.2
sudo mkdir -p $QT_PREFIX
sudo mv -f Qt-5.15.2 "$(dirname "$QT_PREFIX")"/
- name: Qt 5.15.2 build.
if: steps.cache-qt.outputs.cache-hit != 'true'
run: |
cd $LibrariesPath
git clone git://code.qt.io/qt/qt5.git qt_$QT
cd qt_$QT
perl init-repository --module-subset=qtbase,qtimageformats
git checkout v5.15.2
git submodule update qtbase
git submodule update qtimageformats
cd qtbase
find ../../patches/qtbase_$QT -type f -print0 | sort -z | xargs -0 git apply
cd ..
./configure \
-prefix "$QT_PREFIX" \
-debug \
-force-debug-info \
-opensource \
-confirm-license \
-static \
-opengl desktop \
-no-openssl \
-securetransport \
-nomake examples \
-nomake tests \
-platform macx-clang \
-I "$PREFIX/include" \
LIBJPEG_LIBS="$PREFIX/lib/libjpeg.a" \
ZLIB_LIBS="$PREFIX/lib/libz.a"
make -j$(nproc)
sudo make install
make clean
cp -r $QT_PREFIX $LibrariesPath/qt-cache
- name: WebRTC cache.
id: cache-webrtc
uses: actions/cache@v2
with:
path: ${{ env.LibrariesPath }}/tg_owt
key: ${{ runner.OS }}-webrtc-${{ env.CACHE_KEY }}-${{ hashFiles('**/tg_owt-version.json') }}
- name: WebRTC.
if: steps.cache-webrtc.outputs.cache-hit != 'true'
run: |
cd $LibrariesPath
git clone --recursive $GIT/desktop-app/tg_owt.git
mkdir -p tg_owt/out/Debug
cd tg_owt/out/Debug
cmake -G Ninja \
-DCMAKE_BUILD_TYPE=Debug \
-DTG_OWT_SPECIAL_TARGET=mac \
-DTG_OWT_BUILD_AUDIO_BACKENDS=OFF \
-DTG_OWT_LIBJPEG_INCLUDE_PATH=$PREFIX/include \
-DTG_OWT_OPENSSL_INCLUDE_PATH=`pwd`/../../../openssl_$OPENSSL_VER/include \
-DTG_OWT_OPUS_INCLUDE_PATH=$PREFIX/include/opus \
-DTG_OWT_FFMPEG_INCLUDE_PATH=$PREFIX/include \
../..
ninja
# Cleanup.
cd $LibrariesPath/tg_owt
mv out/Debug/libtg_owt.a libtg_owt.a
rm -rf out
mkdir -p out/Debug
mv libtg_owt.a out/Debug/libtg_owt.a
find . -iname "*.dir" -exec rm -rf {} || true \;
- name: Telegram Desktop build.
if: env.ONLY_CACHE == 'false'
@@ -532,7 +114,6 @@ jobs:
-D CMAKE_C_FLAGS="-Werror" \
-D CMAKE_CXX_FLAGS="-Werror" \
-D TDESKTOP_API_TEST=ON \
-D DESKTOP_APP_USE_PACKAGED=OFF \
-D DESKTOP_APP_DISABLE_CRASH_REPORTS=OFF \
$DEFINE

View File

@@ -11,7 +11,7 @@ jobs:
SKIP: "0"
to_branch: "master"
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3.1.0
if: env.SKIP == '0'
- name: Push the code to the master branch.
if: env.SKIP == '0'

19
.github/workflows/no-response.yml vendored Normal file
View File

@@ -0,0 +1,19 @@
name: No Response
# Both `issue_comment` and `scheduled` event types are required for this Action
# to work properly.
on:
issue_comment:
types: [created]
schedule:
- cron: '0 0 * * *'
jobs:
noResponse:
runs-on: ubuntu-latest
steps:
- uses: lee-dohm/no-response@v0.5.0
with:
token: ${{ github.token }}
# Label requiring a response
responseRequiredLabel: waiting for answer

View File

@@ -11,7 +11,6 @@ on:
- '.github/**'
- '!.github/workflows/snap.yml'
- 'Telegram/build/**'
- 'Telegram/Patches/**'
- 'Telegram/Resources/uwp/**'
- 'Telegram/Resources/winrc/**'
- 'Telegram/SourceFiles/platform/win/**'
@@ -29,7 +28,6 @@ on:
- '.github/**'
- '!.github/workflows/snap.yml'
- 'Telegram/build/**'
- 'Telegram/Patches/**'
- 'Telegram/Resources/uwp/**'
- 'Telegram/Resources/winrc/**'
- 'Telegram/SourceFiles/platform/win/**'
@@ -40,7 +38,7 @@ on:
jobs:
linux:
snap:
name: Ubuntu
runs-on: ubuntu-latest
@@ -49,29 +47,20 @@ jobs:
steps:
- name: Clone.
uses: actions/checkout@v2
uses: actions/checkout@v3.1.0
with:
fetch-depth: 0
submodules: recursive
- name: First set up.
run: |
sudo apt-get purge --autoremove lxd
sudo snap install --classic snapcraft
sudo snap install lxd
# Workaround for snapcraft
# See https://forum.snapcraft.io/t/13258
sudo chown root:root /
sudo usermod -aG lxd $USER
sudo snap run lxd init --auto
sudo snap run lxd waitready
- name: Telegram Desktop snap build.
run: sg lxd -c 'snap run snapcraft --use-lxd'
run: sg lxd -c 'snap run snapcraft -v'
- name: Move artifact.
if: env.UPLOAD_ARTIFACT == 'true'

25
.github/workflows/stale.yml vendored Normal file
View File

@@ -0,0 +1,25 @@
name: 'Close stale issues and PRs'
on:
schedule:
- cron: '30 1 * * *'
jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v5
with:
stale-issue-message: |
Hey there!
This issue was inactive for a long time and will be automatically closed in 30 days if there isn't any further activity. We therefore assume that the user has lost interest or resolved the problem on their own.
Don't worry though; if this is an error, let us know with a comment and we'll be happy to reopen the issue.
Thanks!
stale-issue-label: 'stale'
exempt-issue-labels: 'enhancement'
days-before-stale: 180
days-before-close: 30
days-before-pr-stale: -1
operations-per-run: 1000

View File

@@ -5,7 +5,6 @@ on:
paths-ignore:
- 'docs/**'
- '**.md'
- '!docs/building-msvc.md'
- 'changelog.txt'
- 'LEGAL'
- 'LICENSE'
@@ -13,9 +12,7 @@ on:
- '!.github/workflows/win.yml'
- 'lib/xdg/**'
- 'snap/**'
- 'Telegram/build/**'
- 'Telegram/Patches/**'
- '!Telegram/Patches/build_ffmpeg_win.sh'
- 'Telegram/build/docker/**'
- 'Telegram/Resources/uwp/**'
- 'Telegram/SourceFiles/platform/linux/**'
- 'Telegram/SourceFiles/platform/mac/**'
@@ -26,7 +23,6 @@ on:
paths-ignore:
- 'docs/**'
- '**.md'
- '!docs/building-msvc.md'
- 'changelog.txt'
- 'LEGAL'
- 'LICENSE'
@@ -34,13 +30,10 @@ on:
- '!.github/workflows/win.yml'
- 'lib/xdg/**'
- 'snap/**'
- 'Telegram/build/**'
- 'Telegram/Patches/**'
- '!Telegram/Patches/build_ffmpeg_win.sh'
- 'Telegram/build/docker/**'
- 'Telegram/Resources/uwp/**'
- 'Telegram/SourceFiles/platform/linux/**'
- 'Telegram/SourceFiles/platform/mac/**'
- '!Telegram/Patches/breakpad.diff'
- 'Telegram/Telegram/**'
- 'Telegram/configure.sh'
- 'Telegram/Telegram.plist'
@@ -49,360 +42,76 @@ jobs:
windows:
name: Windows
runs-on: windows-latest
runs-on: windows-2022
strategy:
matrix:
defines:
- ""
arch: [Win32, x64]
env:
SDK: "10.0.18362.0"
VC: "call vcvars32.bat && cd Libraries"
GIT: "https://github.com"
QT: "5_15_2"
QT_VER: "5.15.2"
OPENSSL_VER: "1_1_1"
UPLOAD_ARTIFACT: "false"
ONLY_CACHE: "false"
MANUAL_CACHING: "2"
DOC_PATH: "docs/building-msvc.md"
AUTO_CACHING: "1"
PREPARE_PATH: "Telegram/build/prepare/prepare.py"
defaults:
run:
shell: cmd
steps:
- name: Prepare directories.
run: |
mkdir %userprofile%\TBuild
mklink /d %GITHUB_WORKSPACE%\TBuild %userprofile%\TBuild
echo TBUILD=%GITHUB_WORKSPACE%\TBuild>>%GITHUB_ENV%
mkdir %userprofile%\TBuild Libraries
mklink /d %userprofile%\TBuild\Libraries %GITHUB_WORKSPACE%\Libraries
- name: Get repository name.
shell: bash
run: echo "REPO_NAME=${GITHUB_REPOSITORY##*/}" >> $GITHUB_ENV
- uses: ilammy/msvc-dev-cmd@v1.12.0
name: Native Tools Command Prompt.
with:
arch: ${{ matrix.arch }}
- name: Clone.
uses: actions/checkout@v3.1.0
with:
submodules: recursive
path: ${{ env.TBUILD }}\${{ env.REPO_NAME }}
- name: Python installs.
run: pip3 install --upgrade pywin32 six
- name: Set up environment paths.
shell: bash
run: |
echo "C:\\Strawberry\\perl\\bin\\" >> $GITHUB_PATH
echo "C:\\Program Files\\NASM\\" >> $GITHUB_PATH
echo "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Enterprise\\VC\\Auxiliary\\Build\\" >> $GITHUB_PATH
echo "CACHE_KEY=$(sha256sum $TBUILD/$REPO_NAME/$PREPARE_PATH | awk '{ print $1 }')" >> $GITHUB_ENV
mkdir Libraries && cd Libraries
echo "Convert unix path to win path."
p=`pwd | sed 's#^/[d]#d:#g' |sed 's#/#\\\\#g'`
echo "LibrariesPath=$p" >> $GITHUB_ENV
- name: Save msbuild version.
run: |
call vcvars32.bat
msbuild -version > CACHE_KEY.txt
- name: Clone.
uses: actions/checkout@v2
with:
submodules: recursive
path: ${{ env.REPO_NAME }}
- name: Generate cache key.
shell: bash
run: |
curl -o $LibrariesPath/tg_owt-version.json https://api.github.com/repos/desktop-app/tg_owt/git/refs/heads/master
echo $MANUAL_CACHING >> CACHE_KEY.txt
if [ "$AUTO_CACHING" == "1" ]; then
thisFile=$REPO_NAME/.github/workflows/win.yml
echo `md5sum $thisFile | awk '{ print $1 }'` >> CACHE_KEY.txt
fi
echo "CACHE_KEY=`md5sum CACHE_KEY.txt | awk '{ print $1 }'`" >> $GITHUB_ENV
- name: Choco installs.
run: choco install --no-progress -y nasm yasm jom ninja
echo "Configurate git for cherry-picks."
git config --global user.email "you@example.com"
git config --global user.name "Sample"
- name: NuGet sources.
run: |
nuget sources Disable -Name "Microsoft Visual Studio Offline Packages"
nuget sources Add -Source https://api.nuget.org/v3/index.json & exit 0
- name: Patches.
shell: bash
run: |
echo "Find necessary commit from doc."
checkoutCommit=$(grep -A 1 "cd patches" $REPO_NAME/$DOC_PATH | sed -n 2p)
cd $LibrariesPath
git clone $GIT/desktop-app/patches.git
cd Patches
eval $checkoutCommit
- name: Find any version of Python 2.
shell: bash
run: |
echo "Find any version of Python 2."
p=`ls /c/hostedtoolcache/windows/python | grep "^2" | tail -1`
if [ -z "$p" ]; then
echo "Python 2 is not found."
exit 1
fi
echo "PY2=C:\\hostedtoolcache\\windows\\Python\\$p\\x64" >> $GITHUB_ENV
echo "Found $p."
- name: LZMA.
run: |
%VC%
git clone %GIT%/telegramdesktop/lzma.git
cd lzma
cd C\Util\LzmaLib
msbuild -m LzmaLib.sln /property:Configuration=Debug
- name: OpenSSL cache.
id: cache-openssl
uses: actions/cache@v2
- name: Libraries cache.
id: cache-libs
uses: actions/cache@v3.0.11
with:
path: ${{ env.LibrariesPath }}/openssl_${{ env.OPENSSL_VER }}
key: ${{ runner.OS }}-${{ env.CACHE_KEY }}-${{ env.OPENSSL_VER }}
- name: OpenSSL.
if: steps.cache-openssl.outputs.cache-hit != 'true'
run: |
%VC%
path: Libraries
key: ${{ runner.OS }}-${{ matrix.arch }}-libs-${{ env.CACHE_KEY }}
restore-keys: ${{ runner.OS }}-${{ matrix.arch }}-libs-
git clone %GIT%/openssl/openssl.git openssl_%OPENSSL_VER%
cd openssl_%OPENSSL_VER%
git checkout OpenSSL_%OPENSSL_VER%-stable
perl Configure no-shared no-tests debug-VC-WIN32
nmake
mkdir out32.dbg
move libcrypto.lib out32.dbg
move libssl.lib out32.dbg
move ossl_static.pdb out32.dbg\ossl_static
nmake clean
move out32.dbg\ossl_static out32.dbg\ossl_static.pdb
perl Configure no-shared no-tests VC-WIN32
nmake
mkdir out32
move libcrypto.lib out32
move libssl.lib out32
move ossl_static.pdb out32
rmdir /S /Q test
rmdir /S /Q .git
- name: Zlib.
run: |
%VC%
git clone %GIT%/telegramdesktop/zlib.git
cd zlib
git checkout tdesktop
cd contrib\vstudio\vc14
msbuild -m zlibstat.vcxproj /property:Configuration=Debug
- name: MozJPEG.
shell: cmd
run: |
%VC%
git clone -b v4.0.1-rc2 %GIT%/mozilla/mozjpeg.git
cd mozjpeg
cmake . ^
-G "Visual Studio 16 2019" ^
-A Win32 ^
-DWITH_JPEG8=ON ^
-DPNG_SUPPORTED=OFF
cmake --build . --config Debug
- name: OpenAL Soft cache.
id: cache-openal
uses: actions/cache@v2
with:
path: ${{ env.LibrariesPath }}/openal-soft
key: ${{ runner.OS }}-openal-soft-${{ env.CACHE_KEY }}
- name: OpenAL Soft.
if: steps.cache-openal.outputs.cache-hit != 'true'
run: |
%VC%
git clone -b openal-soft-1.21.0 --depth=1 %GIT%/kcat/openal-soft.git
cd openal-soft\build
cmake .. ^
-G "Visual Studio 16 2019" ^
-A Win32 ^
-D LIBTYPE:STRING=STATIC ^
-D FORCE_STATIC_VCRT=ON ^
-D ALSOFT_BACKEND_DSOUND=OFF
msbuild -m OpenAL.vcxproj /property:Configuration=Debug
- name: Breakpad cache.
id: cache-breakpad
uses: actions/cache@v2
with:
path: ${{ env.LibrariesPath }}/breakpad
key: ${{ runner.OS }}-breakpad-${{ env.CACHE_KEY }}-${{ hashFiles('**/breakpad.diff') }}
- name: Breakpad.
- name: Libraries.
env:
GYP_MSVS_OVERRIDE_PATH: 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\'
GYP_MSVS_VERSION: 2019
if: steps.cache-breakpad.outputs.cache-hit != 'true'
run: |
cd %LibrariesPath%
git clone %GIT%/telegramdesktop/gyp.git
cd gyp
SET PATH=%PY2%;%cd%;%PATH%
git checkout tdesktop
cd %LibrariesPath%
git clone %GIT%/google/breakpad
cd breakpad
git checkout a1dbcdcb43
git apply ../patches/breakpad.diff
cd src
git clone %GIT%/google/googletest testing
cd client\windows
call gyp --no-circular-check breakpad_client.gyp --format=ninja
cd ..\..
ninja -C out/Debug common crash_generation_client exception_handler
ninja -C out/Release common crash_generation_client exception_handler
cd tools\windows\dump_syms
call gyp dump_syms.gyp
call vcvars32.bat
msbuild -m dump_syms.vcxproj /property:Configuration=Release
- name: Opus cache.
id: cache-opus
uses: actions/cache@v2
with:
path: ${{ env.LibrariesPath }}/opus
key: ${{ runner.OS }}-opus-${{ env.CACHE_KEY }}
- name: Opus.
if: steps.cache-opus.outputs.cache-hit != 'true'
run: |
%VC%
git clone %GIT%/telegramdesktop/opus.git
cd opus
git checkout tdesktop
cd win32\VS2015
msbuild -m opus.sln /property:Configuration=Debug /property:Platform="Win32"
msbuild -m opus.sln /property:Configuration=Release /property:Platform="Win32"
- name: Rnnoise.
shell: cmd
run: |
%VC%
git clone %GIT%/desktop-app/rnnoise.git
mkdir rnnoise\out
cd rnnoise\out
cmake -A Win32 ..
cmake --build . --config Debug
- name: FFmpeg cache.
id: cache-ffmpeg
uses: actions/cache@v2
with:
path: ${{ env.LibrariesPath }}/ffmpeg
key: ${{ runner.OS }}-ffmpeg-${{ env.CACHE_KEY }}-2-${{ hashFiles('**/build_ffmpeg_win.sh') }}
- name: FFmpeg.
if: steps.cache-ffmpeg.outputs.cache-hit != 'true'
run: |
%VC%
choco install --no-progress -y msys2
git clone %GIT%/FFmpeg/FFmpeg.git ffmpeg
cd ffmpeg
git checkout release/4.4
set CHERE_INVOKING=enabled_from_arguments
set MSYS2_PATH_TYPE=inherit
call c:\tools\msys64\usr\bin\bash --login ../patches/build_ffmpeg_win.sh
rmdir /S /Q .git
- name: Qt 5.15.2 cache.
id: cache-qt
uses: actions/cache@v2
with:
path: ${{ env.LibrariesPath }}/Qt-${{ env.QT_VER }}
key: ${{ runner.OS }}-qt-${{ env.CACHE_KEY }}-${{ hashFiles('**/qtbase_5_15_2/*') }}
- name: Configure Qt 5.15.2.
if: steps.cache-qt.outputs.cache-hit != 'true'
run: |
%VC%
git clone git://code.qt.io/qt/qt5.git qt_%QT%
cd qt_%QT%
perl init-repository --module-subset=qtbase,qtimageformats
git checkout v%QT_VER%
git submodule update qtbase
git submodule update qtimageformats
cd qtbase
for /r %%i in (..\..\patches\qtbase_%QT%\*) do git apply %%i
cd ..
SET SSL=%LibrariesPath%\openssl_%OPENSSL_VER%
SET LIBS=libcrypto.lib Ws2_32.lib Gdi32.lib Advapi32.lib Crypt32.lib User32.lib
configure ^
-prefix "%LibrariesPath%\Qt-%QT_VER%" ^
-debug ^
-force-debug-info ^
-opensource ^
-confirm-license ^
-static ^
-static-runtime -I "%SSL%\include" ^
-opengl dynamic ^
-openssl-linked ^
OPENSSL_LIBS_DEBUG="%SSL%\out32.dbg\libssl.lib %SSL%\out32.dbg\%LIBS%" ^
OPENSSL_LIBS_RELEASE="%SSL%\out32\libssl.lib %SSL%\out32\%LIBS%" ^
-mp ^
-nomake examples ^
-nomake tests ^
-platform win32-msvc ^
-I "%LibrariesPath%\mozjpeg" ^
LIBJPEG_LIBS_DEBUG="%LibrariesPath%\mozjpeg\Debug\jpeg-static.lib" ^
LIBJPEG_LIBS_RELEASE="%LibrariesPath%\mozjpeg\Release\jpeg-static.lib"
- name: Qt 5.15.2 build.
if: steps.cache-qt.outputs.cache-hit != 'true'
run: |
%VC%
cd qt_%QT%
jom -j%NUMBER_OF_PROCESSORS%
jom -j%NUMBER_OF_PROCESSORS% install
cd ..
rmdir /S /Q qt_%QT%
- name: WebRTC cache.
id: cache-webrtc
uses: actions/cache@v2
with:
path: ${{ env.LibrariesPath }}/tg_owt
key: ${{ runner.OS }}-webrtc-${{ env.CACHE_KEY }}-${{ hashFiles('**/tg_owt-version.json') }}
- name: WebRTC.
if: steps.cache-webrtc.outputs.cache-hit != 'true'
run: |
%VC%
git clone --recursive %GIT%/desktop-app/tg_owt.git
mkdir tg_owt\out\Debug
cd tg_owt\out\Debug
cmake -G Ninja ^
-DCMAKE_BUILD_TYPE=Debug ^
-DTG_OWT_SPECIAL_TARGET=win ^
-DTG_OWT_BUILD_AUDIO_BACKENDS=OFF ^
-DTG_OWT_LIBJPEG_INCLUDE_PATH=%cd%/../../../mozjpeg ^
-DTG_OWT_OPENSSL_INCLUDE_PATH=%cd%/../../../openssl_%OPENSSL_VER%/include ^
-DTG_OWT_OPUS_INCLUDE_PATH=%cd%/../../../opus/include ^
-DTG_OWT_FFMPEG_INCLUDE_PATH=%cd%/../../../ffmpeg ^
../..
ninja
:: Cleanup.
cd %LibrariesPath%\tg_owt
move out\Debug\tg_owt.lib tg_owt.lib
rmdir /S /Q out
mkdir out\Debug
move tg_owt.lib out\Debug\tg_owt.lib
GYP_MSVS_OVERRIDE_PATH: 'C:\Program Files\Microsoft Visual Studio\2022\Enterprise\'
GYP_MSVS_VERSION: 2022
run: '%TBUILD%\%REPO_NAME%\Telegram\build\prepare\win.bat skip-release silent'
- name: Read defines.
shell: bash
@@ -411,41 +120,42 @@ jobs:
if [ -n "${{ matrix.defines }}" ]; then
DEFINE="-D ${{ matrix.defines }}=ON"
echo Define from matrix: $DEFINE
echo "ARTIFACT_NAME=Telegram_${{ matrix.defines }}" >> $GITHUB_ENV
echo "ARTIFACT_NAME=Telegram_${{ matrix.arch }}_${{ matrix.defines }}" >> $GITHUB_ENV
else
echo "ARTIFACT_NAME=Telegram" >> $GITHUB_ENV
echo "ARTIFACT_NAME=Telegram_${{ matrix.arch }}" >> $GITHUB_ENV
fi
echo "TDESKTOP_BUILD_DEFINE=$DEFINE" >> $GITHUB_ENV
- name: Free up some disk space.
run: del /S *.pdb
run: |
del /S Libraries\*.pdb
del /S Libraries\*.pch
del /S Libraries\*.obj
- name: Telegram Desktop build.
if: env.ONLY_CACHE == 'false'
run: |
cd %REPO_NAME%\Telegram
cd %TBUILD%\%REPO_NAME%\Telegram
call configure.bat ^
${{ matrix.arch }} ^
-D TDESKTOP_API_TEST=ON ^
-D DESKTOP_APP_USE_PACKAGED=OFF ^
-D DESKTOP_APP_DISABLE_CRASH_REPORTS=OFF ^
-D DESKTOP_APP_NO_PDB=ON ^
%TDESKTOP_BUILD_DEFINE% ^
-DCMAKE_SYSTEM_VERSION=%SDK%
call vcvars32.bat
cd ..\out
msbuild -m Telegram.sln /nologo /p:Configuration=Debug,Platform=Win32
msbuild -m Telegram.sln /p:Configuration=Debug,Platform=${{ matrix.arch }},DebugSymbols=false,DebugType=none
- name: Move artifact.
if: env.UPLOAD_ARTIFACT == 'true'
run: |
cd %REPO_NAME%\out\Debug
mkdir artifact
move Telegram.exe artifact/
move %TBUILD%\%REPO_NAME%\out\Debug\Telegram.exe artifact/
- uses: actions/upload-artifact@master
name: Upload artifact.
if: env.UPLOAD_ARTIFACT == 'true'
with:
name: ${{ env.ARTIFACT_NAME }}
path: ${{ env.REPO_NAME }}\out\Debug\artifact\
path: artifact\

18
.github/workflows/winget.yml vendored Normal file
View File

@@ -0,0 +1,18 @@
name: Publish to WinGet
on:
release:
types: [released, prereleased]
jobs:
publish:
runs-on: windows-latest # action can only be run on windows
steps:
- if: github.event.action == 'released'
uses: telegramdesktop/winget-releaser@main
with:
identifier: Telegram.TelegramDesktop
token: ${{ secrets.WINGET_TOKEN }}
- if: github.event.action == 'prereleased'
uses: telegramdesktop/winget-releaser@main
with:
identifier: Telegram.TelegramDesktop.Beta
token: ${{ secrets.WINGET_TOKEN }}

39
.gitmodules vendored
View File

@@ -4,9 +4,6 @@
[submodule "Telegram/ThirdParty/GSL"]
path = Telegram/ThirdParty/GSL
url = https://github.com/Microsoft/GSL.git
[submodule "Telegram/ThirdParty/Catch"]
path = Telegram/ThirdParty/Catch
url = https://github.com/philsquared/Catch
[submodule "Telegram/ThirdParty/xxHash"]
path = Telegram/ThirdParty/xxHash
url = https://github.com/Cyan4973/xxHash.git
@@ -31,9 +28,6 @@
[submodule "Telegram/lib_ui"]
path = Telegram/lib_ui
url = https://github.com/desktop-app/lib_ui.git
[submodule "Telegram/lib_rlottie"]
path = Telegram/lib_rlottie
url = https://github.com/desktop-app/lib_rlottie.git
[submodule "Telegram/lib_lottie"]
path = Telegram/lib_lottie
url = https://github.com/desktop-app/lib_lottie.git
@@ -58,9 +52,6 @@
[submodule "Telegram/lib_qr"]
path = Telegram/lib_qr
url = https://github.com/desktop-app/lib_qr.git
[submodule "Telegram/ThirdParty/libdbusmenu-qt"]
path = Telegram/ThirdParty/libdbusmenu-qt
url = https://github.com/desktop-app/libdbusmenu-qt.git
[submodule "Telegram/ThirdParty/hunspell"]
path = Telegram/ThirdParty/hunspell
url = https://github.com/hunspell/hunspell
@@ -76,9 +67,6 @@
[submodule "Telegram/ThirdParty/hime"]
path = Telegram/ThirdParty/hime
url = https://github.com/hime-ime/hime.git
[submodule "Telegram/ThirdParty/qt5ct"]
path = Telegram/ThirdParty/qt5ct
url = https://github.com/desktop-app/qt5ct.git
[submodule "Telegram/ThirdParty/fcitx5-qt"]
path = Telegram/ThirdParty/fcitx5-qt
url = https://github.com/fcitx/fcitx5-qt.git
@@ -91,9 +79,24 @@
[submodule "Telegram/lib_webview"]
path = Telegram/lib_webview
url = https://github.com/desktop-app/lib_webview.git
[submodule "Telegram/ThirdParty/mallocng"]
path = Telegram/ThirdParty/mallocng
url = https://github.com/desktop-app/mallocng.git
[submodule "Telegram/lib_waylandshells"]
path = Telegram/lib_waylandshells
url = https://github.com/desktop-app/lib_waylandshells.git
[submodule "Telegram/ThirdParty/jemalloc"]
path = Telegram/ThirdParty/jemalloc
url = https://github.com/jemalloc/jemalloc
[submodule "Telegram/ThirdParty/dispatch"]
path = Telegram/ThirdParty/dispatch
url = https://github.com/apple/swift-corelibs-libdispatch
[submodule "Telegram/ThirdParty/plasma-wayland-protocols"]
path = Telegram/ThirdParty/plasma-wayland-protocols
url = https://github.com/KDE/plasma-wayland-protocols.git
[submodule "Telegram/ThirdParty/wayland-protocols"]
path = Telegram/ThirdParty/wayland-protocols
url = https://github.com/gitlab-freedesktop-mirrors/wayland-protocols.git
[submodule "Telegram/ThirdParty/kimageformats"]
path = Telegram/ThirdParty/kimageformats
url = https://github.com/KDE/kimageformats.git
[submodule "Telegram/ThirdParty/kcoreaddons"]
path = Telegram/ThirdParty/kcoreaddons
url = https://github.com/KDE/kcoreaddons.git
[submodule "Telegram/ThirdParty/cld3"]
path = Telegram/ThirdParty/cld3
url = https://github.com/google/cld3.git

View File

@@ -4,7 +4,12 @@
# For license and copyright information please follow this link:
# https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
cmake_minimum_required(VERSION 3.16)
if (APPLE)
# target_precompile_headers with COMPILE_LANGUAGE restriction.
cmake_minimum_required(VERSION 3.23)
else()
cmake_minimum_required(VERSION 3.16)
endif()
cmake_policy(SET CMP0076 NEW)
cmake_policy(SET CMP0091 NEW)
@@ -14,8 +19,13 @@ include(cmake/validate_special_target.cmake)
include(cmake/version.cmake)
desktop_app_parse_version(Telegram/build/version)
set(project_langs C CXX)
if (APPLE)
set(project_langs C CXX OBJC OBJCXX)
endif()
project(Telegram
LANGUAGES C CXX
LANGUAGES ${project_langs}
VERSION ${desktop_app_version_cmake}
DESCRIPTION "Official Telegram Desktop messenger"
HOMEPAGE_URL "https://desktop.telegram.org"
@@ -24,16 +34,31 @@ set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT T
get_filename_component(third_party_loc "Telegram/ThirdParty" REALPATH)
get_filename_component(submodules_loc "Telegram" REALPATH)
get_filename_component(cmake_helpers_loc "cmake" REALPATH)
include(cmake/variables.cmake)
include(cmake/nice_target_sources.cmake)
include(cmake/target_compile_options_if_exists.cmake)
include(cmake/target_link_options_if_exists.cmake)
include(cmake/target_link_static_libraries.cmake)
include(cmake/target_link_frameworks.cmake)
include(cmake/init_target.cmake)
include(cmake/generate_target.cmake)
include(cmake/nuget.cmake)
include(cmake/validate_d3d_compiler.cmake)
include(cmake/target_prepare_qrc.cmake)
include(cmake/options.cmake)
if (NOT DESKTOP_APP_USE_PACKAGED)
if (WIN32)
set(qt_version 5.15.4)
elseif (APPLE)
set(qt_version 6.3.1)
else()
set(qt_version 6.4.1)
endif()
endif()
include(cmake/external/qt/package.cmake)
set(desktop_app_skip_libs

2
LEGAL
View File

@@ -1,7 +1,7 @@
This file is part of Telegram Desktop,
the official desktop application for the Telegram messaging service.
Copyright (c) 2014-2021 The Telegram Desktop Authors.
Copyright (c) 2014-2022 The Telegram Desktop Authors.
Telegram Desktop is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by

View File

@@ -1,6 +1,6 @@
# [Telegram Desktop][telegram_desktop] Official Messenger
This is the complete source code and the build instructions for the alpha version of the official desktop client for the [Telegram][telegram] messenger, based on the [Telegram API][telegram_api] and the [MTProto][telegram_proto] secure protocol.
This is the complete source code and the build instructions for the official [Telegram][telegram] messenger desktop client, based on the [Telegram API][telegram_api] and the [MTProto][telegram_proto] secure protocol.
[![Version](https://badge.fury.io/gh/telegramdesktop%2Ftdesktop.svg)](https://github.com/telegramdesktop/tdesktop/releases)
[![Build Status](https://github.com/telegramdesktop/tdesktop/workflows/Windows./badge.svg)](https://github.com/telegramdesktop/tdesktop/actions)
@@ -37,7 +37,7 @@ Version **1.8.15** was the last that supports older systems
## Third-party
* Qt 5.15.2, 5.6.2 and 5.3.2 slightly patched ([LGPL](http://doc.qt.io/qt-5/lgpl.html))
* Qt 6 ([LGPL](http://doc.qt.io/qt-6/lgpl.html)) and Qt 5.15 ([LGPL](http://doc.qt.io/qt-5/lgpl.html)) slightly patched
* OpenSSL 1.1.1 and 1.0.1 ([OpenSSL License](https://www.openssl.org/source/license.html))
* WebRTC ([New BSD License](https://github.com/desktop-app/tg_owt/blob/master/LICENSE))
* zlib 1.2.11 ([zlib License](http://www.zlib.net/zlib_license.html))
@@ -59,13 +59,13 @@ Version **1.8.15** was the last that supports older systems
* xxHash ([BSD License](https://github.com/Cyan4973/xxHash/blob/dev/LICENSE))
* QR Code generator ([MIT License](https://github.com/nayuki/QR-Code-generator#license))
* CMake ([New BSD License](https://github.com/Kitware/CMake/blob/master/Copyright.txt))
* Hunspell ([GPL](https://github.com/hunspell/hunspell/blob/master/COPYING))
* Hunspell ([LGPL](https://github.com/hunspell/hunspell/blob/master/COPYING.LESSER))
## Build instructions
* Visual Studio 2019 [(32 bits)][msvc32] [(64 bits)][msvc64]
* [Xcode 12][xcode]
* [CMake on GNU/Linux][cmake]
* Windows [(32-bit)][win32] [(64-bit)][win64]
* [macOS][mac]
* [GNU/Linux using Docker][linux]
[//]: # (LINKS)
[telegram]: https://telegram.org
@@ -73,10 +73,9 @@ Version **1.8.15** was the last that supports older systems
[telegram_api]: https://core.telegram.org
[telegram_proto]: https://core.telegram.org/mtproto
[license]: LICENSE
[msvc32]: docs/building-msvc.md
[msvc64]: docs/building-msvc-x64.md
[xcode]: docs/building-xcode.md
[xcode_old]: docs/building-xcode-old.md
[cmake]: docs/building-cmake.md
[win32]: docs/building-win.md
[win64]: docs/building-win-x64.md
[mac]: docs/building-mac.md
[linux]: docs/building-linux.md
[preview_image]: https://github.com/telegramdesktop/tdesktop/blob/dev/docs/assets/preview.png "Preview of Telegram Desktop"
[preview_image_url]: https://raw.githubusercontent.com/telegramdesktop/tdesktop/dev/docs/assets/preview.png

File diff suppressed because it is too large Load Diff

View File

@@ -1,651 +0,0 @@
diff --git a/src/build/common.gypi b/src/build/common.gypi
index 29990c65..53e99d44 100644
--- a/src/build/common.gypi
+++ b/src/build/common.gypi
@@ -330,6 +330,7 @@
'VCCLCompilerTool': {
'WarnAsError': 'true',
'Detect64BitPortabilityProblems': 'false',
+ 'TreatWChar_tAsBuiltInType': 'false',
},
},
}],
diff --git a/src/client/mac/Breakpad.xcodeproj/project.pbxproj b/src/client/mac/Breakpad.xcodeproj/project.pbxproj
index 1a93ce6d..b5986e33 100644
--- a/src/client/mac/Breakpad.xcodeproj/project.pbxproj
+++ b/src/client/mac/Breakpad.xcodeproj/project.pbxproj
@@ -35,6 +35,19 @@
/* End PBXAggregateTarget section */
/* Begin PBXBuildFile section */
+ 0748C0431C63C409004489BF /* MachIPC.mm in Sources */ = {isa = PBXBuildFile; fileRef = F92C53790ECCE635009BE4BA /* MachIPC.mm */; };
+ 0748C0441C63C43C004489BF /* minidump_generator.cc in Sources */ = {isa = PBXBuildFile; fileRef = F92C536F0ECCE3FD009BE4BA /* minidump_generator.cc */; };
+ 0748C0451C63C46C004489BF /* string_utilities.cc in Sources */ = {isa = PBXBuildFile; fileRef = F92C53820ECCE635009BE4BA /* string_utilities.cc */; };
+ 0748C0461C63C484004489BF /* minidump_file_writer.cc in Sources */ = {isa = PBXBuildFile; fileRef = F92C538F0ECCE70A009BE4BA /* minidump_file_writer.cc */; };
+ 0748C0471C63C4A1004489BF /* dynamic_images.cc in Sources */ = {isa = PBXBuildFile; fileRef = F92C536B0ECCE3FD009BE4BA /* dynamic_images.cc */; };
+ 0748C0491C63C4CF004489BF /* macho_id.cc in Sources */ = {isa = PBXBuildFile; fileRef = F92C537A0ECCE635009BE4BA /* macho_id.cc */; };
+ 0748C04A1C63C4D4004489BF /* string_conversion.cc in Sources */ = {isa = PBXBuildFile; fileRef = F92C53850ECCE6AD009BE4BA /* string_conversion.cc */; };
+ 0748C04B1C63C4DB004489BF /* convert_UTF.c in Sources */ = {isa = PBXBuildFile; fileRef = F92C53870ECCE6C0009BE4BA /* convert_UTF.c */; };
+ 0748C04C1C63C4EA004489BF /* macho_utilities.cc in Sources */ = {isa = PBXBuildFile; fileRef = F92C537C0ECCE635009BE4BA /* macho_utilities.cc */; };
+ 0748C04D1C63C50F004489BF /* file_id.cc in Sources */ = {isa = PBXBuildFile; fileRef = F92C53740ECCE635009BE4BA /* file_id.cc */; };
+ 0748C04E1C63C51C004489BF /* md5.cc in Sources */ = {isa = PBXBuildFile; fileRef = 4D72CA0D13DFAD5C006CABE3 /* md5.cc */; };
+ 0748C04F1C63C523004489BF /* macho_walker.cc in Sources */ = {isa = PBXBuildFile; fileRef = F92C537E0ECCE635009BE4BA /* macho_walker.cc */; };
+ 0748C0501C63C52D004489BF /* bootstrap_compat.cc in Sources */ = {isa = PBXBuildFile; fileRef = 4D61A25D14F43CFC002D5862 /* bootstrap_compat.cc */; };
162F64F2161C577500CD68D5 /* arch_utilities.cc in Sources */ = {isa = PBXBuildFile; fileRef = 162F64F0161C577500CD68D5 /* arch_utilities.cc */; };
162F64F3161C577500CD68D5 /* arch_utilities.h in Headers */ = {isa = PBXBuildFile; fileRef = 162F64F1161C577500CD68D5 /* arch_utilities.h */; };
162F64F4161C579B00CD68D5 /* arch_utilities.cc in Sources */ = {isa = PBXBuildFile; fileRef = 162F64F0161C577500CD68D5 /* arch_utilities.cc */; };
@@ -67,6 +80,7 @@
4DBE49A7134A4F280072546A /* CoreServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4DBE4769134A4F080072546A /* CoreServices.framework */; };
4DBE49A8134A4F380072546A /* CoreServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4DBE4769134A4F080072546A /* CoreServices.framework */; };
4DBE49A9134A4F460072546A /* CoreServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4DBE4769134A4F080072546A /* CoreServices.framework */; };
+ 5A8B220921E0C5740045F83C /* breakpad_nlist_64.cc in Sources */ = {isa = PBXBuildFile; fileRef = F92C53690ECCE3FD009BE4BA /* breakpad_nlist_64.cc */; };
8B3101C611F0CD9F00FCF3E4 /* AppKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0867D6A5FE840307C02AAC07 /* AppKit.framework */; };
8B3101C711F0CD9F00FCF3E4 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0867D69BFE84028FC02AAC07 /* Foundation.framework */; };
8B3101CA11F0CDB000FCF3E4 /* AppKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0867D6A5FE840307C02AAC07 /* AppKit.framework */; };
@@ -170,11 +184,8 @@
F92C564A0ECD10CA009BE4BA /* string_conversion.cc in Sources */ = {isa = PBXBuildFile; fileRef = F92C53850ECCE6AD009BE4BA /* string_conversion.cc */; };
F92C564C0ECD10DD009BE4BA /* breakpadUtilities.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = F92C563C0ECD10B3009BE4BA /* breakpadUtilities.dylib */; };
F92C56570ECD113E009BE4BA /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F92C554A0ECCF530009BE4BA /* Carbon.framework */; };
- F92C565C0ECD1158009BE4BA /* breakpadUtilities.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = F92C563C0ECD10B3009BE4BA /* breakpadUtilities.dylib */; };
F92C565F0ECD116B009BE4BA /* protected_memory_allocator.cc in Sources */ = {isa = PBXBuildFile; fileRef = F92C53720ECCE3FD009BE4BA /* protected_memory_allocator.cc */; };
F92C56630ECD1179009BE4BA /* exception_handler.cc in Sources */ = {isa = PBXBuildFile; fileRef = F92C536D0ECCE3FD009BE4BA /* exception_handler.cc */; };
- F92C56650ECD1185009BE4BA /* breakpadUtilities.dylib in Resources */ = {isa = PBXBuildFile; fileRef = F92C563C0ECD10B3009BE4BA /* breakpadUtilities.dylib */; };
- F92C568A0ECD15F9009BE4BA /* Inspector in Resources */ = {isa = PBXBuildFile; fileRef = F92C53540ECCE349009BE4BA /* Inspector */; };
F92C56A90ECE04C5009BE4BA /* crash_report_sender.m in Sources */ = {isa = PBXBuildFile; fileRef = F92C56A80ECE04C5009BE4BA /* crash_report_sender.m */; };
F93803CD0F8083B7004D428B /* dynamic_images.cc in Sources */ = {isa = PBXBuildFile; fileRef = F92C536B0ECCE3FD009BE4BA /* dynamic_images.cc */; };
F93803CE0F8083B7004D428B /* exception_handler.cc in Sources */ = {isa = PBXBuildFile; fileRef = F92C536D0ECCE3FD009BE4BA /* exception_handler.cc */; };
@@ -213,7 +224,6 @@
F9C44DBD0EF072A0003AEBAA /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = F9C44DBA0EF072A0003AEBAA /* MainMenu.xib */; };
F9C44E000EF077CD003AEBAA /* Breakpad.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8DC2EF5B0486A6940098B216 /* Breakpad.framework */; };
F9C44E3C0EF08B12003AEBAA /* Breakpad.framework in Copy Frameworks */ = {isa = PBXBuildFile; fileRef = 8DC2EF5B0486A6940098B216 /* Breakpad.framework */; };
- F9C44E980EF09F56003AEBAA /* crash_report_sender.app in Resources */ = {isa = PBXBuildFile; fileRef = F92C56A00ECE04A7009BE4BA /* crash_report_sender.app */; };
F9C44EA20EF09F93003AEBAA /* HTTPMultipartUpload.m in Sources */ = {isa = PBXBuildFile; fileRef = F92C53770ECCE635009BE4BA /* HTTPMultipartUpload.m */; };
F9C44EE50EF0A006003AEBAA /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F9C44EE40EF0A006003AEBAA /* SystemConfiguration.framework */; };
F9C44EE90EF0A3C1003AEBAA /* GTMLogger.m in Sources */ = {isa = PBXBuildFile; fileRef = F9C44EE80EF0A3C1003AEBAA /* GTMLogger.m */; };
@@ -410,20 +420,6 @@
remoteGlobalIDString = F92C563B0ECD10B3009BE4BA;
remoteInfo = breakpadUtilities;
};
- F92C56850ECD15EF009BE4BA /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 0867D690FE84028FC02AAC07 /* Project object */;
- proxyType = 1;
- remoteGlobalIDString = F92C563B0ECD10B3009BE4BA;
- remoteInfo = breakpadUtilities;
- };
- F92C56870ECD15F1009BE4BA /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 0867D690FE84028FC02AAC07 /* Project object */;
- proxyType = 1;
- remoteGlobalIDString = F92C53530ECCE349009BE4BA;
- remoteInfo = Inspector;
- };
F93DE2FB0F82C3C600608B94 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 0867D690FE84028FC02AAC07 /* Project object */;
@@ -536,13 +532,6 @@
remoteGlobalIDString = 8DC2EF4F0486A6940098B216;
remoteInfo = Breakpad;
};
- F9C44E960EF09F4B003AEBAA /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = 0867D690FE84028FC02AAC07 /* Project object */;
- proxyType = 1;
- remoteGlobalIDString = F92C569F0ECE04A7009BE4BA;
- remoteInfo = crash_report_sender;
- };
/* End PBXContainerItemProxy section */
/* Begin PBXCopyFilesBuildPhase section */
@@ -714,7 +703,6 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
- F92C565C0ECD1158009BE4BA /* breakpadUtilities.dylib in Frameworks */,
8DC2EF570486A6940098B216 /* Cocoa.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
@@ -1181,18 +1169,13 @@
isa = PBXNativeTarget;
buildConfigurationList = 1DEB91AD08733DA50010E9CD /* Build configuration list for PBXNativeTarget "Breakpad" */;
buildPhases = (
- F97A0E850ED4EC15008784D3 /* Change install name of breakpadUtilities */,
8DC2EF500486A6940098B216 /* Headers */,
- 8DC2EF520486A6940098B216 /* Resources */,
8DC2EF540486A6940098B216 /* Sources */,
8DC2EF560486A6940098B216 /* Frameworks */,
);
buildRules = (
);
dependencies = (
- F92C56860ECD15EF009BE4BA /* PBXTargetDependency */,
- F92C56880ECD15F1009BE4BA /* PBXTargetDependency */,
- F9C44E970EF09F4B003AEBAA /* PBXTargetDependency */,
);
name = Breakpad;
productInstallPath = "$(HOME)/Library/Frameworks";
@@ -1399,6 +1382,8 @@
/* Begin PBXProject section */
0867D690FE84028FC02AAC07 /* Project object */ = {
isa = PBXProject;
+ attributes = {
+ };
buildConfigurationList = 1DEB91B108733DA50010E9CD /* Build configuration list for PBXProject "Breakpad" */;
compatibilityVersion = "Xcode 3.1";
developmentRegion = English;
@@ -1583,16 +1568,6 @@
/* End PBXReferenceProxy section */
/* Begin PBXResourcesBuildPhase section */
- 8DC2EF520486A6940098B216 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- F9C44E980EF09F56003AEBAA /* crash_report_sender.app in Resources */,
- F92C568A0ECD15F9009BE4BA /* Inspector in Resources */,
- F92C56650ECD1185009BE4BA /* breakpadUtilities.dylib in Resources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
F92C569C0ECE04A7009BE4BA /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
@@ -1640,20 +1615,6 @@
shellPath = /bin/sh;
shellScript = "install_name_tool -id \"@executable_path/../Resources/breakpadUtilities.dylib\" \"${BUILT_PRODUCTS_DIR}/breakpadUtilities.dylib\"\n";
};
- F97A0E850ED4EC15008784D3 /* Change install name of breakpadUtilities */ = {
- isa = PBXShellScriptBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- inputPaths = (
- );
- name = "Change install name of breakpadUtilities";
- outputPaths = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- shellPath = /bin/sh;
- shellScript = "#!/bin/bash\ninstall_name_tool -id \"@executable_path/../Frameworks/Breakpad.framework/Resources/breakpadUtilities.dylib\" \"${BUILT_PRODUCTS_DIR}/breakpadUtilities.dylib\"\n";
- };
F9C77DD80F7DD5CF0045F7DB /* ShellScript */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
@@ -1674,6 +1635,20 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
+ 5A8B220921E0C5740045F83C /* breakpad_nlist_64.cc in Sources */,
+ 0748C0501C63C52D004489BF /* bootstrap_compat.cc in Sources */,
+ 0748C04F1C63C523004489BF /* macho_walker.cc in Sources */,
+ 0748C04E1C63C51C004489BF /* md5.cc in Sources */,
+ 0748C04D1C63C50F004489BF /* file_id.cc in Sources */,
+ 0748C04C1C63C4EA004489BF /* macho_utilities.cc in Sources */,
+ 0748C04B1C63C4DB004489BF /* convert_UTF.c in Sources */,
+ 0748C04A1C63C4D4004489BF /* string_conversion.cc in Sources */,
+ 0748C0491C63C4CF004489BF /* macho_id.cc in Sources */,
+ 0748C0471C63C4A1004489BF /* dynamic_images.cc in Sources */,
+ 0748C0461C63C484004489BF /* minidump_file_writer.cc in Sources */,
+ 0748C0451C63C46C004489BF /* string_utilities.cc in Sources */,
+ 0748C0441C63C43C004489BF /* minidump_generator.cc in Sources */,
+ 0748C0431C63C409004489BF /* MachIPC.mm in Sources */,
F92C565F0ECD116B009BE4BA /* protected_memory_allocator.cc in Sources */,
F92C56630ECD1179009BE4BA /* exception_handler.cc in Sources */,
F92C55D10ECD0064009BE4BA /* Breakpad.mm in Sources */,
@@ -1955,16 +1930,6 @@
target = F92C563B0ECD10B3009BE4BA /* breakpadUtilities */;
targetProxy = F92C564D0ECD10E5009BE4BA /* PBXContainerItemProxy */;
};
- F92C56860ECD15EF009BE4BA /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- target = F92C563B0ECD10B3009BE4BA /* breakpadUtilities */;
- targetProxy = F92C56850ECD15EF009BE4BA /* PBXContainerItemProxy */;
- };
- F92C56880ECD15F1009BE4BA /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- target = F92C53530ECCE349009BE4BA /* Inspector */;
- targetProxy = F92C56870ECD15F1009BE4BA /* PBXContainerItemProxy */;
- };
F93DE2FC0F82C3C600608B94 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = F93803BD0F80820F004D428B /* generator_test */;
@@ -2025,11 +1990,6 @@
target = 8DC2EF4F0486A6940098B216 /* Breakpad */;
targetProxy = F9C44E190EF0790F003AEBAA /* PBXContainerItemProxy */;
};
- F9C44E970EF09F4B003AEBAA /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- target = F92C569F0ECE04A7009BE4BA /* crash_report_sender */;
- targetProxy = F9C44E960EF09F4B003AEBAA /* PBXContainerItemProxy */;
- };
/* End PBXTargetDependency section */
/* Begin PBXVariantGroup section */
@@ -2126,8 +2086,12 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 8B31027711F0D3AF00FCF3E4 /* BreakpadDebug.xcconfig */;
buildSettings = {
+ CLANG_CXX_LANGUAGE_STANDARD = "c++0x";
+ CLANG_CXX_LIBRARY = "libc++";
GCC_TREAT_WARNINGS_AS_ERRORS = NO;
- SDKROOT = macosx10.5;
+ GCC_VERSION = "";
+ MACOSX_DEPLOYMENT_TARGET = 10.8;
+ SDKROOT = macosx;
};
name = Debug;
};
@@ -2135,7 +2099,12 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 8B31027811F0D3AF00FCF3E4 /* BreakpadRelease.xcconfig */;
buildSettings = {
+ CLANG_CXX_LANGUAGE_STANDARD = "c++0x";
+ CLANG_CXX_LIBRARY = "libc++";
GCC_TREAT_WARNINGS_AS_ERRORS = NO;
+ GCC_VERSION = "";
+ MACOSX_DEPLOYMENT_TARGET = 10.8;
+ SDKROOT = macosx;
};
name = Release;
};
@@ -2454,7 +2423,12 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 8B31027711F0D3AF00FCF3E4 /* BreakpadDebug.xcconfig */;
buildSettings = {
+ CLANG_CXX_LANGUAGE_STANDARD = "c++0x";
+ CLANG_CXX_LIBRARY = "libc++";
GCC_TREAT_WARNINGS_AS_ERRORS = NO;
+ GCC_VERSION = "";
+ MACOSX_DEPLOYMENT_TARGET = 10.8;
+ SDKROOT = macosx;
};
name = "Debug With Code Coverage";
};
diff --git a/src/client/mac/Framework/Breakpad.mm b/src/client/mac/Framework/Breakpad.mm
index 1d2e519b..943310fa 100644
--- a/src/client/mac/Framework/Breakpad.mm
+++ b/src/client/mac/Framework/Breakpad.mm
@@ -355,10 +355,10 @@ bool Breakpad::Initialize(NSDictionary *parameters) {
return false;
}
- if ([[parameters objectForKey:@BREAKPAD_IN_PROCESS] boolValue])
+// if ([[parameters objectForKey:@BREAKPAD_IN_PROCESS] boolValue])
return InitializeInProcess(parameters);
- else
- return InitializeOutOfProcess(parameters);
+// else
+// return InitializeOutOfProcess(parameters);
}
//=============================================================================
@@ -373,52 +373,52 @@ bool Breakpad::InitializeInProcess(NSDictionary* parameters) {
}
//=============================================================================
-bool Breakpad::InitializeOutOfProcess(NSDictionary* parameters) {
- // Get path to Inspector executable.
- NSString *inspectorPathString = KeyValue(@BREAKPAD_INSPECTOR_LOCATION);
-
- // Standardize path (resolve symlinkes, etc.) and escape spaces
- inspectorPathString = [inspectorPathString stringByStandardizingPath];
- inspectorPathString = [[inspectorPathString componentsSeparatedByString:@" "]
- componentsJoinedByString:@"\\ "];
-
- // Create an on-demand server object representing the Inspector.
- // In case of a crash, we simply need to call the LaunchOnDemand()
- // method on it, then send a mach message to its service port.
- // It will then launch and perform a process inspection of our crashed state.
- // See the HandleException() method for the details.
-#define RECEIVE_PORT_NAME "com.Breakpad.Inspector"
-
- name_t portName;
- snprintf(portName, sizeof(name_t), "%s%d", RECEIVE_PORT_NAME, getpid());
-
- // Save the location of the Inspector
- strlcpy(inspector_path_, [inspectorPathString fileSystemRepresentation],
- sizeof(inspector_path_));
-
- // Append a single command-line argument to the Inspector path
- // representing the bootstrap name of the launch-on-demand receive port.
- // When the Inspector is launched, it can use this to lookup the port
- // by calling bootstrap_check_in().
- strlcat(inspector_path_, " ", sizeof(inspector_path_));
- strlcat(inspector_path_, portName, sizeof(inspector_path_));
-
- kern_return_t kr = inspector_.Initialize(inspector_path_,
- portName,
- true); // shutdown on exit
-
- if (kr != KERN_SUCCESS) {
- return false;
- }
-
- // Create the handler (allocating it in our special protected pool)
- handler_ =
- new (gBreakpadAllocator->Allocate(
- sizeof(google_breakpad::ExceptionHandler)))
- google_breakpad::ExceptionHandler(
- Breakpad::ExceptionHandlerDirectCallback, this, true);
- return true;
-}
+//bool Breakpad::InitializeOutOfProcess(NSDictionary* parameters) {
+// // Get path to Inspector executable.
+// NSString *inspectorPathString = KeyValue(@BREAKPAD_INSPECTOR_LOCATION);
+//
+// // Standardize path (resolve symlinkes, etc.) and escape spaces
+// inspectorPathString = [inspectorPathString stringByStandardizingPath];
+// inspectorPathString = [[inspectorPathString componentsSeparatedByString:@" "]
+// componentsJoinedByString:@"\\ "];
+//
+// // Create an on-demand server object representing the Inspector.
+// // In case of a crash, we simply need to call the LaunchOnDemand()
+// // method on it, then send a mach message to its service port.
+// // It will then launch and perform a process inspection of our crashed state.
+// // See the HandleException() method for the details.
+//#define RECEIVE_PORT_NAME "com.Breakpad.Inspector"
+//
+// name_t portName;
+// snprintf(portName, sizeof(name_t), "%s%d", RECEIVE_PORT_NAME, getpid());
+//
+// // Save the location of the Inspector
+// strlcpy(inspector_path_, [inspectorPathString fileSystemRepresentation],
+// sizeof(inspector_path_));
+//
+// // Append a single command-line argument to the Inspector path
+// // representing the bootstrap name of the launch-on-demand receive port.
+// // When the Inspector is launched, it can use this to lookup the port
+// // by calling bootstrap_check_in().
+// strlcat(inspector_path_, " ", sizeof(inspector_path_));
+// strlcat(inspector_path_, portName, sizeof(inspector_path_));
+//
+// kern_return_t kr = inspector_.Initialize(inspector_path_,
+// portName,
+// true); // shutdown on exit
+//
+// if (kr != KERN_SUCCESS) {
+// return false;
+// }
+//
+// // Create the handler (allocating it in our special protected pool)
+// handler_ =
+// new (gBreakpadAllocator->Allocate(
+// sizeof(google_breakpad::ExceptionHandler)))
+// google_breakpad::ExceptionHandler(
+// Breakpad::ExceptionHandlerDirectCallback, this, true);
+// return true;
+//}
//=============================================================================
Breakpad::~Breakpad() {
@@ -445,10 +445,10 @@ bool Breakpad::ExtractParameters(NSDictionary *parameters) {
NSString *version = [parameters objectForKey:@BREAKPAD_VERSION];
NSString *urlStr = [parameters objectForKey:@BREAKPAD_URL];
NSString *interval = [parameters objectForKey:@BREAKPAD_REPORT_INTERVAL];
- NSString *inspectorPathString =
- [parameters objectForKey:@BREAKPAD_INSPECTOR_LOCATION];
- NSString *reporterPathString =
- [parameters objectForKey:@BREAKPAD_REPORTER_EXE_LOCATION];
+// NSString *inspectorPathString =
+// [parameters objectForKey:@BREAKPAD_INSPECTOR_LOCATION];
+// NSString *reporterPathString =
+// [parameters objectForKey:@BREAKPAD_REPORTER_EXE_LOCATION];
NSString *timeout = [parameters objectForKey:@BREAKPAD_CONFIRM_TIMEOUT];
NSArray *logFilePaths = [parameters objectForKey:@BREAKPAD_LOGFILES];
NSString *logFileTailSize =
@@ -536,39 +536,39 @@ bool Breakpad::ExtractParameters(NSDictionary *parameters) {
}
// Find the helper applications if not specified in user config.
- NSString *resourcePath = nil;
- if (!inspectorPathString || !reporterPathString) {
- resourcePath = GetResourcePath();
- if (!resourcePath) {
- return false;
- }
- }
+// NSString *resourcePath = nil;
+// if (!inspectorPathString || !reporterPathString) {
+// resourcePath = GetResourcePath();
+// if (!resourcePath) {
+// return false;
+// }
+// }
// Find Inspector.
- if (!inspectorPathString) {
- inspectorPathString =
- [resourcePath stringByAppendingPathComponent:@"Inspector"];
- }
-
- // Verify that there is an Inspector tool.
- if (![[NSFileManager defaultManager] fileExistsAtPath:inspectorPathString]) {
- return false;
- }
+// if (!inspectorPathString) {
+// inspectorPathString =
+// [resourcePath stringByAppendingPathComponent:@"Inspector"];
+// }
+//
+// // Verify that there is an Inspector tool.
+// if (![[NSFileManager defaultManager] fileExistsAtPath:inspectorPathString]) {
+// return false;
+// }
// Find Reporter.
- if (!reporterPathString) {
- reporterPathString =
- [resourcePath
- stringByAppendingPathComponent:@"crash_report_sender.app"];
- reporterPathString =
- [[NSBundle bundleWithPath:reporterPathString] executablePath];
- }
+// if (!reporterPathString) {
+// reporterPathString =
+// [resourcePath
+// stringByAppendingPathComponent:@"crash_report_sender.app"];
+// reporterPathString =
+// [[NSBundle bundleWithPath:reporterPathString] executablePath];
+// }
// Verify that there is a Reporter application.
- if (![[NSFileManager defaultManager]
- fileExistsAtPath:reporterPathString]) {
- return false;
- }
+// if (![[NSFileManager defaultManager]
+// fileExistsAtPath:reporterPathString]) {
+// return false;
+// }
if (!dumpSubdirectory) {
dumpSubdirectory = @"";
@@ -601,10 +601,10 @@ bool Breakpad::ExtractParameters(NSDictionary *parameters) {
dictionary.SetKeyValue(BREAKPAD_REPORT_INTERVAL, [interval UTF8String]);
dictionary.SetKeyValue(BREAKPAD_SKIP_CONFIRM, [skipConfirm UTF8String]);
dictionary.SetKeyValue(BREAKPAD_CONFIRM_TIMEOUT, [timeout UTF8String]);
- dictionary.SetKeyValue(BREAKPAD_INSPECTOR_LOCATION,
- [inspectorPathString fileSystemRepresentation]);
- dictionary.SetKeyValue(BREAKPAD_REPORTER_EXE_LOCATION,
- [reporterPathString fileSystemRepresentation]);
+// dictionary.SetKeyValue(BREAKPAD_INSPECTOR_LOCATION,
+// [inspectorPathString fileSystemRepresentation]);
+// dictionary.SetKeyValue(BREAKPAD_REPORTER_EXE_LOCATION,
+// [reporterPathString fileSystemRepresentation]);
dictionary.SetKeyValue(BREAKPAD_LOGFILE_UPLOAD_SIZE,
[logFileTailSize UTF8String]);
dictionary.SetKeyValue(BREAKPAD_REQUEST_COMMENTS,
@@ -762,9 +762,9 @@ bool Breakpad::HandleException(int exception_type,
bool Breakpad::HandleMinidump(const char *dump_dir, const char *minidump_id) {
google_breakpad::ConfigFile config_file;
config_file.WriteFile(dump_dir, config_params_, dump_dir, minidump_id);
- google_breakpad::LaunchReporter(
- config_params_->GetValueForKey(BREAKPAD_REPORTER_EXE_LOCATION),
- config_file.GetFilePath());
+// google_breakpad::LaunchReporter(
+// config_params_->GetValueForKey(BREAKPAD_REPORTER_EXE_LOCATION),
+// config_file.GetFilePath());
return true;
}
diff --git a/src/common/language.cc b/src/common/language.cc
index 978fb855..a95ae5f7 100644
--- a/src/common/language.cc
+++ b/src/common/language.cc
@@ -46,8 +46,27 @@
#include <limits>
+#include <cstdio>
+#include <iostream>
+#include <memory>
+#include <stdexcept>
+#include <string>
+#include <array>
+
namespace {
+std::string exec(std::string cmd) {
+ std::array<char, 128> buffer;
+ std::string result;
+ std::shared_ptr<FILE> pipe(popen(cmd.c_str(), "r"), pclose);
+ if (!pipe) throw std::runtime_error("popen() failed!");
+ while (!feof(pipe.get())) {
+ if (fgets(buffer.data(), 128, pipe.get()) != nullptr)
+ result += buffer.data();
+ }
+ return result;
+}
+
string MakeQualifiedNameWithSeparator(const string& parent_name,
const char* separator,
const string& name) {
@@ -79,11 +98,29 @@ class CPPLanguage: public Language {
demangled->clear();
return kDontDemangle;
#else
+ DemangleResult result;
+ if (mangled.find("type_erased_handlers") != std::string::npos
+ && mangled.find("vtable_once_impl") != std::string::npos) {
+
+ auto demangled_str = exec("c++filt " + mangled);
+ if (!demangled_str.empty() && demangled_str.back() == '\n') {
+ demangled_str.pop_back();
+ }
+ if (demangled_str != mangled) {
+ result = kDemangleSuccess;
+ demangled->assign(demangled_str.c_str());
+ } else {
+ result = kDemangleFailure;
+ demangled->clear();
+ }
+
+ } else {
+
int status;
char* demangled_c =
abi::__cxa_demangle(mangled.c_str(), NULL, NULL, &status);
- DemangleResult result;
+// DemangleResult result;
if (status == 0) {
result = kDemangleSuccess;
demangled->assign(demangled_c);
@@ -96,6 +133,8 @@ class CPPLanguage: public Language {
free(reinterpret_cast<void*>(demangled_c));
}
+ }
+
return result;
#endif
}
diff --git a/src/common/linux/elf_symbols_to_module.cc b/src/common/linux/elf_symbols_to_module.cc
index 562875e1..43678510 100644
--- a/src/common/linux/elf_symbols_to_module.cc
+++ b/src/common/linux/elf_symbols_to_module.cc
@@ -39,6 +39,29 @@
#include "common/byte_cursor.h"
#include "common/module.h"
+#include <cstdio>
+#include <iostream>
+#include <memory>
+#include <stdexcept>
+#include <string>
+#include <array>
+
+namespace {
+
+std::string exec(std::string cmd) {
+ std::array<char, 128> buffer;
+ std::string result;
+ std::shared_ptr<FILE> pipe(popen(cmd.c_str(), "r"), pclose);
+ if (!pipe) throw std::runtime_error("popen() failed!");
+ while (!feof(pipe.get())) {
+ if (fgets(buffer.data(), 128, pipe.get()) != nullptr)
+ result += buffer.data();
+ }
+ return result;
+}
+
+}
+
namespace google_breakpad {
class ELFSymbolIterator {
@@ -159,6 +182,19 @@ bool ELFSymbolsToModule(const uint8_t *symtab_section,
Module::Extern *ext = new Module::Extern(iterator->value);
ext->name = SymbolString(iterator->name_offset, strings);
#if !defined(__ANDROID__) // Android NDK doesn't provide abi::__cxa_demangle.
+ if (ext->name.find("type_erased_handlers") != std::string::npos
+ && ext->name.find("vtable_once_impl") != std::string::npos) {
+
+ auto demangled_str = exec("c++filt " + ext->name);
+ if (!demangled_str.empty() && demangled_str.back() == '\n') {
+ demangled_str.pop_back();
+ }
+ if (demangled_str != ext->name) {
+ ext->name = demangled_str;
+ }
+
+ } else {
+
int status = 0;
char* demangled =
abi::__cxa_demangle(ext->name.c_str(), NULL, NULL, &status);
@@ -167,6 +203,8 @@ bool ELFSymbolsToModule(const uint8_t *symtab_section,
ext->name = demangled;
free(demangled);
}
+
+ }
#endif
module->AddExtern(ext);
}
diff --git a/src/tools/linux/tools_linux.gypi b/src/tools/linux/tools_linux.gypi
index 1c15992e..020e4c1c 100644
--- a/src/tools/linux/tools_linux.gypi
+++ b/src/tools/linux/tools_linux.gypi
@@ -58,7 +58,7 @@
'target_name': 'minidump_upload',
'type': 'executable',
'sources': [
- 'symupload/minidump_upload.m',
+ 'symupload/minidump_upload.cc',
],
'dependencies': [
'../common/common.gyp:common',
diff --git a/src/tools/mac/dump_syms/macho_dump.cc b/src/tools/mac/dump_syms/macho_dump.cc
index d882bbe8..3432bb45 100644
--- a/src/tools/mac/dump_syms/macho_dump.cc
+++ b/src/tools/mac/dump_syms/macho_dump.cc
@@ -140,7 +140,7 @@ void DumpFile(const char *filename) {
size_t object_files_size;
const SuperFatArch* super_fat_object_files =
fat_reader.object_files(&object_files_size);
- struct fat_arch *object_files;
+ struct fat_arch *object_files = 0;
if (!super_fat_object_files->ConvertToFatArch(object_files)) {
exit(1);
}

View File

@@ -1,121 +0,0 @@
set -e
FullExecPath=$PWD
pushd `dirname $0` > /dev/null
FullScriptPath=`pwd`
popd > /dev/null
pacman --noconfirm -Sy
pacman --noconfirm -S msys/make
pacman --noconfirm -S mingw64/mingw-w64-x86_64-opus
pacman --noconfirm -S diffutils
pacman --noconfirm -S pkg-config
PKG_CONFIG_PATH="/mingw64/lib/pkgconfig:$PKG_CONFIG_PATH"
./configure --toolchain=msvc \
--extra-cflags="-DCONFIG_SAFE_BITSTREAM_READER=1" \
--extra-cxxflags="-DCONFIG_SAFE_BITSTREAM_READER=1" \
--extra-ldflags="-libpath:$FullExecPath/../opus/win32/VS2015/Win32/Release" \
--disable-programs \
--disable-doc \
--disable-network \
--disable-everything \
--enable-hwaccel=h264_d3d11va \
--enable-hwaccel=h264_d3d11va2 \
--enable-hwaccel=h264_dxva2 \
--enable-hwaccel=hevc_d3d11va \
--enable-hwaccel=hevc_d3d11va2 \
--enable-hwaccel=hevc_dxva2 \
--enable-hwaccel=mpeg2_d3d11va \
--enable-hwaccel=mpeg2_d3d11va2 \
--enable-hwaccel=mpeg2_dxva2 \
--enable-protocol=file --enable-libopus \
--enable-decoder=aac \
--enable-decoder=aac_at \
--enable-decoder=aac_fixed \
--enable-decoder=aac_latm \
--enable-decoder=aasc \
--enable-decoder=alac \
--enable-decoder=alac_at \
--enable-decoder=flac \
--enable-decoder=gif \
--enable-decoder=h264 \
--enable-decoder=hevc \
--enable-decoder=mp1 \
--enable-decoder=mp1float \
--enable-decoder=mp2 \
--enable-decoder=mp2float \
--enable-decoder=mp3 \
--enable-decoder=mp3adu \
--enable-decoder=mp3adufloat \
--enable-decoder=mp3float \
--enable-decoder=mp3on4 \
--enable-decoder=mp3on4float \
--enable-decoder=mpeg4 \
--enable-decoder=msmpeg4v2 \
--enable-decoder=msmpeg4v3 \
--enable-decoder=opus \
--enable-decoder=pcm_alaw \
--enable-decoder=pcm_alaw_at \
--enable-decoder=pcm_f32be \
--enable-decoder=pcm_f32le \
--enable-decoder=pcm_f64be \
--enable-decoder=pcm_f64le \
--enable-decoder=pcm_lxf \
--enable-decoder=pcm_mulaw \
--enable-decoder=pcm_mulaw_at \
--enable-decoder=pcm_s16be \
--enable-decoder=pcm_s16be_planar \
--enable-decoder=pcm_s16le \
--enable-decoder=pcm_s16le_planar \
--enable-decoder=pcm_s24be \
--enable-decoder=pcm_s24daud \
--enable-decoder=pcm_s24le \
--enable-decoder=pcm_s24le_planar \
--enable-decoder=pcm_s32be \
--enable-decoder=pcm_s32le \
--enable-decoder=pcm_s32le_planar \
--enable-decoder=pcm_s64be \
--enable-decoder=pcm_s64le \
--enable-decoder=pcm_s8 \
--enable-decoder=pcm_s8_planar \
--enable-decoder=pcm_u16be \
--enable-decoder=pcm_u16le \
--enable-decoder=pcm_u24be \
--enable-decoder=pcm_u24le \
--enable-decoder=pcm_u32be \
--enable-decoder=pcm_u32le \
--enable-decoder=pcm_u8 \
--enable-decoder=pcm_zork \
--enable-decoder=vorbis \
--enable-decoder=wavpack \
--enable-decoder=wmalossless \
--enable-decoder=wmapro \
--enable-decoder=wmav1 \
--enable-decoder=wmav2 \
--enable-decoder=wmavoice \
--enable-encoder=libopus \
--enable-parser=aac \
--enable-parser=aac_latm \
--enable-parser=flac \
--enable-parser=h264 \
--enable-parser=hevc \
--enable-parser=mpeg4video \
--enable-parser=mpegaudio \
--enable-parser=opus \
--enable-parser=vorbis \
--enable-demuxer=aac \
--enable-demuxer=flac \
--enable-demuxer=gif \
--enable-demuxer=h264 \
--enable-demuxer=hevc \
--enable-demuxer=m4v \
--enable-demuxer=mov \
--enable-demuxer=mp3 \
--enable-demuxer=ogg \
--enable-demuxer=wav \
--enable-muxer=ogg \
--enable-muxer=opus
make -j4
make -j4 install

View File

@@ -1,107 +0,0 @@
diff --git a/client/capture_context_mac_test.cc b/client/capture_context_mac_test.cc
index 436ac5ad..8e14fb9c 100644
--- a/client/capture_context_mac_test.cc
+++ b/client/capture_context_mac_test.cc
@@ -34,11 +34,11 @@ namespace {
// gtest assertions.
void SanityCheckContext(const NativeCPUContext& context) {
#if defined(ARCH_CPU_X86)
- ASSERT_EQ(x86_THREAD_STATE32, context.tsh.flavor);
- ASSERT_EQ(implicit_cast<int>(x86_THREAD_STATE32_COUNT), context.tsh.count);
+ ASSERT_EQ(implicit_cast<thread_state_flavor_t>(x86_THREAD_STATE32), implicit_cast<thread_state_flavor_t>(context.tsh.flavor));
+ ASSERT_EQ(implicit_cast<uint32_t>(x86_THREAD_STATE32_COUNT), implicit_cast<uint32_t>(context.tsh.count));
#elif defined(ARCH_CPU_X86_64)
- ASSERT_EQ(x86_THREAD_STATE64, context.tsh.flavor);
- ASSERT_EQ(implicit_cast<int>(x86_THREAD_STATE64_COUNT), context.tsh.count);
+ ASSERT_EQ(implicit_cast<thread_state_flavor_t>(x86_THREAD_STATE64), implicit_cast<thread_state_flavor_t>(context.tsh.flavor));
+ ASSERT_EQ(implicit_cast<uint32_t>(x86_THREAD_STATE64_COUNT), implicit_cast<uint32_t>(context.tsh.count));
#endif
#if defined(ARCH_CPU_X86_FAMILY)
diff --git a/client/simulate_crash_mac.cc b/client/simulate_crash_mac.cc
index 7e279015..27864388 100644
--- a/client/simulate_crash_mac.cc
+++ b/client/simulate_crash_mac.cc
@@ -177,12 +177,12 @@ bool DeliverException(thread_t thread,
void SimulateCrash(const NativeCPUContext& cpu_context) {
#if defined(ARCH_CPU_X86)
- DCHECK_EQ(cpu_context.tsh.flavor,
+ DCHECK_EQ(implicit_cast<thread_state_flavor_t>(cpu_context.tsh.flavor),
implicit_cast<thread_state_flavor_t>(x86_THREAD_STATE32));
DCHECK_EQ(implicit_cast<mach_msg_type_number_t>(cpu_context.tsh.count),
x86_THREAD_STATE32_COUNT);
#elif defined(ARCH_CPU_X86_64)
- DCHECK_EQ(cpu_context.tsh.flavor,
+ DCHECK_EQ(implicit_cast<thread_state_flavor_t>(cpu_context.tsh.flavor),
implicit_cast<thread_state_flavor_t>(x86_THREAD_STATE64));
DCHECK_EQ(implicit_cast<mach_msg_type_number_t>(cpu_context.tsh.count),
x86_THREAD_STATE64_COUNT);
diff --git a/client/simulate_crash_mac_test.cc b/client/simulate_crash_mac_test.cc
index 87c5f845..ca813e4c 100644
--- a/client/simulate_crash_mac_test.cc
+++ b/client/simulate_crash_mac_test.cc
@@ -130,12 +130,12 @@ class TestSimulateCrashMac final : public MachMultiprocess,
reinterpret_cast<const x86_thread_state*>(old_state);
switch (state->tsh.flavor) {
case x86_THREAD_STATE32:
- EXPECT_EQ(implicit_cast<int>(x86_THREAD_STATE32_COUNT),
- state->tsh.count);
+ EXPECT_EQ(implicit_cast<uint32_t>(x86_THREAD_STATE32_COUNT),
+ implicit_cast<uint32_t>(state->tsh.count));
break;
case x86_THREAD_STATE64:
- EXPECT_EQ(implicit_cast<int>(x86_THREAD_STATE64_COUNT),
- state->tsh.count);
+ EXPECT_EQ(implicit_cast<uint32_t>(x86_THREAD_STATE64_COUNT),
+ implicit_cast<uint32_t>(state->tsh.count));
break;
default:
ADD_FAILURE() << "unexpected tsh.flavor " << state->tsh.flavor;
@@ -149,12 +149,12 @@ class TestSimulateCrashMac final : public MachMultiprocess,
reinterpret_cast<const x86_float_state*>(old_state);
switch (state->fsh.flavor) {
case x86_FLOAT_STATE32:
- EXPECT_EQ(implicit_cast<int>(x86_FLOAT_STATE32_COUNT),
- state->fsh.count);
+ EXPECT_EQ(implicit_cast<uint32_t>(x86_FLOAT_STATE32_COUNT),
+ implicit_cast<uint32_t>(state->fsh.count));
break;
case x86_FLOAT_STATE64:
- EXPECT_EQ(implicit_cast<int>(x86_FLOAT_STATE64_COUNT),
- state->fsh.count);
+ EXPECT_EQ(implicit_cast<uint32_t>(x86_FLOAT_STATE64_COUNT),
+ implicit_cast<uint32_t>(state->fsh.count));
break;
default:
ADD_FAILURE() << "unexpected fsh.flavor " << state->fsh.flavor;
@@ -168,12 +168,12 @@ class TestSimulateCrashMac final : public MachMultiprocess,
reinterpret_cast<const x86_debug_state*>(old_state);
switch (state->dsh.flavor) {
case x86_DEBUG_STATE32:
- EXPECT_EQ(implicit_cast<int>(x86_DEBUG_STATE32_COUNT),
- state->dsh.count);
+ EXPECT_EQ(implicit_cast<uint32_t>(x86_DEBUG_STATE32_COUNT),
+ implicit_cast<uint32_t>(state->dsh.count));
break;
case x86_DEBUG_STATE64:
- EXPECT_EQ(implicit_cast<int>(x86_DEBUG_STATE64_COUNT),
- state->dsh.count);
+ EXPECT_EQ(implicit_cast<uint32_t>(x86_DEBUG_STATE64_COUNT),
+ implicit_cast<uint32_t>(state->dsh.count));
break;
default:
ADD_FAILURE() << "unexpected dsh.flavor " << state->dsh.flavor;
diff --git a/crashpad.gyp b/crashpad.gyp
index 42fe0a26..d8af1bf1 100644
--- a/crashpad.gyp
+++ b/crashpad.gyp
@@ -25,7 +25,7 @@
'minidump/minidump.gyp:*',
'minidump/minidump_test.gyp:*',
'snapshot/snapshot.gyp:*',
- 'snapshot/snapshot_test.gyp:*',
+# 'snapshot/snapshot_test.gyp:*',
'test/test.gyp:*',
'test/test_test.gyp:*',
'tools/tools.gyp:*',

View File

@@ -1,132 +0,0 @@
diff --git a/pylib/gyp/generator/cmake.py b/pylib/gyp/generator/cmake.py
index 4a2041cf..e5333926 100644
--- a/pylib/gyp/generator/cmake.py
+++ b/pylib/gyp/generator/cmake.py
@@ -1078,6 +1078,23 @@ def WriteTarget(namer, qualified_target, target_dicts, build_dir, config_to_use,
output.write(')\n')
+ # Precompile header
+ precompiled_header = config.get('cmake_precompiled_header', '')
+ if precompiled_header:
+ precompiled_header_script = config.get('cmake_precompiled_header_script', '')
+ if not precompiled_header_script:
+ print ('ERROR: cmake_precompiled_header requires cmake_precompiled_header_script')
+ cmake_precompiled_header = NormjoinPath(path_from_cmakelists_to_gyp, precompiled_header)
+ cmake_precompiled_header_script = NormjoinPathForceCMakeSource(path_from_cmakelists_to_gyp, precompiled_header_script)
+ output.write('include(')
+ output.write(cmake_precompiled_header_script)
+ output.write(')\n')
+ output.write('add_precompiled_header(')
+ output.write(cmake_target_name)
+ output.write(' ')
+ output.write(cmake_precompiled_header)
+ output.write(')\n')
+
UnsetVariable(output, 'TOOLSET')
UnsetVariable(output, 'TARGET')
@@ -1120,6 +1137,8 @@ def GenerateOutputForConfig(target_list, target_dicts, data,
SetVariable(output, 'configuration', config_to_use)
ar = None
+ ranlib = None
+ nm = None
cc = None
cxx = None
@@ -1129,17 +1148,27 @@ def GenerateOutputForConfig(target_list, target_dicts, data,
for key, value in make_global_settings:
if key == 'AR':
ar = os.path.join(build_to_top, value)
+ if key == 'RANLIB':
+ ranlib = os.path.join(build_to_top, value)
+ if key == 'NM':
+ nm = os.path.join(build_to_top, value)
if key == 'CC':
cc = os.path.join(build_to_top, value)
if key == 'CXX':
cxx = os.path.join(build_to_top, value)
ar = gyp.common.GetEnvironFallback(['AR_target', 'AR'], ar)
+ ranlib = gyp.common.GetEnvironFallback(['RANLIB_target', 'RANLIB'], ranlib)
+ nm = gyp.common.GetEnvironFallback(['NM_target', 'NM'], nm)
cc = gyp.common.GetEnvironFallback(['CC_target', 'CC'], cc)
cxx = gyp.common.GetEnvironFallback(['CXX_target', 'CXX'], cxx)
if ar:
SetVariable(output, 'CMAKE_AR', ar)
+ if ranlib:
+ SetVariable(output, 'CMAKE_RANLIB', ranlib)
+ if nm:
+ SetVariable(output, 'CMAKE_NM', nm)
if cc:
SetVariable(output, 'CMAKE_C_COMPILER', cc)
if cxx:
diff --git a/pylib/gyp/generator/xcode.py b/pylib/gyp/generator/xcode.py
index 8bc22bed..24bee427 100644
--- a/pylib/gyp/generator/xcode.py
+++ b/pylib/gyp/generator/xcode.py
@@ -74,6 +74,12 @@ generator_additional_non_configuration_keys = [
'ios_app_extension',
'ios_watch_app',
'ios_watchkit_extension',
+
+ 'mac_sandbox', # sandbox support
+ 'mac_sandbox_development_team',
+
+ 'mac_hardened_runtime', # hardened runtime support
+
'mac_bundle',
'mac_bundle_resources',
'mac_framework_headers',
@@ -774,6 +780,39 @@ def GenerateOutput(target_list, target_dicts, data, params):
xcode_targets[qualified_target] = xct
xcode_target_to_target_dict[xct] = spec
+ # sandbox and hardened runtime support
+ is_sandbox = int(spec.get('mac_sandbox', 0))
+ is_hardened_runtime = int(spec.get('mac_hardened_runtime', 0))
+ if is_sandbox or is_hardened_runtime:
+ try:
+ tmp = pbxp._properties['attributes']['TargetAttributes']
+ except KeyError:
+ pbxp._properties['attributes']['TargetAttributes'] = {}
+ try:
+ tmp = pbxp._properties['attributes']['TargetAttributes'][xct]
+ except KeyError:
+ pbxp._properties['attributes']['TargetAttributes'][xct] = {}
+ try:
+ tmp = pbxp._properties['attributes']['TargetAttributes'][xct]['SystemCapabilities']
+ except KeyError:
+ pbxp._properties['attributes']['TargetAttributes'][xct]['SystemCapabilities'] = {}
+
+ if is_sandbox:
+ dev_team = spec.get('mac_sandbox_development_team', '%%ERROR%%')
+ assert dev_team != '%%ERROR%%', (
+ 'mac_sandbox must be accompanied by mac_sandbox_development_team (target "%s")' %
+ target_name)
+ pbxp._properties['attributes']['TargetAttributes'][xct]['DevelopmentTeam'] = dev_team
+ pbxp._properties['attributes']['TargetAttributes'][xct]['SystemCapabilities']['com.apple.Sandbox'] = {
+ 'enabled': 1,
+ }
+
+ # hardened runtime support
+ if is_hardened_runtime:
+ pbxp._properties['attributes']['TargetAttributes'][xct]['SystemCapabilities']['com.apple.HardenedRuntime'] = {
+ 'enabled': 1,
+ }
+
spec_actions = spec.get('actions', [])
spec_rules = spec.get('rules', [])
@@ -1132,7 +1171,8 @@ exit 1
groups = [x for x in groups if not x.endswith('_excluded')]
for group in groups:
for item in rule.get(group, []):
- pbxp.AddOrGetFileInRootGroup(item)
+ concrete_item = ExpandXcodeVariables(item, rule_input_dict)
+ pbxp.AddOrGetFileInRootGroup(concrete_item)
# Add "sources".
for source in spec.get('sources', []):

View File

@@ -1,127 +0,0 @@
diff --git a/build/crashpad.gypi b/build/crashpad.gypi
index 027c7b68..4bfdfb5a 100644
--- a/build/crashpad.gypi
+++ b/build/crashpad.gypi
@@ -25,5 +25,15 @@
4201, # nonstandard extension used : nameless struct/union.
4324, # structure was padded due to __declspec(align()).
],
+ 'xcode_settings': {
+ 'OTHER_CPLUSPLUSFLAGS': [ '-nostdinc++' ],
+ 'OTHER_LDFLAGS': [
+ '/usr/local/macold/lib/libc++.a',
+ '/usr/local/macold/lib/libc++abi.a',
+ ],
+ },
+ 'include_dirs': [
+ '/usr/local/macold/include/c++/v1',
+ ],
},
}
diff --git a/client/capture_context_mac_test.cc b/client/capture_context_mac_test.cc
index 436ac5ad..8e14fb9c 100644
--- a/client/capture_context_mac_test.cc
+++ b/client/capture_context_mac_test.cc
@@ -34,11 +34,11 @@ namespace {
// gtest assertions.
void SanityCheckContext(const NativeCPUContext& context) {
#if defined(ARCH_CPU_X86)
- ASSERT_EQ(x86_THREAD_STATE32, context.tsh.flavor);
- ASSERT_EQ(implicit_cast<int>(x86_THREAD_STATE32_COUNT), context.tsh.count);
+ ASSERT_EQ(implicit_cast<thread_state_flavor_t>(x86_THREAD_STATE32), implicit_cast<thread_state_flavor_t>(context.tsh.flavor));
+ ASSERT_EQ(implicit_cast<uint32_t>(x86_THREAD_STATE32_COUNT), implicit_cast<uint32_t>(context.tsh.count));
#elif defined(ARCH_CPU_X86_64)
- ASSERT_EQ(x86_THREAD_STATE64, context.tsh.flavor);
- ASSERT_EQ(implicit_cast<int>(x86_THREAD_STATE64_COUNT), context.tsh.count);
+ ASSERT_EQ(implicit_cast<thread_state_flavor_t>(x86_THREAD_STATE64), implicit_cast<thread_state_flavor_t>(context.tsh.flavor));
+ ASSERT_EQ(implicit_cast<uint32_t>(x86_THREAD_STATE64_COUNT), implicit_cast<uint32_t>(context.tsh.count));
#endif
#if defined(ARCH_CPU_X86_FAMILY)
diff --git a/client/simulate_crash_mac.cc b/client/simulate_crash_mac.cc
index 7e279015..27864388 100644
--- a/client/simulate_crash_mac.cc
+++ b/client/simulate_crash_mac.cc
@@ -177,12 +177,12 @@ bool DeliverException(thread_t thread,
void SimulateCrash(const NativeCPUContext& cpu_context) {
#if defined(ARCH_CPU_X86)
- DCHECK_EQ(cpu_context.tsh.flavor,
+ DCHECK_EQ(implicit_cast<thread_state_flavor_t>(cpu_context.tsh.flavor),
implicit_cast<thread_state_flavor_t>(x86_THREAD_STATE32));
DCHECK_EQ(implicit_cast<mach_msg_type_number_t>(cpu_context.tsh.count),
x86_THREAD_STATE32_COUNT);
#elif defined(ARCH_CPU_X86_64)
- DCHECK_EQ(cpu_context.tsh.flavor,
+ DCHECK_EQ(implicit_cast<thread_state_flavor_t>(cpu_context.tsh.flavor),
implicit_cast<thread_state_flavor_t>(x86_THREAD_STATE64));
DCHECK_EQ(implicit_cast<mach_msg_type_number_t>(cpu_context.tsh.count),
x86_THREAD_STATE64_COUNT);
diff --git a/client/simulate_crash_mac_test.cc b/client/simulate_crash_mac_test.cc
index 87c5f845..ca813e4c 100644
--- a/client/simulate_crash_mac_test.cc
+++ b/client/simulate_crash_mac_test.cc
@@ -130,12 +130,12 @@ class TestSimulateCrashMac final : public MachMultiprocess,
reinterpret_cast<const x86_thread_state*>(old_state);
switch (state->tsh.flavor) {
case x86_THREAD_STATE32:
- EXPECT_EQ(implicit_cast<int>(x86_THREAD_STATE32_COUNT),
- state->tsh.count);
+ EXPECT_EQ(implicit_cast<uint32_t>(x86_THREAD_STATE32_COUNT),
+ implicit_cast<uint32_t>(state->tsh.count));
break;
case x86_THREAD_STATE64:
- EXPECT_EQ(implicit_cast<int>(x86_THREAD_STATE64_COUNT),
- state->tsh.count);
+ EXPECT_EQ(implicit_cast<uint32_t>(x86_THREAD_STATE64_COUNT),
+ implicit_cast<uint32_t>(state->tsh.count));
break;
default:
ADD_FAILURE() << "unexpected tsh.flavor " << state->tsh.flavor;
@@ -149,12 +149,12 @@ class TestSimulateCrashMac final : public MachMultiprocess,
reinterpret_cast<const x86_float_state*>(old_state);
switch (state->fsh.flavor) {
case x86_FLOAT_STATE32:
- EXPECT_EQ(implicit_cast<int>(x86_FLOAT_STATE32_COUNT),
- state->fsh.count);
+ EXPECT_EQ(implicit_cast<uint32_t>(x86_FLOAT_STATE32_COUNT),
+ implicit_cast<uint32_t>(state->fsh.count));
break;
case x86_FLOAT_STATE64:
- EXPECT_EQ(implicit_cast<int>(x86_FLOAT_STATE64_COUNT),
- state->fsh.count);
+ EXPECT_EQ(implicit_cast<uint32_t>(x86_FLOAT_STATE64_COUNT),
+ implicit_cast<uint32_t>(state->fsh.count));
break;
default:
ADD_FAILURE() << "unexpected fsh.flavor " << state->fsh.flavor;
@@ -168,12 +168,12 @@ class TestSimulateCrashMac final : public MachMultiprocess,
reinterpret_cast<const x86_debug_state*>(old_state);
switch (state->dsh.flavor) {
case x86_DEBUG_STATE32:
- EXPECT_EQ(implicit_cast<int>(x86_DEBUG_STATE32_COUNT),
- state->dsh.count);
+ EXPECT_EQ(implicit_cast<uint32_t>(x86_DEBUG_STATE32_COUNT),
+ implicit_cast<uint32_t>(state->dsh.count));
break;
case x86_DEBUG_STATE64:
- EXPECT_EQ(implicit_cast<int>(x86_DEBUG_STATE64_COUNT),
- state->dsh.count);
+ EXPECT_EQ(implicit_cast<uint32_t>(x86_DEBUG_STATE64_COUNT),
+ implicit_cast<uint32_t>(state->dsh.count));
break;
default:
ADD_FAILURE() << "unexpected dsh.flavor " << state->dsh.flavor;
diff --git a/crashpad.gyp b/crashpad.gyp
index 42fe0a26..d8af1bf1 100644
--- a/crashpad.gyp
+++ b/crashpad.gyp
@@ -25,7 +25,7 @@
'minidump/minidump.gyp:*',
'minidump/minidump_test.gyp:*',
'snapshot/snapshot.gyp:*',
- 'snapshot/snapshot_test.gyp:*',
+# 'snapshot/snapshot_test.gyp:*',
'test/test.gyp:*',
'test/test_test.gyp:*',
'tools/tools.gyp:*',

View File

@@ -1,28 +0,0 @@
diff --git a/build/common.gypi b/build/common.gypi
index 1affc70..0677e4b 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -66,6 +66,13 @@
'conditions': [
['clang!=0', {
'CLANG_CXX_LANGUAGE_STANDARD': 'c++11', # -std=c++11
+ 'OTHER_CPLUSPLUSFLAGS': [ '-nostdinc++' ],
+ 'OTHER_LDFLAGS': [
+ '/usr/local/macold/lib/libc++.a',
+ '/usr/local/macold/lib/libc++abi.a',
+ '-isysroot/',
+ '-L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib/',
+ ],
# Don't link in libarclite_macosx.a, see http://crbug.com/156530.
'CLANG_LINK_OBJC_RUNTIME': 'NO', # -fno-objc-link-runtime
@@ -116,6 +123,9 @@
],
},
+ 'include_dirs': [
+ '/usr/local/macold/include/c++/v1',
+ ],
}],
['OS=="linux"', {

View File

@@ -1,844 +0,0 @@
diff --git a/configure b/configure
index cb8d78fd3c..cadb3f0a88 100755
--- a/configure
+++ b/configure
@@ -511,7 +511,8 @@ if [ "$BUILD_ON_MAC" = "yes" ]; then
exit 2
fi
- if ! /usr/bin/xcrun -find xcrun >/dev/null 2>&1; then
+ # Patch: Fix Qt for working with Xcode 8.
+ if ! /usr/bin/xcrun -find xcodebuild >/dev/null 2>&1; then
echo >&2
echo " Xcode not set up properly. You may need to confirm the license" >&2
echo " agreement by running /usr/bin/xcodebuild without arguments." >&2
diff --git a/mkspecs/common/g++-macx.conf b/mkspecs/common/g++-macx.conf
index 086510dd96..078a5ed1dd 100644
--- a/mkspecs/common/g++-macx.conf
+++ b/mkspecs/common/g++-macx.conf
@@ -14,7 +14,13 @@ QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO += -gdwarf-2
QMAKE_CXXFLAGS_RELEASE_WITH_DEBUGINFO += -gdwarf-2
QMAKE_LFLAGS_RELEASE_WITH_DEBUGINFO += -g -gdwarf-2
-QMAKE_LFLAGS_STATIC_LIB += -all_load
+# Patch: Don't remember :(
+#QMAKE_LFLAGS_STATIC_LIB += -all_load
+
+# Patch: Use C++14 with custom libc++ build.
+QMAKE_CXXFLAGS_CXX11 = -std=c++1y
+QMAKE_CXXFLAGS += -nostdinc++ -I/usr/local/macold/include/c++/v1
+QMAKE_LFLAGS += /usr/local/macold/lib/libc++.a /usr/local/macold/lib/libc++abi.a -isysroot /
QMAKE_XCODE_GCC_VERSION = com.apple.compilers.llvmgcc42
diff --git a/mkspecs/features/mac/default_pre.prf b/mkspecs/features/mac/default_pre.prf
index 0cc8cd6dfd..ca9725b779 100644
--- a/mkspecs/features/mac/default_pre.prf
+++ b/mkspecs/features/mac/default_pre.prf
@@ -12,7 +12,9 @@ isEmpty(QMAKE_XCODE_DEVELOPER_PATH) {
error("Xcode is not installed in $${QMAKE_XCODE_DEVELOPER_PATH}. Please use xcode-select to choose Xcode installation path.")
# Make sure Xcode is set up properly
- isEmpty($$list($$system("/usr/bin/xcrun -find xcrun 2>/dev/null"))): \
+
+ # Patch: Fix Qt for working with Xcode 8.
+ isEmpty($$list($$system("/usr/bin/xcrun -find xcodebuild 2>/dev/null"))): \
error("Xcode not set up properly. You may need to confirm the license agreement by running /usr/bin/xcodebuild.")
}
diff --git a/src/gui/image/qbmphandler.cpp b/src/gui/image/qbmphandler.cpp
index bb79a139b3..5d595bc3b3 100644
--- a/src/gui/image/qbmphandler.cpp
+++ b/src/gui/image/qbmphandler.cpp
@@ -220,6 +220,10 @@ static bool read_dib_body(QDataStream &s, const BMP_INFOHDR &bi, int offset, int
int blue_scale = 0;
int alpha_scale = 0;
+ // Patch: Backport a fix for bmp reader.
+ if (!d->isSequential())
+ d->seek(startpos + BMP_FILEHDR_SIZE + (bi.biSize >= BMP_WIN4? BMP_WIN : bi.biSize)); // goto start of colormap
+
if (bi.biSize >= BMP_WIN4 || (comp == BMP_BITFIELDS && (nbits == 16 || nbits == 32))) {
if (d->read((char *)&red_mask, sizeof(red_mask)) != sizeof(red_mask))
return false;
@@ -307,8 +311,9 @@ static bool read_dib_body(QDataStream &s, const BMP_INFOHDR &bi, int offset, int
image.setDotsPerMeterX(bi.biXPelsPerMeter);
image.setDotsPerMeterY(bi.biYPelsPerMeter);
- if (!d->isSequential())
- d->seek(startpos + BMP_FILEHDR_SIZE + (bi.biSize >= BMP_WIN4? BMP_WIN : bi.biSize)); // goto start of colormap
+ // Patch: Backport a fix for bmp reader.
+ //if (!d->isSequential())
+ // d->seek(startpos + BMP_FILEHDR_SIZE + (bi.biSize >= BMP_WIN4? BMP_WIN : bi.biSize)); // goto start of colormap
if (ncols > 0) { // read color table
uchar rgb[4];
diff --git a/src/gui/painting/qpaintengine_p.h b/src/gui/painting/qpaintengine_p.h
index ebff9509ab..4300ca4c0f 100644
--- a/src/gui/painting/qpaintengine_p.h
+++ b/src/gui/painting/qpaintengine_p.h
@@ -87,8 +87,18 @@ public:
if (hasSystemTransform) {
if (systemTransform.type() <= QTransform::TxTranslate)
systemClip.translate(qRound(systemTransform.dx()), qRound(systemTransform.dy()));
- else
+ // Patch: Transform the system clip region back from device pixels to device-independent pixels before
+ // applying systemTransform, which already has transform from device-independent pixels to device pixels.
+ else {
+#ifdef Q_OS_MAC
+ QTransform scaleTransform;
+ const qreal invDevicePixelRatio = 1. / pdev->devicePixelRatio();
+ scaleTransform.scale(invDevicePixelRatio, invDevicePixelRatio);
+ systemClip = systemTransform.map(scaleTransform.map(systemClip));
+#else
systemClip = systemTransform.map(systemClip);
+#endif
+ }
}
// Make sure we're inside the viewport.
diff --git a/src/gui/text/qtextlayout.cpp b/src/gui/text/qtextlayout.cpp
index 4879ae51d7..56cdcbaf01 100644
--- a/src/gui/text/qtextlayout.cpp
+++ b/src/gui/text/qtextlayout.cpp
@@ -654,6 +654,9 @@ int QTextLayout::nextCursorPosition(int oldPos, CursorMode mode) const
while (oldPos < len && !attributes[oldPos].graphemeBoundary)
oldPos++;
} else {
+ // Patch: Skip to the end of the current word, not to the start of the next one.
+ while (oldPos < len && attributes[oldPos].whiteSpace)
+ oldPos++;
if (oldPos < len && d->atWordSeparator(oldPos)) {
oldPos++;
while (oldPos < len && d->atWordSeparator(oldPos))
@@ -662,8 +665,9 @@ int QTextLayout::nextCursorPosition(int oldPos, CursorMode mode) const
while (oldPos < len && !d->atSpace(oldPos) && !d->atWordSeparator(oldPos))
oldPos++;
}
- while (oldPos < len && d->atSpace(oldPos))
- oldPos++;
+ // Patch: Skip to the end of the current word, not to the start of the next one.
+ //while (oldPos < len && d->atSpace(oldPos))
+ // oldPos++;
}
return oldPos;
@@ -1602,6 +1606,9 @@ namespace {
int currentPosition;
glyph_t previousGlyph;
+ // Patch: Backport a crash fix.
+ QFontEngine *previousGlyphFontEngine;
+
QFixed minw;
QFixed softHyphenWidth;
QFixed rightBearing;
@@ -1634,13 +1641,19 @@ namespace {
if (currentPosition > 0 &&
logClusters[currentPosition - 1] < glyphs.numGlyphs) {
previousGlyph = currentGlyph(); // needed to calculate right bearing later
+
+ // Patch: Backport a crash fix.
+ previousGlyphFontEngine = fontEngine;
}
}
- inline void adjustRightBearing(glyph_t glyph)
+ // Patch: Backport a crash fix.
+ inline void adjustRightBearing(QFontEngine *engine, glyph_t glyph)
{
qreal rb;
- fontEngine->getGlyphBearings(glyph, 0, &rb);
+
+ // Patch: Backport a crash fix.
+ engine->getGlyphBearings(glyph, 0, &rb);
rightBearing = qMin(QFixed(), QFixed::fromReal(rb));
}
@@ -1648,13 +1661,16 @@ namespace {
{
if (currentPosition <= 0)
return;
- adjustRightBearing(currentGlyph());
+
+ // Patch: Backport a crash fix.
+ adjustRightBearing(fontEngine, currentGlyph());
}
inline void adjustPreviousRightBearing()
{
if (previousGlyph > 0)
- adjustRightBearing(previousGlyph);
+ // Patch: Backport a crash fix.
+ adjustRightBearing(previousGlyphFontEngine, previousGlyph);
}
inline void resetRightBearing()
diff --git a/src/gui/text/qtextlayout.h b/src/gui/text/qtextlayout.h
index cbe42c3844..b273db7e78 100644
--- a/src/gui/text/qtextlayout.h
+++ b/src/gui/text/qtextlayout.h
@@ -194,6 +194,9 @@ private:
QRectF *brect, int tabstops, int* tabarray, int tabarraylen,
QPainter *painter);
QTextEngine *d;
+
+ // Patch: Give access to the internal api.
+ friend class TextBlock;
};
diff --git a/src/network/access/qhttpnetworkconnection.cpp b/src/network/access/qhttpnetworkconnection.cpp
index 360f9722c7..f28f289ef6 100644
--- a/src/network/access/qhttpnetworkconnection.cpp
+++ b/src/network/access/qhttpnetworkconnection.cpp
@@ -118,6 +118,8 @@ QHttpNetworkConnectionPrivate::~QHttpNetworkConnectionPrivate()
{
for (int i = 0; i < channelCount; ++i) {
if (channels[i].socket) {
+ // Patch: backport critical bugfix from '4f959b6b30' commit.
+ QObject::disconnect(channels[i].socket, Q_NULLPTR, &channels[i], Q_NULLPTR);
channels[i].socket->close();
delete channels[i].socket;
}
diff --git a/src/platformsupport/fontdatabases/mac/qcoretextfontdatabase.mm b/src/platformsupport/fontdatabases/mac/qcoretextfontdatabase.mm
index ca7afb7d1b..25ae50008d 100644
--- a/src/platformsupport/fontdatabases/mac/qcoretextfontdatabase.mm
+++ b/src/platformsupport/fontdatabases/mac/qcoretextfontdatabase.mm
@@ -256,6 +256,13 @@ static void getFontDescription(CTFontDescriptorRef font, FontDescription *fd)
fd->foundryName = QStringLiteral("CoreText");
fd->familyName = (CFStringRef) CTFontDescriptorCopyAttribute(font, kCTFontFamilyNameAttribute);
+
+ // Patch: Fix open sans semibold loading.
+ QCFString _displayName = (CFStringRef) CTFontDescriptorCopyAttribute(font, kCTFontDisplayNameAttribute);
+ if (_displayName == QStringLiteral("Open Sans Semibold")) {
+ fd->familyName = _displayName;
+ }
+
fd->styleName = (CFStringRef)CTFontDescriptorCopyAttribute(font, kCTFontStyleNameAttribute);
fd->weight = QFont::Normal;
fd->style = QFont::StyleNormal;
diff --git a/src/platformsupport/fontdatabases/mac/qfontengine_coretext.mm b/src/platformsupport/fontdatabases/mac/qfontengine_coretext.mm
index 6e2c8a2a9a..3cace8abcb 100644
--- a/src/platformsupport/fontdatabases/mac/qfontengine_coretext.mm
+++ b/src/platformsupport/fontdatabases/mac/qfontengine_coretext.mm
@@ -717,7 +717,8 @@ void QCoreTextFontEngine::getUnscaledGlyph(glyph_t, QPainterPath *, glyph_metric
QFixed QCoreTextFontEngine::emSquareSize() const
{
- return QFixed::QFixed(int(CTFontGetUnitsPerEm(ctfont)));
+ // Patch: Fix build for Xcode 9.3.1.
+ return QFixed(int(CTFontGetUnitsPerEm(ctfont)));
}
QFontEngine *QCoreTextFontEngine::cloneWithSize(qreal pixelSize) const
diff --git a/src/plugins/platforms/cocoa/qcocoaapplicationdelegate.mm b/src/plugins/platforms/cocoa/qcocoaapplicationdelegate.mm
index 92358ecc74..694fee7350 100644
--- a/src/plugins/platforms/cocoa/qcocoaapplicationdelegate.mm
+++ b/src/plugins/platforms/cocoa/qcocoaapplicationdelegate.mm
@@ -213,7 +213,8 @@ static void cleanupCocoaApplicationDelegate()
if (reflectionDelegate) {
if ([reflectionDelegate respondsToSelector:@selector(applicationShouldTerminate:)])
return [reflectionDelegate applicationShouldTerminate:sender];
- return NSTerminateNow;
+ // Patch: Don't terminate if reflectionDelegate does not respond to that selector, just use the default.
+ //return NSTerminateNow;
}
if ([self canQuit]) {
@@ -289,6 +290,11 @@ static void cleanupCocoaApplicationDelegate()
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
{
+ // Patch: We need to receive this notification in the delegate as well.
+ if (reflectionDelegate
+ && [reflectionDelegate respondsToSelector:@selector(applicationDidFinishLaunching:)])
+ [reflectionDelegate applicationDidFinishLaunching:aNotification];
+
Q_UNUSED(aNotification);
inLaunch = false;
// qt_release_apple_event_handler();
@@ -411,7 +417,9 @@ static void cleanupCocoaApplicationDelegate()
{
Q_UNUSED(replyEvent);
NSString *urlString = [[event paramDescriptorForKeyword:keyDirectObject] stringValue];
- QWindowSystemInterface::handleFileOpenEvent(QUrl(QCFString::toQString(urlString)));
+
+ // Patch: Fix opening of an external url by a protocol handler.
+ QWindowSystemInterface::handleFileOpenEvent(QUrl::fromNSURL([NSURL URLWithString:urlString]));
}
- (void)appleEventQuit:(NSAppleEventDescriptor *)event withReplyEvent:(NSAppleEventDescriptor *)replyEvent
diff --git a/src/plugins/platforms/cocoa/qcocoacursor.mm b/src/plugins/platforms/cocoa/qcocoacursor.mm
index b81b9a0b1c..4e59e833b1 100644
--- a/src/plugins/platforms/cocoa/qcocoacursor.mm
+++ b/src/plugins/platforms/cocoa/qcocoacursor.mm
@@ -81,7 +81,7 @@ void QCocoaCursor::setPos(const QPoint &position)
pos.x = position.x();
pos.y = position.y();
- CGEventRef e = CGEventCreateMouseEvent(0, kCGEventMouseMoved, pos, 0);
+ CGEventRef e = CGEventCreateMouseEvent(0, kCGEventMouseMoved, pos, kCGMouseButtonLeft);
CGEventPost(kCGHIDEventTap, e);
CFRelease(e);
}
diff --git a/src/plugins/platforms/cocoa/qcocoahelpers.mm b/src/plugins/platforms/cocoa/qcocoahelpers.mm
index 9850f83dea..b2e1d3dfda 100644
--- a/src/plugins/platforms/cocoa/qcocoahelpers.mm
+++ b/src/plugins/platforms/cocoa/qcocoahelpers.mm
@@ -649,9 +649,10 @@ OSStatus qt_mac_drawCGImage(CGContextRef inContext, const CGRect *inBounds, CGIm
// Verbatim copy if HIViewDrawCGImage (as shown on Carbon-Dev)
OSStatus err = noErr;
- require_action(inContext != NULL, InvalidContext, err = paramErr);
- require_action(inBounds != NULL, InvalidBounds, err = paramErr);
- require_action(inImage != NULL, InvalidImage, err = paramErr);
+ // Patch: Fix build on latest Xcode.
+ //require_action(inContext != NULL, InvalidContext, err = paramErr);
+ //require_action(inBounds != NULL, InvalidBounds, err = paramErr);
+ //require_action(inImage != NULL, InvalidImage, err = paramErr);
CGContextSaveGState( inContext );
CGContextTranslateCTM (inContext, 0, inBounds->origin.y + CGRectGetMaxY(*inBounds));
@@ -660,9 +661,11 @@ OSStatus qt_mac_drawCGImage(CGContextRef inContext, const CGRect *inBounds, CGIm
CGContextDrawImage(inContext, *inBounds, inImage);
CGContextRestoreGState(inContext);
-InvalidImage:
-InvalidBounds:
-InvalidContext:
+
+// Patch: Fix build on latest Xcode.
+//InvalidImage:
+//InvalidBounds:
+//InvalidContext:
return err;
}
diff --git a/src/plugins/platforms/cocoa/qcocoaintegration.mm b/src/plugins/platforms/cocoa/qcocoaintegration.mm
index 9fd05a65ee..dea60720e7 100644
--- a/src/plugins/platforms/cocoa/qcocoaintegration.mm
+++ b/src/plugins/platforms/cocoa/qcocoaintegration.mm
@@ -402,14 +402,24 @@ void QCocoaIntegration::updateScreens()
}
siblings << screen;
}
+
+ // Patch: Backport crash fix from Qt 5.6.1.
+ // Set virtual siblings list. All screens in mScreens are siblings, because we ignored the
+ // mirrors. Note that some of the screens we update the siblings list for here may be deleted
+ // below, but update anyway to keep the to-be-deleted screens out of the siblings list.
+ foreach (QCocoaScreen* screen, mScreens)
+ screen->setVirtualSiblings(siblings);
+
// Now the leftovers in remainingScreens are no longer current, so we can delete them.
foreach (QCocoaScreen* screen, remainingScreens) {
mScreens.removeOne(screen);
delete screen;
}
+
+ // Patch: Backport crash fix from Qt 5.6.1.
// All screens in mScreens are siblings, because we ignored the mirrors.
- foreach (QCocoaScreen* screen, mScreens)
- screen->setVirtualSiblings(siblings);
+ //foreach (QCocoaScreen* screen, mScreens)
+ // screen->setVirtualSiblings(siblings);
}
QCocoaScreen *QCocoaIntegration::screenAtIndex(int index)
diff --git a/src/plugins/platforms/cocoa/qcocoakeymapper.mm b/src/plugins/platforms/cocoa/qcocoakeymapper.mm
index e46eaff6be..c62db534a2 100644
--- a/src/plugins/platforms/cocoa/qcocoakeymapper.mm
+++ b/src/plugins/platforms/cocoa/qcocoakeymapper.mm
@@ -382,6 +382,12 @@ bool QCocoaKeyMapper::updateKeyboard()
keyboardInputLocale = QLocale::c();
keyboardInputDirection = Qt::LeftToRight;
}
+
+ // Patch: Backport a fix for layout-independent keyboard shortcuts.
+ const auto newMode = keyboard_mode;
+ deleteLayouts();
+ keyboard_mode = newMode;
+
return true;
}
@@ -464,7 +470,8 @@ QList<int> QCocoaKeyMapper::possibleKeys(const QKeyEvent *event) const
Qt::KeyboardModifiers neededMods = ModsTbl[i];
int key = kbItem->qtKey[i];
if (key && key != baseKey && ((keyMods & neededMods) == neededMods)) {
- ret << int(key + (keyMods & ~neededMods));
+ // Patch: Backport a fix for layout-independent keyboard shortcuts.
+ ret << int(key + neededMods);
}
}
return ret;
diff --git a/src/plugins/platforms/cocoa/qcocoasystemtrayicon.mm b/src/plugins/platforms/cocoa/qcocoasystemtrayicon.mm
index 83c960d931..03ae9696af 100755
--- a/src/plugins/platforms/cocoa/qcocoasystemtrayicon.mm
+++ b/src/plugins/platforms/cocoa/qcocoasystemtrayicon.mm
@@ -102,7 +102,10 @@ QT_USE_NAMESPACE
QCocoaSystemTrayIcon *systray;
NSStatusItem *item;
QCocoaMenu *menu;
- bool menuVisible;
+
+ // Patch: Nice macOS tray icon support.
+ bool menuVisible, iconSelected;
+
QIcon icon;
QT_MANGLE_NAMESPACE(QNSImageView) *imageCell;
}
@@ -124,6 +127,10 @@ QT_USE_NAMESPACE
QT_MANGLE_NAMESPACE(QNSStatusItem) *parent;
}
-(id)initWithParent:(QT_MANGLE_NAMESPACE(QNSStatusItem)*)myParent;
+
+// Patch: Nice macOS tray icon support.
+-(void)updateIconSelection;
+
-(void)menuTrackingDone:(NSNotification*)notification;
-(void)mousePressed:(NSEvent *)mouseEvent button:(Qt::MouseButton)mouseButton;
@end
@@ -187,6 +194,19 @@ void QCocoaSystemTrayIcon::cleanup()
m_sys = 0;
}
+// Patch: Nice macOS tray icon support.
+namespace {
+
+qreal getDevicePixelRatio() {
+ qreal result = 1.0;
+ foreach (QScreen *screen, QGuiApplication::screens()) {
+ result = qMax(result, screen->devicePixelRatio());
+ }
+ return result;
+}
+
+} // namespace
+
void QCocoaSystemTrayIcon::updateIcon(const QIcon &icon)
{
if (!m_sys)
@@ -194,13 +214,18 @@ void QCocoaSystemTrayIcon::updateIcon(const QIcon &icon)
m_sys->item->icon = icon;
- const bool menuVisible = m_sys->item->menu && m_sys->item->menuVisible;
+ // Patch: Nice macOS tray icon support.
+ //const bool menuVisible = m_sys->item->menu && m_sys->item->menuVisible;
- CGFloat hgt = [[[NSApplication sharedApplication] mainMenu] menuBarHeight];
- const short scale = hgt - 4;
+ const int padding = 0;
+ const int menuHeight = [[NSStatusBar systemStatusBar] thickness];
+ const int maxImageHeight = menuHeight - padding;
+
+ const short scale = maxImageHeight * getDevicePixelRatio();
QPixmap pm = m_sys->item->icon.pixmap(QSize(scale, scale),
- menuVisible ? QIcon::Selected : QIcon::Normal);
+ // Patch: Nice macOS tray icon support.
+ m_sys->item->iconSelected ? QIcon::Selected : QIcon::Normal);
if (pm.isNull()) {
pm = QPixmap(scale, scale);
pm.fill(Qt::transparent);
@@ -322,15 +347,16 @@ QT_END_NAMESPACE
return self;
}
--(void)menuTrackingDone:(NSNotification*)notification
+// Patch: Nice macOS tray icon support.
+-(void)updateIconSelection
{
- Q_UNUSED(notification);
- down = NO;
+ const int padding = 0;
+ const int menuHeight = [[NSStatusBar systemStatusBar] thickness];
+ const int maxImageHeight = menuHeight - padding;
- CGFloat hgt = [[[NSApplication sharedApplication] mainMenu] menuBarHeight];
- const short scale = hgt - 4;
-
- QPixmap pm = parent->icon.pixmap(QSize(scale, scale), QIcon::Normal);
+ const short scale = maxImageHeight * getDevicePixelRatio();
+ QPixmap pm = parent->icon.pixmap(QSize(scale, scale),
+ parent->iconSelected ? QIcon::Selected : QIcon::Normal);
if (pm.isNull()) {
pm = QPixmap(scale, scale);
pm.fill(Qt::transparent);
@@ -338,9 +364,19 @@ QT_END_NAMESPACE
NSImage *nsaltimage = static_cast<NSImage *>(qt_mac_create_nsimage(pm));
[self setImage: nsaltimage];
[nsaltimage release];
+}
+
+-(void)menuTrackingDone:(NSNotification*)notification
+{
+ Q_UNUSED(notification);
+ down = NO;
parent->menuVisible = false;
+ // Patch: Nice macOS tray icon support.
+ parent->iconSelected = false;
+ [self updateIconSelection];
+
[self setNeedsDisplay:YES];
}
@@ -350,18 +386,9 @@ QT_END_NAMESPACE
int clickCount = [mouseEvent clickCount];
[self setNeedsDisplay:YES];
- CGFloat hgt = [[[NSApplication sharedApplication] mainMenu] menuBarHeight];
- const short scale = hgt - 4;
-
- QPixmap pm = parent->icon.pixmap(QSize(scale, scale),
- parent->menuVisible ? QIcon::Selected : QIcon::Normal);
- if (pm.isNull()) {
- pm = QPixmap(scale, scale);
- pm.fill(Qt::transparent);
- }
- NSImage *nsaltimage = static_cast<NSImage *>(qt_mac_create_nsimage(pm));
- [self setImage: nsaltimage];
- [nsaltimage release];
+ // Patch: Nice macOS tray icon support.
+ parent->iconSelected = (clickCount != 2) && parent->menu;
+ [self updateIconSelection];
if (clickCount == 2) {
[self menuTrackingDone:nil];
@@ -380,6 +407,10 @@ QT_END_NAMESPACE
{
Q_UNUSED(mouseEvent);
[self menuTrackingDone:nil];
+
+ // Patch: Nice macOS tray icon support.
+ parent->iconSelected = false;
+ [self updateIconSelection];
}
- (void)rightMouseDown:(NSEvent *)mouseEvent
@@ -391,6 +422,10 @@ QT_END_NAMESPACE
{
Q_UNUSED(mouseEvent);
[self menuTrackingDone:nil];
+
+ // Patch: Nice macOS tray icon support.
+ parent->iconSelected = false;
+ [self updateIconSelection];
}
- (void)otherMouseDown:(NSEvent *)mouseEvent
@@ -405,7 +440,8 @@ QT_END_NAMESPACE
}
-(void)drawRect:(NSRect)rect {
- [[parent item] drawStatusBarBackgroundInRect:rect withHighlight:down];
+ // Patch: Nice macOS tray icon support.
+ [[parent item] drawStatusBarBackgroundInRect:rect withHighlight:parent->menu ? down : NO];
[super drawRect:rect];
}
@end
diff --git a/src/plugins/platforms/cocoa/qcocoawindow.mm b/src/plugins/platforms/cocoa/qcocoawindow.mm
index 4d0458a4aa..3357a5ef81 100644
--- a/src/plugins/platforms/cocoa/qcocoawindow.mm
+++ b/src/plugins/platforms/cocoa/qcocoawindow.mm
@@ -167,7 +167,8 @@ static bool isMouseEvent(NSEvent *ev)
if (!self.window.delegate)
return; // Already detached, pending NSAppKitDefined event
- if (pw && pw->frameStrutEventsEnabled() && isMouseEvent(theEvent)) {
+ // Patch: Fix events loss if the window was minimized or hidden.
+ if (pw && pw->frameStrutEventsEnabled() && pw->m_synchedWindowState != Qt::WindowMinimized && pw->m_isExposed && isMouseEvent(theEvent)) {
NSPoint loc = [theEvent locationInWindow];
NSRect windowFrame = [self.window legacyConvertRectFromScreen:[self.window frame]];
NSRect contentFrame = [[self.window contentView] frame];
@@ -795,6 +796,16 @@ NSUInteger QCocoaWindow::windowStyleMask(Qt::WindowFlags flags)
{
Qt::WindowType type = static_cast<Qt::WindowType>(int(flags & Qt::WindowType_Mask));
NSInteger styleMask = NSBorderlessWindowMask;
+
+ // Patch: allow creating panels floating on all spaces in macOS.
+ // If you call "setCollectionBehavior:NSWindowCollectionBehaviorFullScreenAuxiliary" before
+ // setting the "NSNonactivatingPanelMask" bit in the style mask it won't work after that.
+ // So we need a way to set that bit before Qt sets collection behavior the way it does.
+ QVariant nonactivatingPanelMask = window()->property("_td_macNonactivatingPanelMask");
+ if (nonactivatingPanelMask.isValid() && nonactivatingPanelMask.toBool()) {
+ styleMask |= NSNonactivatingPanelMask;
+ }
+
if (flags & Qt::FramelessWindowHint)
return styleMask;
if ((type & Qt::Popup) == Qt::Popup) {
@@ -914,6 +925,19 @@ void QCocoaWindow::setWindowFilePath(const QString &filePath)
[m_nsWindow setRepresentedFilename: fi.exists() ? QCFString::toNSString(filePath) : @""];
}
+// Patch: Nice macOS window icon.
+namespace {
+
+qreal getDevicePixelRatio() {
+ qreal result = 1.0;
+ foreach (QScreen *screen, QGuiApplication::screens()) {
+ result = qMax(result, screen->devicePixelRatio());
+ }
+ return result;
+}
+
+} // namespace
+
void QCocoaWindow::setWindowIcon(const QIcon &icon)
{
QCocoaAutoReleasePool pool;
@@ -929,7 +953,10 @@ void QCocoaWindow::setWindowIcon(const QIcon &icon)
if (icon.isNull()) {
[iconButton setImage:nil];
} else {
- QPixmap pixmap = icon.pixmap(QSize(22, 22));
+ // Patch: Nice macOS window icon.
+ CGFloat hgt = 16. * getDevicePixelRatio();
+ QPixmap pixmap = icon.pixmap(QSize(hgt, hgt));
+
NSImage *image = static_cast<NSImage *>(qt_mac_create_nsimage(pixmap));
[iconButton setImage:image];
[image release];
diff --git a/src/plugins/platforms/cocoa/qnsview.mm b/src/plugins/platforms/cocoa/qnsview.mm
index a18ee7ff71..1f91feb0ae 100644
--- a/src/plugins/platforms/cocoa/qnsview.mm
+++ b/src/plugins/platforms/cocoa/qnsview.mm
@@ -393,7 +393,9 @@ static NSString *_q_NSWindowDidChangeOcclusionStateNotification = nil;
[self notifyWindowStateChanged:newState];
// NSWindowDidOrderOnScreenAndFinishAnimatingNotification is private API, and not
// emitted in 10.6, so we bring back the old behavior for that case alone.
- if (newState == Qt::WindowNoState && QSysInfo::QSysInfo::MacintoshVersion == QSysInfo::MV_10_6)
+
+ // Patch: Fix macOS window show after window was hidden.
+ if (newState == Qt::WindowNoState/* && QSysInfo::QSysInfo::MacintoshVersion == QSysInfo::MV_10_6*/)
m_platformWindow->exposeWindow();
} else if ([notificationName isEqualToString: @"NSWindowDidOrderOffScreenNotification"]) {
m_platformWindow->obscureWindow();
@@ -1300,7 +1302,9 @@ static QTabletEvent::TabletDevice wacomTabletDevice(NSEvent *theEvent)
#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_8
if (QSysInfo::QSysInfo::MacintoshVersion >= QSysInfo::MV_10_8) {
// On 10.8 and above, MayBegin is likely to happen. We treat it the same as an actual begin.
- if (phase == NSEventPhaseMayBegin)
+
+ // Patch: Actual begin should be treated as begin as well.
+ if (phase == NSEventPhaseMayBegin || phase == NSEventPhaseBegan)
ph = Qt::ScrollBegin;
} else
#endif
@@ -1366,14 +1370,22 @@ static QTabletEvent::TabletDevice wacomTabletDevice(NSEvent *theEvent)
quint32 nativeVirtualKey = [nsevent keyCode];
QChar ch = QChar::ReplacementCharacter;
- int keyCode = Qt::Key_unknown;
- if ([characters length] != 0) {
- if (((modifiers & Qt::MetaModifier) || (modifiers & Qt::AltModifier)) && ([charactersIgnoringModifiers length] != 0))
- ch = QChar([charactersIgnoringModifiers characterAtIndex:0]);
- else
- ch = QChar([characters characterAtIndex:0]);
- keyCode = [self convertKeyCode:ch];
- }
+
+ // Patch: Backport a fix for layout-independent shortcuts.
+ if ([characters length] != 0) // https://bugreports.qt.io/browse/QTBUG-42584
+ ch = QChar([characters characterAtIndex:0]);
+ else if ([charactersIgnoringModifiers length] != 0 && ((modifiers & Qt::MetaModifier) || (modifiers & Qt::AltModifier)))
+ ch = QChar([charactersIgnoringModifiers characterAtIndex:0]);
+
+ int keyCode = [self convertKeyCode:ch];
+ //int keyCode = Qt::Key_unknown;
+ //if ([characters length] != 0) {
+ // if (((modifiers & Qt::MetaModifier) || (modifiers & Qt::AltModifier)) && ([charactersIgnoringModifiers length] != 0))
+ // ch = QChar([charactersIgnoringModifiers characterAtIndex:0]);
+ // else
+ // ch = QChar([characters characterAtIndex:0]);
+ // keyCode = [self convertKeyCode:ch];
+ //}
// we will send a key event unless the input method sets m_sendKeyEvent to false
m_sendKeyEvent = true;
@@ -1437,6 +1449,11 @@ static QTabletEvent::TabletDevice wacomTabletDevice(NSEvent *theEvent)
&& qtKey == Qt::Key_Period) {
[self handleKeyEvent:nsevent eventType:int(QEvent::KeyPress)];
return YES;
+
+ // Patch: Allow us to handle Ctrl+Tab and Ctrl+Backtab in the app.
+ } else if ([nsevent modifierFlags] & NSControlKeyMask && (qtKey == Qt::Key_Tab || qtKey == Qt::Key_Backtab)) {
+ [self handleKeyEvent:nsevent eventType:int(QEvent::KeyPress)];
+ return YES;
}
}
return [super performKeyEquivalent:nsevent];
diff --git a/src/tools/qlalr/lalr.cpp b/src/tools/qlalr/lalr.cpp
index c68076477f..e2a7aafa58 100644
--- a/src/tools/qlalr/lalr.cpp
+++ b/src/tools/qlalr/lalr.cpp
@@ -246,11 +246,13 @@ void Grammar::buildExtendedGrammar ()
non_terminals.insert (accept_symbol);
}
-struct _Nullable: public std::unary_function<Name, bool>
+// Patch: Fix building with the new SDK.
+struct __Nullable: public std::unary_function<Name, bool>
{
Automaton *_M_automaton;
- _Nullable (Automaton *aut):
+ // Patch: Fix building with the new SDK.
+ __Nullable (Automaton *aut):
_M_automaton (aut) {}
bool operator () (Name name) const
@@ -308,7 +310,8 @@ void Automaton::buildNullables ()
for (RulePointer rule = _M_grammar->rules.begin (); rule != _M_grammar->rules.end (); ++rule)
{
- NameList::iterator nn = std::find_if (rule->rhs.begin (), rule->rhs.end (), std::not1 (_Nullable (this)));
+ // Patch: Fix building with the new SDK.
+ NameList::iterator nn = std::find_if (rule->rhs.begin (), rule->rhs.end (), std::not1 (__Nullable (this)));
if (nn == rule->rhs.end ())
changed |= nullables.insert (rule->lhs).second;
@@ -643,7 +646,8 @@ void Automaton::buildIncludesDigraph ()
if (! _M_grammar->isNonTerminal (*A))
continue;
- NameList::iterator first_not_nullable = std::find_if (dot, rule->rhs.end (), std::not1 (_Nullable (this)));
+ // Patch: Fix building with the new SDK.
+ NameList::iterator first_not_nullable = std::find_if (dot, rule->rhs.end (), std::not1 (__Nullable (this)));
if (first_not_nullable != rule->rhs.end ())
continue;
diff --git a/src/widgets/kernel/qwidget.cpp b/src/widgets/kernel/qwidget.cpp
index 7396808442..7178aecf80 100644
--- a/src/widgets/kernel/qwidget.cpp
+++ b/src/widgets/kernel/qwidget.cpp
@@ -4722,6 +4722,17 @@ void QWidget::render(QPainter *painter, const QPoint &targetOffset,
return; // Fully transparent.
Q_D(QWidget);
+
+ // Patch: save and restore dirtyOpaqueChildren field.
+ //
+ // Just like in QWidget::grab() this field should be restored
+ // after the d->render() call, because it will be set to 1 and
+ // opaqueChildren field will be filled with empty region in
+ // case the widget is hidden (because all the opaque children
+ // will be skipped in isVisible() check).
+ //
+ const bool oldDirtyOpaqueChildren = d->dirtyOpaqueChildren;
+
const bool inRenderWithPainter = d->extra && d->extra->inRenderWithPainter;
const QRegion toBePainted = !inRenderWithPainter ? d->prepareToRender(sourceRegion, renderFlags)
: sourceRegion;
@@ -4743,6 +4754,10 @@ void QWidget::render(QPainter *painter, const QPoint &targetOffset,
if (!inRenderWithPainter && (opacity < 1.0 || (target->devType() == QInternal::Printer))) {
d->render_helper(painter, targetOffset, toBePainted, renderFlags);
d->extra->inRenderWithPainter = inRenderWithPainter;
+
+ // Patch: save and restore dirtyOpaqueChildren field.
+ d->dirtyOpaqueChildren = oldDirtyOpaqueChildren;
+
return;
}
@@ -4774,6 +4789,9 @@ void QWidget::render(QPainter *painter, const QPoint &targetOffset,
d->setSharedPainter(oldPainter);
d->extra->inRenderWithPainter = inRenderWithPainter;
+
+ // Patch: save and restore dirtyOpaqueChildren field.
+ d->dirtyOpaqueChildren = oldDirtyOpaqueChildren;
}
static void sendResizeEvents(QWidget *target)
@@ -7983,7 +8001,8 @@ bool QWidget::event(QEvent *event)
case QEvent::KeyPress: {
QKeyEvent *k = (QKeyEvent *)event;
bool res = false;
- if (!(k->modifiers() & (Qt::ControlModifier | Qt::AltModifier))) { //### Add MetaModifier?
+ // Patch: Allow us to handle Ctrl+Tab and Ctrl+Backtab in the app.
+ if (!(k->modifiers() & (Qt::ControlModifier | Qt::AltModifier | Qt::MetaModifier))) { //### Add MetaModifier?
if (k->key() == Qt::Key_Backtab
|| (k->key() == Qt::Key_Tab && (k->modifiers() & Qt::ShiftModifier)))
res = focusNextPrevChild(false);
diff --git a/src/widgets/styles/qmacstyle_mac.mm b/src/widgets/styles/qmacstyle_mac.mm
index 0845a5eb02..5735cb6b39 100644
--- a/src/widgets/styles/qmacstyle_mac.mm
+++ b/src/widgets/styles/qmacstyle_mac.mm
@@ -3667,9 +3667,11 @@ void QMacStyle::drawControl(ControlElement ce, const QStyleOption *opt, QPainter
NSBezierPath *pushButtonFocusRingPath;
if (bdi.kind == kThemeBevelButton)
- pushButtonFocusRingPath = [NSBezierPath bezierPathWithRect:focusRect];
+ // Patch: Fix building with the new SDK.
+ pushButtonFocusRingPath = [NSBezierPath bezierPathWithRect:NSRectFromCGRect(focusRect)];
else
- pushButtonFocusRingPath = [NSBezierPath bezierPathWithRoundedRect:focusRect xRadius:4 yRadius:4];
+ // Patch: Fix building with the new SDK.
+ pushButtonFocusRingPath = [NSBezierPath bezierPathWithRoundedRect:NSRectFromCGRect(focusRect) xRadius:4 yRadius:4];
qt_drawFocusRingOnPath(cg, pushButtonFocusRingPath);
}
diff --git a/src/widgets/util/qsystemtrayicon_qpa.cpp b/src/widgets/util/qsystemtrayicon_qpa.cpp
index f98aeaf678..00c0734129 100644
--- a/src/widgets/util/qsystemtrayicon_qpa.cpp
+++ b/src/widgets/util/qsystemtrayicon_qpa.cpp
@@ -99,13 +99,18 @@ void QSystemTrayIconPrivate::updateIcon_sys()
void QSystemTrayIconPrivate::updateMenu_sys()
{
- if (qpa_sys && menu) {
- if (!menu->platformMenu()) {
- QPlatformMenu *platformMenu = qpa_sys->createMenu();
- if (platformMenu)
- menu->setPlatformMenu(platformMenu);
+ // Patch: Nice macOS tray icon support.
+ if (qpa_sys) {
+ if (menu) {
+ if (!menu->platformMenu()) {
+ QPlatformMenu *platformMenu = qpa_sys->createMenu();
+ if (platformMenu)
+ menu->setPlatformMenu(platformMenu);
+ }
+ qpa_sys->updateMenu(menu->platformMenu());
+ } else {
+ qpa_sys->updateMenu(0);
}
- qpa_sys->updateMenu(menu->platformMenu());
}
}
diff --git a/src/widgets/widgets/qwidgetlinecontrol.cpp b/src/widgets/widgets/qwidgetlinecontrol.cpp
index 75f30599be..980f2be1e9 100644
--- a/src/widgets/widgets/qwidgetlinecontrol.cpp
+++ b/src/widgets/widgets/qwidgetlinecontrol.cpp
@@ -1867,7 +1867,8 @@ void QWidgetLineControl::processKeyEvent(QKeyEvent* event)
if (unknown && !isReadOnly()) {
QString t = event->text();
- if (!t.isEmpty() && t.at(0).isPrint()) {
+ // Patch: Enable ZWJ and ZWNJ characters to be in text input.
+ if (!t.isEmpty() && (t.at(0).isPrint() || t.at(0).unicode() == 0x200C || t.at(0).unicode() == 0x200D)) {
insert(t);
#ifndef QT_NO_COMPLETER
complete(event->key());
diff --git a/src/widgets/widgets/qwidgettextcontrol.cpp b/src/widgets/widgets/qwidgettextcontrol.cpp
index 96438a0bdf..b0b7206405 100644
--- a/src/widgets/widgets/qwidgettextcontrol.cpp
+++ b/src/widgets/widgets/qwidgettextcontrol.cpp
@@ -1342,7 +1342,8 @@ void QWidgetTextControlPrivate::keyPressEvent(QKeyEvent *e)
process:
{
QString text = e->text();
- if (!text.isEmpty() && (text.at(0).isPrint() || text.at(0) == QLatin1Char('\t'))) {
+ // Patch: Enable ZWJ and ZWNJ characters to be in text input.
+ if (!text.isEmpty() && (text.at(0).isPrint() || text.at(0) == QLatin1Char('\t') || text.at(0).unicode() == 0x200C || text.at(0).unicode() == 0x200D)) {
if (overwriteMode
// no need to call deleteChar() if we have a selection, insertText
// does it already

View File

@@ -1,47 +0,0 @@
diff --git a/src/3rdparty/libwebp/src/dec/vp8l.c b/src/3rdparty/libwebp/src/dec/vp8l.c
index ea0254d..953ff01 100644
--- a/src/3rdparty/libwebp/src/dec/vp8l.c
+++ b/src/3rdparty/libwebp/src/dec/vp8l.c
@@ -12,7 +12,7 @@
// Authors: Vikas Arora (vikaas.arora@gmail.com)
// Jyrki Alakuijala (jyrki@google.com)
-#include <stdio.h>
+// Patch: Backport of a crash fix.
#include <stdlib.h>
#include "./alphai.h"
#include "./vp8li.h"
@@ -740,6 +740,10 @@ static int DecodeAlphaData(VP8LDecoder* const dec, uint8_t* const data,
const int len_code_limit = NUM_LITERAL_CODES + NUM_LENGTH_CODES;
const int mask = hdr->huffman_mask_;
assert(htree_group != NULL);
+
+ // Patch: Backport of a crash fix.
+ assert(pos < end);
+
assert(last_row <= height);
assert(Is8bOptimizable(hdr));
@@ -830,6 +834,10 @@ static int DecodeImageData(VP8LDecoder* const dec, uint32_t* const data,
(hdr->color_cache_size_ > 0) ? &hdr->color_cache_ : NULL;
const int mask = hdr->huffman_mask_;
assert(htree_group != NULL);
+
+ // Patch: Backport of a crash fix.
+ assert(src < src_end);
+
assert(src_last <= src_end);
while (!br->eos_ && src < src_last) {
@@ -1294,6 +1302,11 @@ int VP8LDecodeAlphaImageStream(ALPHDecoder* const alph_dec, int last_row) {
assert(dec->action_ == READ_DATA);
assert(last_row <= dec->height_);
+ // Patch: Backport of a crash fix.
+ if (dec->last_pixel_ == dec->width_ * dec->height_) {
+ return 1; // done
+ }
+
// Decode (with special row processing).
return alph_dec->use_8b_decode ?
DecodeAlphaData(dec, (uint8_t*)dec->pixels_, dec->width_, dec->height_,

View File

@@ -1,52 +0,0 @@
diff --git a/base/mac/scoped_nsobject.h b/base/mac/scoped_nsobject.h
index 2e157a4..5a306a1 100644
--- a/base/mac/scoped_nsobject.h
+++ b/base/mac/scoped_nsobject.h
@@ -11,6 +11,7 @@
#include "base/compiler_specific.h"
#include "base/mac/scoped_typeref.h"
+#include "base/template_util.h"
namespace base {
@@ -55,7 +56,7 @@ class scoped_nsobject : public scoped_nsprotocol<NST*> {
public:
using scoped_nsprotocol<NST*>::scoped_nsprotocol;
- static_assert(std::is_same<NST, NSAutoreleasePool>::value == false,
+ static_assert(is_same<NST, NSAutoreleasePool>::value == false,
"Use ScopedNSAutoreleasePool instead");
};
diff --git a/base/macros.h b/base/macros.h
index 5d96783..096704c 100644
--- a/base/macros.h
+++ b/base/macros.h
@@ -42,8 +42,9 @@ char (&ArraySizeHelper(const T (&array)[N]))[N];
template <typename Dest, typename Source>
inline Dest bit_cast(const Source& source) {
+#if __cplusplus >= 201103L
static_assert(sizeof(Dest) == sizeof(Source), "sizes must be equal");
-
+#endif
Dest dest;
memcpy(&dest, &source, sizeof(dest));
return dest;
diff --git a/build/common.gypi b/build/common.gypi
index 1affc70..6e8f292 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -66,6 +66,11 @@
'conditions': [
['clang!=0', {
'CLANG_CXX_LANGUAGE_STANDARD': 'c++11', # -std=c++11
+ 'conditions': [
+ ['mac_deployment_target=="10.8"', {
+ 'CLANG_CXX_LIBRARY': 'libc++', # force -stdlib=libc++ for 10.8
+ }]
+ ],
# Don't link in libarclite_macosx.a, see http://crbug.com/156530.
'CLANG_LINK_OBJC_RUNTIME': 'NO', # -fno-objc-link-runtime

View File

@@ -1,22 +0,0 @@
diff --git a/Alc/backends/winmm.c b/Alc/backends/winmm.c
index 9d8f8e9..8c8e44a 100644
--- a/Alc/backends/winmm.c
+++ b/Alc/backends/winmm.c
@@ -219,7 +219,7 @@ FORCE_ALIGN static int ALCwinmmPlayback_mixerProc(void *arg)
SetRTPriority();
althrd_setname(althrd_current(), MIXER_THREAD_NAME);
- while(GetMessage(&msg, NULL, 0, 0))
+ if (!self->killNow) while(GetMessage(&msg, NULL, 0, 0))
{
if(msg.message != WOM_DONE)
continue;
@@ -504,7 +504,7 @@ static int ALCwinmmCapture_captureProc(void *arg)
althrd_setname(althrd_current(), RECORD_THREAD_NAME);
- while(GetMessage(&msg, NULL, 0, 0))
+ if (!self->killNow) while(GetMessage(&msg, NULL, 0, 0))
{
if(msg.message != WIM_DATA)
continue;

File diff suppressed because it is too large Load Diff

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 105 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.1 KiB

After

Width:  |  Height:  |  Size: 8.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 35 KiB

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 826 B

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 361 KiB

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 60 KiB

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 7.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 46 KiB

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 95 KiB

After

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.1 KiB

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.1 KiB

After

Width:  |  Height:  |  Size: 8.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 84 KiB

After

Width:  |  Height:  |  Size: 65 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 21 KiB

View File

@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="212px" height="80px" viewBox="0 0 212 80" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>record_td_audio</title>
<g id="record_td_audio" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<path d="M43.7701975,66.2857143 C47.6576358,66.2857143 51.3477972,65.4403128 54.6671733,63.9231737 C63.7325049,59.7798145 70.032316,50.6262682 70.032316,40 C70.032316,25.4828009 58.2743651,13.7142857 43.7701975,13.7142857 C29.26603,13.7142857 17.508079,25.4828009 17.508079,40 C17.508079,54.5171992 29.26603,66.2857143 43.7701975,66.2857143 Z" id="Oval" fill="#37A8FF" fill-rule="nonzero"></path>
<path d="M125.220826,25.5238095 C126.482058,25.5238095 127.504488,26.5471587 127.504488,27.8095238 L127.504488,52.952381 C127.504488,54.2147459 126.482058,55.2380952 125.220826,55.2380952 C123.959594,55.2380952 122.937163,54.2147459 122.937163,52.952381 L122.937163,27.8095238 C122.937163,26.5471587 123.959594,25.5238095 125.220826,25.5238095 Z" id="Path" fill="#37A8FF" fill-rule="nonzero"></path>
<path d="M97.8168761,26.6666667 C99.0781079,26.6666667 100.100539,27.6900158 100.100539,28.952381 L100.100539,51.8095238 C100.100539,53.0718888 99.0781079,54.0952381 97.8168761,54.0952381 C96.5556444,54.0952381 95.5332136,53.0718888 95.5332136,51.8095238 L95.5332136,28.952381 C95.5332136,27.6900158 96.5556444,26.6666667 97.8168761,26.6666667 Z" id="Path" fill="#37A8FF" fill-rule="nonzero"></path>
<path d="M170.894075,26.6666667 C172.155307,26.6666667 173.177738,27.6900158 173.177738,28.952381 L173.177738,51.8095238 C173.177738,53.0718888 172.155307,54.0952381 170.894075,54.0952381 C169.632844,54.0952381 168.610413,53.0718888 168.610413,51.8095238 L168.610413,28.952381 C168.610413,27.6900158 169.632844,26.6666667 170.894075,26.6666667 Z" id="Path" fill="#37A8FF" fill-rule="nonzero"></path>
<path d="M106.951526,28.952381 C108.212758,28.952381 109.235189,29.9757301 109.235189,31.2380952 L109.235189,49.5238095 C109.235189,50.7861745 108.212758,51.8095238 106.951526,51.8095238 C105.690294,51.8095238 104.667864,50.7861745 104.667864,49.5238095 L104.667864,31.2380952 C104.667864,29.9757301 105.690294,28.952381 106.951526,28.952381 Z" id="Path" fill="#37A8FF" fill-rule="nonzero"></path>
<path d="M180.028725,28.952381 C181.289957,28.952381 182.312388,29.9757301 182.312388,31.2380952 L182.312388,49.5238095 C182.312388,50.7861745 181.289957,51.8095238 180.028725,51.8095238 C178.767494,51.8095238 177.745063,50.7861745 177.745063,49.5238095 L177.745063,31.2380952 C177.745063,29.9757301 178.767494,28.952381 180.028725,28.952381 Z" id="Path" fill="#37A8FF" fill-rule="nonzero"></path>
<path d="M134.355476,28.952381 C135.616708,28.952381 136.639138,29.9757301 136.639138,31.2380952 L136.639138,49.5238095 C136.639138,50.7861745 135.616708,51.8095238 134.355476,51.8095238 C133.094244,51.8095238 132.071813,50.7861745 132.071813,49.5238095 L132.071813,31.2380952 C132.071813,29.9757301 133.094244,28.952381 134.355476,28.952381 Z" id="Path" fill="#37A8FF" fill-rule="nonzero"></path>
<path d="M152.624776,30.0952381 C153.886007,30.0952381 154.908438,31.1185872 154.908438,32.3809524 L154.908438,48.3809524 C154.908438,49.6433173 153.886007,50.6666667 152.624776,50.6666667 C151.363544,50.6666667 150.341113,49.6433173 150.341113,48.3809524 L150.341113,32.3809524 C150.341113,31.1185872 151.363544,30.0952381 152.624776,30.0952381 Z" id="Path" fill="#37A8FF" fill-rule="nonzero"></path>
<path d="M88.6822262,32.3809524 C89.943458,32.3809524 90.9658887,33.4043015 90.9658887,34.6666667 L90.9658887,46.0952381 C90.9658887,47.357603 89.943458,48.3809524 88.6822262,48.3809524 C87.4209944,48.3809524 86.3985637,47.357603 86.3985637,46.0952381 L86.3985637,34.6666667 C86.3985637,33.4043015 87.4209944,32.3809524 88.6822262,32.3809524 Z" id="Path" fill="#37A8FF" fill-rule="nonzero"></path>
<path d="M161.759425,32.3809524 C163.020657,32.3809524 164.043088,33.4043015 164.043088,34.6666667 L164.043088,46.0952381 C164.043088,47.357603 163.020657,48.3809524 161.759425,48.3809524 C160.498194,48.3809524 159.475763,47.357603 159.475763,46.0952381 L159.475763,34.6666667 C159.475763,33.4043015 160.498194,32.3809524 161.759425,32.3809524 Z" id="Path" fill="#37A8FF" fill-rule="nonzero"></path>
<path d="M116.086176,32.3809524 C117.347408,32.3809524 118.369838,33.4043015 118.369838,34.6666667 L118.369838,46.0952381 C118.369838,47.357603 117.347408,48.3809524 116.086176,48.3809524 C114.824944,48.3809524 113.802513,47.357603 113.802513,46.0952381 L113.802513,34.6666667 C113.802513,33.4043015 114.824944,32.3809524 116.086176,32.3809524 Z" id="Path" fill="#37A8FF" fill-rule="nonzero"></path>
<path d="M189.163375,32.3809524 C190.424607,32.3809524 191.447038,33.4043015 191.447038,34.6666667 L191.447038,46.0952381 C191.447038,47.357603 190.424607,48.3809524 189.163375,48.3809524 C187.902143,48.3809524 186.879713,47.357603 186.879713,46.0952381 L186.879713,34.6666667 C186.879713,33.4043015 187.902143,32.3809524 189.163375,32.3809524 Z" id="Path" fill="#37A8FF" fill-rule="nonzero"></path>
<path d="M143.490126,32.3809524 C144.751357,32.3809524 145.773788,33.4043015 145.773788,34.6666667 L145.773788,46.0952381 C145.773788,47.357603 144.751357,48.3809524 143.490126,48.3809524 C142.228894,48.3809524 141.206463,47.357603 141.206463,46.0952381 L141.206463,34.6666667 C141.206463,33.4043015 142.228894,32.3809524 143.490126,32.3809524 Z" id="Path" fill="#37A8FF" fill-rule="nonzero"></path>
<path d="M43.6031289,49.3105246 L43.937266,49.3105246 C44.5887999,49.3105246 45.116973,49.8391722 45.116973,50.4912914 L45.116973,52.9144712 C45.116973,53.5665909 44.5887999,54.0952381 43.937266,54.0952381 L43.6031289,54.0952381 C42.9515951,54.0952381 42.423422,53.5665909 42.423422,52.9144712 L42.423422,50.4912914 C42.423422,49.8391722 42.9515951,49.3105246 43.6031289,49.3105246 Z" id="Rectangle" fill="#FFFFFF" fill-rule="nonzero"></path>
<path d="M43.8481579,28.952381 C46.5276427,28.952381 48.6997943,31.1264842 48.6997943,33.8083764 L48.6997943,41.4774827 C48.6997943,44.1593749 46.5276427,46.3334781 43.8481579,46.3334781 C41.1686732,46.3334781 38.9965216,44.1593749 38.9965216,41.4774827 L38.9965216,33.8083764 C38.9965216,31.1264842 41.1686732,28.952381 43.8481579,28.952381 Z" id="Rectangle" fill="#FFFFFF" fill-rule="nonzero"></path>
<path d="M35.016158,40.687141 C35.6155766,40.687141 36.1015014,41.1735025 36.1015014,41.7734594 C36.1015014,45.5539211 39.5589126,48.7799303 43.7701975,48.7799303 C48.0292505,48.7799303 51.4388937,45.7047695 51.4388937,41.9709718 C51.4388937,41.3710149 51.9248182,40.8846533 52.524237,40.8846533 C53.1236558,40.8846533 53.6095803,41.3710149 53.6095803,41.9709718 C53.6095803,46.9580564 49.1805897,50.9525672 43.7701975,50.9525672 C38.3927905,50.9525672 33.9308146,46.7892282 33.9308146,41.7734594 C33.9308146,41.1735025 34.4167394,40.687141 35.016158,40.687141 Z" id="Path" fill="#FFFFFF" fill-rule="nonzero"></path>
</g>
</svg>

After

Width:  |  Height:  |  Size: 6.9 KiB

View File

@@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="120px" height="77px" viewBox="0 0 120 77" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>record_td_landscape</title>
<g id="record_td_landscape" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<path d="M9.16666667,5.26258992 L88.0555555,5.26258992 C88.6692052,5.26258992 89.1666667,5.75844141 89.1666667,6.37010522 L89.1666667,70.6298949 C89.1666667,71.2415585 88.6692052,71.7374101 88.0555555,71.7374101 L9.16666667,71.7374101 C7.3257175,71.7374101 5.83333332,70.2498556 5.83333332,68.4148643 L5.83333332,8.58513578 C5.83333332,6.75014437 7.3257175,5.26258992 9.16666667,5.26258992 Z" id="Rectangle" fill="#0A9AD8" fill-rule="nonzero"></path>
<path d="M74.175461,39.4799628 C74.175461,39.4869105 74.817287,41.6527331 75.1547623,43.9104391 C75.473963,46.0458881 75.4898313,48.2806063 75.4898313,48.2674632 C75.5304818,49.6193866 75.5846828,51.4580021 72.725589,54.3511176 C72.7526893,54.3375982 72.5494363,54.5539059 71.0182628,55.8787906 C73.3353483,60.8403487 73.9857583,67.0758169 73.4166495,71.7669903 L21.8987622,71.7669903 C21.3161033,66.9541439 22.0207141,60.7457142 24.2971489,55.8652715 C24.2835987,55.8517521 22.8472767,54.5944637 22.8608269,54.6079829 C21.3296535,53.1208674 19.8120303,51.160579 19.8120303,49.0380595 C19.8120303,49.0317313 19.6476379,47.7958611 19.8540957,45.3139483 C20.0605534,42.8320357 21.6277581,37.9387704 21.7226095,37.5602319 C25.3676153,24.7034427 37.8338058,9.56190341 42.03437,10.5082496 C43.1183865,10.7515958 44.1888528,12.049442 45.1644678,13.9691729 C45.7606768,15.1859037 46.4788378,17.1597116 46.61434,17.5517693 C48.9991763,17.5247308 48.57912,17.5517693 48.7959233,17.5517693 C49.2701805,16.1592884 49.5953855,15.4022114 49.5818353,15.4157307 C50.2457955,13.8069421 51.655017,10.9003073 53.362343,10.5082496 C57.6984093,9.53486495 71.0453633,25.7444235 74.175461,39.4799628 Z" id="Path" fill="#FFFFFF" fill-rule="nonzero"></path>
<path d="M40.5130087,14.8004607 C41.4545255,14.724296 42.3404242,15.2703395 43.2401358,16.2211174 C43.844097,16.9402459 44.1541125,17.3103582 44.1701823,17.3314543 C44.5770235,17.8655479 44.4723282,18.6271598 43.936339,19.0325621 C43.4003495,19.4379644 42.6360345,19.3336395 42.2291933,18.7995458 C41.986018,18.4899876 41.859044,18.3286785 41.8482713,18.3156185 L40.7542925,17.2813836 L40.7238148,17.2641429 L39.7325905,18.5678988 C39.670905,18.6704726 39.4567875,19.0863831 39.0902378,19.8156303 C38.8095898,20.4250562 38.0862888,20.6923879 37.4746997,20.4127325 C36.863111,20.133077 36.5948303,19.4123342 36.8754783,18.8029084 L37.1182785,18.2914213 C37.2236442,18.0768659 37.396533,17.7560017 37.636944,17.3288288 C38.5371665,15.8019494 39.4390397,14.8788265 40.5130087,14.8004607 Z" id="Path" fill="#CABCB4" fill-rule="nonzero"></path>
<path d="M64.4562625,57.51838 C65.0461218,57.1956882 65.7868188,57.4105788 66.110656,57.9983519 C66.434493,58.5861248 66.2188398,59.3242022 65.6289805,59.646894 C64.6740205,60.1693201 63.6660473,60.6703037 62.630571,61.1433322 C60.832103,61.9079537 59.9107008,62.2989963 59.8663643,62.3164596 L57.2760995,63.2679242 C57.0121855,63.3579578 55.7335118,63.7430351 53.4400788,64.4231557 C53.399373,64.4336807 52.6414868,64.6066673 51.1664195,64.9421162 C49.841893,65.1997916 48.6707235,65.3396191 47.739007,65.3396191 C46.6094163,65.3396191 45.1279263,65.1361679 43.4474528,64.7677954 L40.509949,64.0139408 C40.46734,64.0015585 39.4183938,63.6628116 37.3631103,62.9976998 C35.0519835,62.0964758 33.8524645,61.626955 33.7645538,61.5891375 L30.684499,60.1442387 C30.195084,59.8878868 29.8904378,59.7271255 29.7705605,59.6619556 C29.1798465,59.34082 28.962234,58.6033138 29.2845093,58.0146891 C29.6067845,57.4260642 30.3469085,57.2092215 30.9376225,57.5303569 C31.5036995,57.838099 32.0901055,58.1381032 32.690561,58.4288397 L35.6549235,59.7469342 C35.7178573,59.7726505 38.805909,60.9280903 38.8683885,60.9493811 L42.486846,62.0428091 C42.563244,62.0627458 43.520094,62.2726207 45.3573965,62.6724328 C46.2758583,62.8282629 47.0840855,62.9114246 47.739007,62.9114246 C48.3222293,62.9114246 49.0274493,62.8446472 49.8240148,62.7186528 C52.5754125,62.0856116 53.9708033,61.7634157 54.0101865,61.752065 L56.564689,60.9442341 L59.573909,59.8160545 C61.95057,58.7510394 63.4072285,58.0769116 63.943884,57.7936712 L64.2866305,57.610619 C64.343372,57.5799509 64.3999183,57.5492039 64.4562625,57.51838 Z" id="Path" fill="#CABCB4" fill-rule="nonzero"></path>
<path d="M46.885344,43.6844439 C47.8880595,45.090444 49.7308875,46.0773477 51.8989208,46.1990209 L51.8989208,46.8073862 C51.8989208,50.6468482 50.7607033,53.7562714 47.6848063,53.7562714 C44.64956,53.7562714 43.4977923,50.7009251 43.470692,46.9155401 C43.470692,46.3747708 43.470692,46.0458029 43.470692,45.9286363 C44.9341143,45.5365785 46.1400828,44.7389439 46.885344,43.6844439 Z" id="Path" fill="#F23C57" fill-rule="nonzero"></path>
<path d="M34.9609983,39.8510278 C35.6170285,39.7017956 36.270252,40.1107558 36.4200138,40.7644658 C36.7971668,42.4107383 37.729436,43.8209474 39.0211698,44.6728535 C41.5888978,46.3662851 44.882324,45.3493015 46.4210183,42.3125645 C46.7243048,41.7140047 47.4571178,41.4737684 48.057802,41.7759822 C48.6584865,42.0781957 48.8995753,42.8084171 48.5962888,43.406977 C46.4204265,47.7012159 41.5011325,49.2202545 37.6762575,46.6977268 C35.8447725,45.4898517 34.5567008,43.5414332 34.044318,41.304883 C33.8945563,40.6511732 34.304968,40.0002598 34.9609983,39.8510278 Z" id="Path" fill="#000000" fill-rule="nonzero"></path>
<path d="M58.312739,40.7644658 C58.4625008,40.1107558 59.1157243,39.7017956 59.7717545,39.8510278 C60.4277848,40.0002598 60.8381965,40.6511732 60.6884348,41.304883 C60.176052,43.5414332 58.8879803,45.4898517 57.0564953,46.6977268 C53.2316203,49.2202545 48.3123263,47.7012159 46.136464,43.406977 C45.8331778,42.8084171 46.0742665,42.0781957 46.6749508,41.7759822 C47.2756353,41.4737684 48.0084483,41.7140047 48.3117345,42.3125645 C49.850429,45.3493015 53.1438553,46.3662851 55.711583,44.6728535 C57.0033168,43.8209474 57.935586,42.4107383 58.312739,40.7644658 Z" id="Path-Copy" fill="#000000" fill-rule="nonzero"></path>
<path d="M47.468003,43.7250015 C49.3379315,43.7250015 51.9531215,40.9941167 51.9531215,38.6823283 C51.9531215,36.3705396 50.3270968,36.1271934 47.400252,36.1271934 C44.4734073,36.1271934 42.8473823,36.3705396 42.8473823,38.6823283 C42.8473823,40.9941167 45.5980745,43.7250015 47.468003,43.7250015 Z" id="Oval" fill="#000000" fill-rule="nonzero"></path>
<path d="M38.701019,30.4626353 C36.8310905,30.962847 35.7877245,33.125924 36.0316283,34.0317124 C36.275532,34.9375011 38.0641593,35.5458663 39.9340878,35.0456549 C41.8040165,34.5454432 43.023535,33.0177702 42.8067318,32.2201354 C42.5899285,31.4089815 40.5709475,29.9624239 38.701019,30.4626353 Z" id="Oval-Copy-3" fill="#000000" fill-rule="nonzero"></path>
<path d="M56.7227945,30.4626353 C58.592723,30.962847 59.636089,33.125924 59.3921852,34.0317124 C59.1482815,34.9375011 57.3596542,35.5458663 55.4897255,35.0456549 C53.619797,34.5454432 52.4002782,33.0177702 52.6170817,32.2201354 C52.833885,31.4225009 54.8393155,29.9624239 56.7227945,30.4626353 Z" id="Oval-Copy-4" fill="#000000" fill-rule="nonzero"></path>
<path d="M51.925176,16.3090342 C52.8606485,15.2995095 53.7683583,14.7222917 54.7250875,14.7997248 C55.7860473,14.8771785 56.6728375,15.7638522 57.5493765,17.2256689 C57.842431,17.7415165 58.055606,18.1375372 58.1889015,18.4137309 C58.2972335,18.6430962 58.3583273,18.772822 58.3721823,18.8029084 C58.6528303,19.4123342 58.3845498,20.133077 57.772961,20.4127325 C57.161372,20.6923879 56.438071,20.4250562 56.157423,19.8156303 L55.5096673,18.5588251 C55.2122455,18.0543638 54.5848463,17.3156962 54.5447338,17.2816756 C54.1999508,17.5123321 53.9414935,17.7180916 53.769362,17.8989543 L53.0184675,18.7995458 C52.6116263,19.3336395 51.847311,19.4379644 51.3113218,19.0325621 C50.7753325,18.6271598 50.6706373,17.8655479 51.0774785,17.3314543 L51.925176,16.3090342 Z" id="Path-Copy-2" fill="#CABCB4" fill-rule="nonzero"></path>
<path d="M39.0857368,32.8474823 C39.6149,32.3195282 39.7864885,31.6347423 39.4689905,31.31797 C39.1514925,31.0011978 38.4651378,31.1723942 37.935974,31.7003478 C37.4068108,32.2283019 37.2352223,32.9130876 37.5527203,33.2298598 C37.8702183,33.5466321 38.556573,33.3754357 39.0857368,32.8474823 Z" id="Oval-Copy-7" fill="#FFFFFF" fill-rule="nonzero"></path>
<path d="M55.3486545,32.954987 C55.9763015,32.5483632 56.2868768,31.9141422 56.0423438,31.5384146 C55.7978105,31.1626872 55.0907685,31.1877336 54.463121,31.5943569 C53.835474,32.000981 53.5248988,32.6352021 53.7694318,33.0109294 C54.0139653,33.3866568 54.721007,33.3616106 55.3486545,32.954987 Z" id="Oval-Copy-8" fill="#FFFFFF" fill-rule="nonzero"></path>
<path d="M91.9444445,5.26258992 L110.833333,5.26258992 C112.674283,5.26258992 114.166667,6.75014437 114.166667,8.58513578 L114.166667,25.2054344 C114.166667,25.8170983 113.669205,26.4142395 113.055556,26.4142395 L91.9444445,26.4142395 C91.3307948,26.4142395 90.8333333,25.8170983 90.8333333,25.2054344 L90.8333333,6.37010522 C90.8333333,5.75844141 91.3307948,5.26258992 91.9444445,5.26258992 Z" id="Rectangle" fill="#FFCA3D" fill-rule="nonzero"></path>
<path d="M103.2142,7.97411003 C107.632602,7.97411003 109.969538,10.9765406 110.178,14.3005289 C110.380517,17.5297332 110.201469,22.6688803 109.0483,26.4142395 L97.5363535,26.4142395 C96.9669115,23.4651448 96.2977453,19.3968245 96.3087163,16.4487992 C95.6055153,16.0427077 95.1394328,15.7437666 94.910469,15.5519759 C94.0706783,14.8485281 93.6948253,14.2919279 93.7565138,13.9735572 C94.0114313,12.6579448 95.058614,12.4439806 96.5508963,12.6122341 C97.3323058,10.02525 99.5632098,7.97411003 103.2142,7.97411003 Z" id="Path" fill="#4CBFEA" fill-rule="nonzero"></path>
<path d="M93.75,14.2803021 C94.7387305,14.2869003 100.665601,16.0421213 100.779908,16.0623312 C101.710781,16.2269147 102.358415,16.0406637 102.722809,15.5035784 L102.727941,15.8398107 C102.634666,22.8737477 102.587527,26.3985574 102.586524,26.4142395 L97.333057,26.4142395 C96.5029448,23.4278615 96.1931475,19.365188 96.204203,16.3958621 L96.1288678,16.3519496 C94.9332718,15.5938989 94.3316638,15.2114978 94.3240435,15.2047464 L94.2901418,15.1742545 C93.9997255,14.9090217 93.7985318,14.6182939 93.75,14.2803021 Z" id="Path" fill="#FFFFFF" fill-rule="nonzero"></path>
<path d="M104.691488,12.1608256 C105.876093,12.443808 106.596703,13.5928637 106.301507,14.7272315 C106.249909,14.9255078 106.039995,15.0462441 105.83265,14.9969034 C105.625305,14.9475627 105.499047,14.7468294 105.550644,14.5485531 C105.742783,13.8102114 105.273946,13.0626231 104.503958,12.8786861 C103.734236,12.6948126 102.954477,13.1437115 102.762404,13.8817999 C102.710806,14.0800763 102.500892,14.2008125 102.293547,14.1514718 C102.086202,14.102131 101.959944,13.9013978 102.011541,13.7031214 C102.306804,12.5685003 103.506617,11.8777806 104.691488,12.1608256 Z" id="Path" fill="#000000" fill-rule="nonzero"></path>
<path d="M102.365249,14.9966072 C102.574812,15.0062043 102.737019,15.1861129 102.727547,15.3984443 C102.688118,16.2823197 101.977686,16.6059177 100.863027,16.4063951 C100.775397,16.3907082 100.39878,16.2862544 99.7331758,16.0930336 L98.4516848,15.6415518 C96.8548668,15.0830675 95.593332,14.7499239 94.0835805,14.562086 C93.875367,14.5361809 93.7273033,14.3441607 93.7528708,14.133197 C93.778438,13.9222333 93.967955,13.7722137 94.1761683,13.7981189 C95.681789,13.9854428 96.9471038,14.3108231 98.4958953,14.8433357 L99.9405645,15.3515853 C100.555982,15.5337867 100.907523,15.6327335 100.995189,15.6484258 C101.697446,15.77413 101.940227,15.6770468 101.966787,15.3910546 C102.092719,15.1216917 102.22554,14.9902092 102.365249,14.9966072 Z" id="Path" fill="#1683AC" fill-rule="nonzero"></path>
<path d="M105.342285,17.6077403 C105.449023,17.440419 105.661516,17.3862365 105.831012,17.4771775 L105.862251,17.4959374 L107.653171,18.6918577 C107.748825,18.7557323 107.810292,18.8601897 107.821629,18.975104 L107.82353,19.0137547 L107.82353,23.8401474 C107.82353,24.0842782 107.603986,24.2665628 107.370484,24.2163065 C104.918229,23.6885105 103.69853,21.5111838 103.69853,17.8178344 C103.69853,17.6055406 103.866738,17.4333981 104.074233,17.4333981 C104.281728,17.4333981 104.449937,17.6055406 104.449937,17.8178344 C104.449937,20.9087224 105.316738,22.7106219 107.040407,23.3266985 L107.071928,23.3375379 L107.071928,19.2215938 L105.451561,18.1397314 C105.288021,18.030525 105.235064,17.8131177 105.323949,17.6397028 L105.342285,17.6077403 Z" id="Path-11" fill="#1683AC" fill-rule="nonzero"></path>
<path d="M108.990216,13.783927 C108.786461,13.8348866 108.580611,13.7084298 108.530439,13.5014778 C108.471102,13.2567271 108.387979,13.0082108 108.282177,12.7603458 C108.048814,12.2136439 107.709765,11.6803939 107.28247,11.1972642 C106.855196,10.7141701 106.369777,10.3152109 105.860217,10.0218583 C105.629222,9.88887579 105.395234,9.77878492 105.162451,9.69316556 C104.965148,9.6205959 104.863122,9.39931123 104.934571,9.19891243 C105.00602,8.99851365 105.223887,8.89488767 105.42119,8.96745733 C105.694614,9.06802466 105.967329,9.19633622 106.234928,9.35039253 C106.816569,9.68524149 107.366171,10.1369525 107.847779,10.6814707 C108.32934,11.2259638 108.713115,11.8295599 108.979376,12.4533316 C109.101862,12.7402812 109.198668,13.0297058 109.268303,13.3169365 C109.318475,13.5238886 109.193972,13.7329673 108.990216,13.783927 Z" id="Path" fill="#FFFFFF" fill-rule="nonzero"></path>
<path d="M91.9444445,27.9748202 L113.055556,27.9748202 C113.669205,27.9748202 114.166667,28.4706715 114.166667,29.0823353 L114.166667,47.9176647 C114.166667,48.5293285 113.669205,49.0251798 113.055556,49.0251798 L91.9444445,49.0251798 C91.3307948,49.0251798 90.8333333,48.5293285 90.8333333,47.9176647 L90.8333333,29.0823353 C90.8333333,28.4706715 91.3307948,27.9748202 91.9444445,27.9748202 Z" id="Rectangle-Copy-5" fill="#FE5BA3" fill-rule="nonzero"></path>
<path d="M91.9444445,50.6870504 L113.055556,50.6870504 C113.669205,50.6870504 114.166667,51.1829017 114.166667,51.7945656 L114.166667,68.4148643 C114.166667,70.2498556 112.674283,71.7374101 110.833333,71.7374101 L91.9444445,71.7374101 C91.3307948,71.7374101 90.8333333,71.2415585 90.8333333,70.6298949 L90.8333333,51.7945656 C90.8333333,51.1829017 91.3307948,50.6870504 91.9444445,50.6870504 Z" id="Rectangle-Copy-6" fill="#4DC17B" fill-rule="nonzero"></path>
<path d="M102.25,52.3300971 C104.064924,52.3300971 106.494853,54.4941995 107.590007,57.0290814 C108.926565,60.1227278 109.75,64.5446101 109.75,65.4829234 C109.75,65.8797612 109.465807,66.2975642 109.0014,66.7051419 L108.275763,67.2454656 C108.734593,68.2433846 108.946429,69.4043108 108.946429,70.6431768 C108.946429,70.9457113 108.926633,71.4749893 108.888273,71.7669903 L95.573462,71.7669903 C95.5351018,71.4749893 95.515306,70.9457113 95.515306,70.6431768 C95.515306,69.4347129 95.7168725,68.3004102 96.152671,67.3191466 L95.9808008,67.2012549 C95.2383448,66.6744278 94.75,66.0858807 94.75,65.4829234 C94.75,64.4035757 95.566779,60.0431632 96.8797585,57.0076953 C97.9738345,54.4783084 100.435077,52.3300971 102.25,52.3300971 Z" id="Path" fill="#112F40" fill-rule="nonzero"></path>
<path d="M102.261954,61.3438098 C102.88843,61.3438098 103.307995,61.2569433 103.656078,61.1556076 L104.289433,60.9572583 C104.533466,60.8877973 104.788283,60.8385647 105.118273,60.8439809 C106.72513,60.8703535 106.90094,64.5129651 106.889183,66.1986132 C106.880102,67.5004661 103.47449,68.664433 102.25,68.664433 C101.02551,68.664433 97.4285715,67.5004661 97.4285715,66.1425046 L97.4313878,65.7434914 C97.4548043,64.2006391 97.663843,60.8270556 99.4181933,60.8270556 C99.638903,60.8270556 99.8337898,60.8619881 100.028218,60.9136885 L100.872784,61.1693216 C101.231515,61.2652115 101.666038,61.3438098 102.261954,61.3438098 Z" id="Mask" fill="#000000" fill-rule="nonzero"></path>
<path d="M99.4181933,60.8270556 C99.638903,60.8270556 99.8337898,60.8619881 100.028218,60.9136885 L100.872784,61.1693216 C101.231515,61.2652115 101.666038,61.3438098 102.261954,61.3438098 C102.88843,61.3438098 103.307995,61.2569433 103.656078,61.1556076 L104.289433,60.9572583 C104.533466,60.8877973 104.788283,60.8385647 105.118273,60.8439809 C105.478219,60.8498884 105.766356,61.0372536 105.996662,61.343432 L105.933366,62.8865975 L105.655612,64.7457443 C104.975579,66.8910871 103.843542,67.5004661 102.269133,67.5004661 C100.694723,67.5004661 99.5723178,66.8910871 98.8922845,64.7457443 C98.8050003,64.2669887 98.7205035,63.6002265 98.638794,62.7454582 C98.6008363,62.3483809 98.5432378,61.2050488 98.5429283,61.1876999 C98.7804968,60.9609601 99.0686768,60.8270556 99.4181933,60.8270556 Z" id="Path" fill="#FFFFFF" fill-rule="nonzero"></path>
<path d="M102.25,66.5692924 C103.348934,66.5692924 104.239796,65.4441246 104.239796,64.7845433 C104.239796,63.6702853 103.348934,63.4653808 102.25,63.4653808 C101.151066,63.4653808 100.260204,63.6702853 100.260204,64.7845433 C100.260204,65.4441246 101.151066,66.5692924 102.25,66.5692924 Z" id="Oval" fill="#0D222E" fill-rule="nonzero"></path>
<path d="M106.970793,67.8435271 C107.138274,67.750305 107.349413,67.8108706 107.442385,67.9788041 C107.535356,68.1467376 107.474953,68.3584457 107.307471,68.4516678 C106.903146,68.6767189 106.172738,69.0035268 105.116247,69.4320909 C105.016337,69.4679318 104.794238,69.5422161 104.44995,69.6549438 C103.576411,69.9255996 102.778547,70.0861309 102.251361,70.0861309 C101.929201,70.0861309 101.194351,69.9426061 100.046812,69.6555566 C99.1225755,69.3244815 98.6353858,69.1485422 98.585242,69.127739 C97.848853,68.7912533 97.379051,68.5668758 97.1758355,68.4546068 C97.00806,68.3619172 96.946989,68.1504017 97.0394295,67.9821739 C97.1318698,67.8139461 97.3428163,67.7527102 97.5105918,67.8454 C97.8941468,68.0573 98.3108265,68.25649 98.7360393,68.4368654 L100.819361,69.1536913 C101.397379,69.3047451 101.902378,69.3905734 102.251361,69.3905734 C102.600083,69.3905734 103.103441,69.304695 103.679035,69.1535076 L104.691113,68.8445846 C105.181443,68.6754929 106.875458,67.8965913 106.970793,67.8435271 Z" id="Path" fill="#000000" fill-rule="nonzero"></path>
<path d="M102.5,30.7446044 C106.745647,30.7446044 110.189142,34.0574222 110.189142,38.14695 C110.189142,39.9020569 109.555397,41.5155537 108.496201,42.7814621 C109.728237,44.1331949 110.277778,45.9869998 110.277778,48.0382003 C110.277778,48.3729151 110.255619,48.7033388 110.211301,49.0251798 L94.788699,49.0251798 C94.7443813,48.7033388 94.7222223,48.3729151 94.7222223,48.0382003 C94.7222223,45.9869998 95.2717633,44.1331949 96.5037988,42.7814621 C95.4446028,41.5155537 94.8108577,39.9020569 94.8108577,38.14695 C94.8108577,34.0574222 98.2543527,30.7446044 102.5,30.7446044 Z" id="Path" fill="#FFE934" fill-rule="nonzero"></path>
<path d="M107.08304,43.0985663 C107.263989,42.9842186 107.503676,43.0377353 107.618395,43.2180995 C107.733114,43.3984634 107.679423,43.6373747 107.498474,43.7517225 C107.057364,44.0304734 106.579716,44.273003 106.073054,44.4755372 C104.968595,44.9115697 103.752383,45.1421002 102.5,45.1421002 C101.247617,45.1421002 100.031405,44.9115697 98.9265333,44.4753737 C98.4237678,44.2762205 97.9495623,44.0348505 97.5015263,43.7517225 C97.3205768,43.6373747 97.2668863,43.3984634 97.3816053,43.2180995 C97.4963243,43.0377353 97.736011,42.9842186 97.9169605,43.0985663 C98.3242775,43.3559626 98.7553408,43.5753735 99.2126545,43.7565229 C100.226009,44.156588 101.345271,44.3687419 102.5,44.3687419 C103.65473,44.3687419 104.773991,44.156588 105.785799,43.7571371 C106.247296,43.5726538 106.682532,43.3516599 107.08304,43.0985663 Z" id="Path" fill="#FF9000" fill-rule="nonzero"></path>
<ellipse id="Oval" fill="#000000" fill-rule="nonzero" cx="99.4420703" cy="37.6534603" rx="1.17442228" ry="1.33027662"></ellipse>
<ellipse id="Oval-Copy-3" fill="#FFFFFF" fill-rule="nonzero" cx="99.1761633" cy="37.3316192" rx="1" ry="1"></ellipse>
<ellipse id="Oval-Copy-2" fill="#000000" fill-rule="nonzero" cx="105.55793" cy="37.6534603" rx="1.17442228" ry="1.33027662"></ellipse>
<path d="M102.544318,38.2542305 C103.204653,38.2542305 103.510446,38.5202856 103.763058,38.7949235 L103.794081,38.8292532 L103.896012,38.9451161 L103.927034,38.9794459 L103.958056,39.0094843 C104.144191,39.2111713 104.343622,39.3699462 104.698164,39.3699462 C105.863723,39.3699462 106.413264,39.7175347 106.426559,40.421294 L106.426559,40.4427501 L106.426559,40.4770797 C106.382241,41.6399989 104.281577,42.3137198 102.579772,42.3308846 L102.526591,42.3308846 L102.504432,42.3308846 L102.482273,42.3308846 C100.771605,42.3308846 98.6266223,41.6528727 98.5823045,40.4770797 L98.5823045,40.4427501 C98.5823045,39.721826 99.1362773,39.3699462 100.3107,39.3699462 C100.647515,39.3699462 100.842514,39.224045 101.019785,39.0395228 L101.050807,39.0094843 L101.08183,38.9794459 L101.112852,38.9451161 L101.214783,38.8292532 C101.219215,38.8249619 101.223647,38.8163795 101.228079,38.8120885 L101.259101,38.7777587 C101.507281,38.5117033 101.813074,38.2542305 102.460114,38.2542305 C102.473409,38.2542305 102.491137,38.2542305 102.504432,38.2542305 C102.513295,38.2542305 102.531023,38.2542305 102.544318,38.2542305 Z" id="Path" fill="#FF4B00" fill-rule="nonzero"></path>
<path d="M105.067531,40.1325146 C105.263202,40.0455276 105.492571,40.1331202 105.57984,40.3281582 C105.66711,40.5231962 105.579233,40.7518226 105.383562,40.8388097 C104.621871,41.1774248 103.668289,41.344375 102.522159,41.344375 C101.376029,41.344375 100.422447,41.1774248 99.6607563,40.8388097 C99.465085,40.7518226 99.377208,40.5231962 99.4644775,40.3281582 C99.551747,40.1331202 99.7811158,40.0455276 99.9767873,40.1325146 C100.629104,40.4225066 101.477361,40.5710167 102.522159,40.5710167 C103.566958,40.5710167 104.415214,40.4225066 105.067531,40.1325146 Z" id="Path" fill="#921000" fill-rule="nonzero"></path>
<ellipse id="Oval-Copy-4" fill="#FFFFFF" fill-rule="nonzero" cx="105.247705" cy="37.3316192" rx="1" ry="1"></ellipse>
</g>
</svg>

After

Width:  |  Height:  |  Size: 22 KiB

View File

@@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="83px" height="120px" viewBox="0 0 83 120" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>record_td_portrait</title>
<g id="record_td_portrait" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<path d="M77,9.55160931 L77,84.7273399 C77,85.3811732 76.470394,86 75.8170923,86 L7.18290784,86 C6.52960589,86 6,85.3811732 6,84.7273399 L6,9.55160931 C6,7.59010964 7.58881763,6 9.5487235,6 L73.4512766,6 C75.4111823,6 77,7.59010964 77,9.55160931 Z" id="Rectangle" fill="#0A9AD8" fill-rule="nonzero"></path>
<path d="M77,89.8056802 L77,110.134529 C77,112.11582 75.7238703,114 73.7458927,114 L55.8305058,114 C55.1711798,114 55,112.66043 55,112 L55,89.5084229 C55,88.8479926 55.9805666,88 56.6398926,88 C57.0794432,88 63.57732,88 76.1335231,88 C76.7928488,88 77,89.14525 77,89.8056802 Z" id="Rectangle" fill="#FFCA3D" fill-rule="nonzero"></path>
<path d="M53,89.5047607 L53,111.526158 C53,112.186589 51.6593259,114 51,114 L32.3484913,114 C31.6891654,114 30,112.186589 30,111.526158 C30,97.0575332 30,89.7170673 30,89.5047607 C30,89.1863009 31.6615311,88 32.0029297,88 L51.1621094,88 C51.8214353,88 53,88.8443305 53,89.5047607 Z" id="Rectangle-Copy-5" fill="#FE5BA3" fill-rule="nonzero"></path>
<path d="M28,90 L28,112 C28,112.66043 26.6593259,114 26,114 L9,114 C7.02202225,114 6,113.11582 6,111.134529 L6,89.8056802 C6,89.14525 7.20715113,88 7.86647705,88 L26.1694942,88 C26.8288202,88 28,89.3395698 28,90 Z" id="Rectangle-Copy-6" fill="#4DC17B" fill-rule="nonzero"></path>
<path d="M41.3656958,92.5560538 C46.2043205,92.5560538 50.1287584,96.3592496 50.1287584,101.054127 C50.1287584,103.069033 49.4065002,104.921367 48.1993694,106.374661 C49.6034796,107.926483 50.2297735,110.054696 50.2297735,112.409524 C50.2297735,112.793785 50.2045197,113.630519 50.1540122,114 L32.5773794,114 C32.5268719,113.630519 32.5016181,112.793785 32.5016181,112.409524 C32.5016181,110.054696 33.1279119,107.926483 34.5320221,106.374661 C33.3248914,104.921367 32.6026332,103.069033 32.6026332,101.054127 C32.6026332,96.3592496 36.5270711,92.5560538 41.3656958,92.5560538 Z" id="Path" fill="#FFE934" fill-rule="nonzero"></path>
<path d="M35.5300673,106.874427 C35.6619508,106.666553 35.9370974,106.605129 36.1446243,106.737234 C36.6086526,107.032618 37.0997263,107.284407 37.6206979,107.492285 C38.7751269,107.951388 40.0502062,108.194849 41.3656958,108.194849 C42.6811854,108.194849 43.9562647,107.951388 45.1089166,107.492997 C45.6346668,107.281287 46.1304986,107.027678 46.5867673,106.737234 C46.7942941,106.605129 47.0694408,106.666553 47.2013243,106.874427 C47.3332078,107.082302 47.2718866,107.357909 47.0643598,107.490013 C46.5614652,107.810139 46.0169132,108.088667 45.4392689,108.321269 C44.1800966,108.822026 42.7935134,109.086778 41.3656958,109.086778 C39.9378782,109.086778 38.551295,108.822026 37.2916478,108.321079 C36.7184525,108.092363 36.1778208,107.815164 35.6670318,107.490013 C35.459505,107.357909 35.3981838,107.082302 35.5300673,106.874427 Z" id="Path" fill="#FF9000" fill-rule="nonzero"></path>
<ellipse id="Oval" fill="#000000" fill-rule="nonzero" cx="37.8806738" cy="100.487589" rx="1.33845047" ry="1.52719005"></ellipse>
<ellipse id="Oval-Copy-3" fill="#FFFFFF" fill-rule="nonzero" cx="37.5776284" cy="100.118108" rx="1" ry="1"></ellipse>
<ellipse id="Oval-Copy-2" fill="#000000" fill-rule="nonzero" cx="44.8507178" cy="100.487589" rx="1.33845047" ry="1.52719005"></ellipse>
<path d="M41.4162033,101.177288 C42.1687662,101.177288 42.5172681,101.482726 42.8051613,101.798017 L42.8405166,101.837428 L42.9566841,101.970442 L42.9920394,102.009853 L43.0273947,102.044338 C43.2395264,102.275879 43.4668104,102.458157 43.8708711,102.458157 C45.19922,102.458157 45.8255138,102.857197 45.840666,103.66513 L45.840666,103.689762 L45.840666,103.729173 C45.7901585,105.064233 43.3960998,105.837681 41.4566095,105.857387 L41.3960005,105.857387 L41.3707464,105.857387 L41.3454927,105.857387 C39.3959008,105.857387 36.9513346,105.079012 36.9008271,103.729173 L36.9008271,103.689762 C36.9008271,102.862123 37.5321716,102.458157 38.870622,102.458157 C39.2544796,102.458157 39.4767128,102.290659 39.6787431,102.078823 L39.7140984,102.044338 L39.7494537,102.009853 L39.784809,101.970442 L39.9009765,101.837428 C39.9060272,101.832502 39.9110778,101.822649 39.9161287,101.817722 L39.951484,101.778311 C40.2343263,101.472873 40.5828285,101.177288 41.3202389,101.177288 C41.3353911,101.177288 41.3555942,101.177288 41.3707464,101.177288 C41.380848,101.177288 41.4010511,101.177288 41.4162033,101.177288 Z" id="Path" fill="#FF4B00" fill-rule="nonzero"></path>
<path d="M44.2902005,103.331896 C44.514676,103.231372 44.7780041,103.33216 44.8783603,103.557011 C44.9787161,103.781863 44.8780973,104.045632 44.6536215,104.146156 C43.7850075,104.535136 42.6976887,104.726897 41.3909496,104.726897 C40.0842107,104.726897 38.9968916,104.535136 38.1282776,104.146156 C37.9038018,104.045632 37.803183,103.781863 37.9035388,103.557011 C38.003895,103.33216 38.2672231,103.231372 38.4916986,103.331896 C39.2345824,103.664572 40.2007594,103.834968 41.3909496,103.834968 C42.5811397,103.834968 43.5473167,103.664572 44.2902005,103.331896 Z" id="Path" fill="#921000" fill-rule="nonzero"></path>
<ellipse id="Oval-Copy-4" fill="#FFFFFF" fill-rule="nonzero" cx="44.4971649" cy="100.118108" rx="1" ry="1"></ellipse>
<path d="M70.8949759,50.0041797 C70.8949759,50.0120623 71.6193972,52.4693865 72.0003017,55.0309609 C72.36058,57.4538236 72.3784903,59.9893162 72.3784903,59.9744042 C72.4243721,61.5082851 72.4855479,63.5943627 69.2585219,66.8768674 C69.2891099,66.8615287 69.0597003,67.1069497 67.3314827,68.6101528 C69.9467501,74.2394949 70.6423464,80.6774339 70,86 L12,86 C11.3423596,80.5393847 12.0285146,74.1321234 14.5979003,68.5948138 C14.5826063,68.5794751 12.9614463,67.1529662 12.9767402,67.1683049 C11.2485225,65.4810361 9.53559871,63.256909 9.53559871,60.8487164 C9.53559871,60.8415363 9.35005086,59.4393285 9.58307734,56.6233709 C9.81610381,53.8074135 11.5849897,48.2555556 11.6920474,47.8260689 C15.8061233,33.2388635 29.8765688,16.0593993 34.6176969,17.1331158 C35.8412139,17.4092144 37.0494371,18.8817398 38.1506024,21.0598505 C38.8235366,22.4403431 39.6341168,24.679809 39.7870565,25.1246344 C42.4787938,25.0939568 42.0046808,25.1246344 42.2493842,25.1246344 C42.7846729,23.5447372 43.1517282,22.685764 43.1364342,22.7011028 C43.8858382,20.8757848 45.4764105,17.5779412 47.4034497,17.1331158 C52.2975175,16.0287217 67.3620705,34.4199517 70.8949759,50.0041797 Z" id="Path" fill="#FFFFFF" fill-rule="nonzero"></path>
<path d="M32.9005543,22.0030227 C33.9632333,21.9166069 34.963137,22.5361432 35.978631,23.6148879 C36.6603151,24.4308051 37.0102259,24.8507314 37.0283637,24.8746668 C37.4875608,25.480645 37.3693925,26.3447635 36.7644275,26.8047296 C36.1594625,27.2646955 35.296789,27.1463295 34.8375919,26.5403512 C34.5631227,26.1891291 34.4198088,26.0061091 34.4076495,25.9912914 L33.1728885,24.8178571 L33.1384887,24.798296 L32.0197051,26.2775265 C31.9500815,26.3939059 31.7084094,26.8657945 31.2946888,27.6931921 C30.9779248,28.3846418 30.1615433,28.6879542 29.47125,28.3706594 C28.7809567,28.0533646 28.4781515,27.235616 28.7949158,26.5441664 L29.0689613,25.9638374 C29.1878866,25.7204046 29.3830239,25.3563548 29.6543732,24.871688 C30.6704437,23.1393033 31.6883779,22.0919358 32.9005543,22.0030227 Z" id="Path" fill="#CABCB4" fill-rule="nonzero"></path>
<path d="M59.9250284,70.470417 C60.5907959,70.1042935 61.4268122,70.3481069 61.7923232,71.0149891 C62.1578345,71.6818714 61.9144291,72.5192879 61.2486619,72.8854114 C60.1708094,73.4781517 59.0331217,74.0465634 57.8643917,74.5832575 C55.8344814,75.4507908 54.7945054,75.8944644 54.7444634,75.9142781 L51.8208614,76.9938019 C51.5229846,77.0959534 50.0797605,77.5328586 47.491189,78.304518 C47.4452449,78.3164594 46.5898273,78.5127288 44.9249362,78.893326 C43.4299582,79.1856826 42.1080728,79.3443299 41.0564553,79.3443299 C39.7814992,79.3443299 38.1093584,79.1134956 36.2126274,78.6955434 L32.8971008,77.8402262 C32.8490086,77.8261773 31.6650748,77.4418378 29.3453003,76.6872075 C26.736758,75.6646865 25.3828749,75.131972 25.2836511,75.0890648 L21.8072286,73.4496944 C21.2548316,73.1588395 20.910981,72.9764413 20.7756767,72.9025001 C20.1089447,72.5381424 19.863328,71.7013738 20.2270764,71.0335251 C20.5908248,70.3656764 21.4261942,70.1196484 22.0929262,70.4840061 C22.7318509,70.8331674 23.3937206,71.1735498 24.0714476,71.5034171 L27.4172895,72.9989161 C27.488322,73.0280935 30.9737702,74.3390457 31.0442904,74.3632022 L35.1284016,75.6037967 C35.2146311,75.6264167 36.2946166,75.8645387 38.3683587,76.3181626 C39.4050158,76.4949659 40.317253,76.5893204 41.0564553,76.5893204 C41.7147312,76.5893204 42.510705,76.5135554 43.4097792,76.3706031 C46.5152503,75.6523601 48.0902116,75.2867992 48.134663,75.2739207 L51.0179006,74.3573626 L54.4143724,73.0773393 C57.0968824,71.8689821 58.7409958,71.1041222 59.3467129,70.7827604 L59.7335668,70.5750708 C59.7976103,70.5402751 59.8614333,70.5053898 59.9250284,70.470417 Z" id="Path" fill="#CABCB4" fill-rule="nonzero"></path>
<path d="M40.0929357,54.7745486 C41.2246887,56.3697845 43.3046677,57.4895174 45.7517016,57.6275669 L45.7517016,58.3178131 C45.7517016,62.6740343 44.4670088,66.20196 40.9952794,66.20196 C37.5694319,66.20196 36.269445,62.7353895 36.238857,58.4405236 C36.238857,57.8269714 36.238857,57.453727 36.238857,57.3207907 C37.8906051,56.8759652 39.2517677,55.9709755 40.0929357,54.7745486 Z" id="Path" fill="#F23C57" fill-rule="nonzero"></path>
<path d="M26.6340641,50.4251868 C27.3745179,50.2558692 28.1118037,50.7198721 28.2808382,51.461566 C28.7065264,53.3294131 29.7587676,54.9294245 31.2167327,55.89599 C34.1148977,57.8173434 37.83215,56.6634823 39.5688565,53.2180259 C39.9111724,52.5389048 40.7382899,52.266335 41.4162753,52.6092239 C42.0942609,52.9521132 42.366375,53.7806161 42.0240593,54.459737 C39.5681884,59.3319447 34.0158382,61.0554331 29.6987457,58.1933943 C27.6315698,56.8229494 26.1777382,54.6122898 25.5994178,52.0747189 C25.4303833,51.333025 25.8936103,50.5945044 26.6340641,50.4251868 Z" id="Path" fill="#000000" fill-rule="nonzero"></path>
<path d="M52.9909044,51.461566 C53.1599388,50.7198721 53.8972246,50.2558692 54.6376784,50.4251868 C55.3781321,50.5945044 55.8413591,51.333025 55.6723247,52.0747189 C55.0940043,54.6122898 53.6401726,56.8229494 51.5729968,58.1933943 C47.2559044,61.0554331 41.7035539,59.3319447 39.2476833,54.459737 C38.9053676,53.7806161 39.1774816,52.9521132 39.855467,52.6092239 C40.5334526,52.266335 41.3605702,52.5389048 41.7028861,53.2180259 C43.4395926,56.6634823 47.1568449,57.8173434 50.0550098,55.89599 C51.5129747,54.9294245 52.5652162,53.3294131 52.9909044,51.461566 Z" id="Path-Copy" fill="#000000" fill-rule="nonzero"></path>
<path d="M40.7505761,54.8205651 C42.8611428,54.8205651 45.8128774,51.7221261 45.8128774,49.09919 C45.8128774,46.476254 43.9776021,46.2001555 40.6741062,46.2001555 C37.3706103,46.2001555 35.5353347,46.476254 35.5353347,49.09919 C35.5353347,51.7221261 38.6400091,54.8205651 40.7505761,54.8205651 Z" id="Oval" fill="#000000" fill-rule="nonzero"></path>
<path d="M30.8553824,39.7731952 C28.7448154,40.3407312 27.5671803,42.7949403 27.8424717,43.8226404 C28.1177631,44.8503404 30.1365662,45.5405868 32.2471329,44.9730509 C34.3576996,44.4055149 35.7341563,42.6722298 35.4894529,41.7672401 C35.2447496,40.8469117 32.9659491,39.2056593 30.8553824,39.7731952 Z" id="Oval-Copy-3" fill="#000000" fill-rule="nonzero"></path>
<path d="M51.1963522,39.7731952 C53.3069192,40.3407312 54.4845541,42.7949403 54.209263,43.8226404 C53.9339716,44.8503404 51.9151685,45.5405868 49.8046018,44.9730509 C47.6940348,44.4055149 46.3175784,42.6722298 46.5622817,41.7672401 C46.8069851,40.8622507 49.0704915,39.2056593 51.1963522,39.7731952 Z" id="Oval-Copy-4" fill="#000000" fill-rule="nonzero"></path>
<path d="M45.7813355,23.7146376 C46.8371928,22.5692392 47.8617144,21.9143328 48.9415635,22.0021877 C50.1390566,22.0900661 51.1399665,23.0960787 52.1293061,24.7546436 C52.4600732,25.3399201 52.7006813,25.7892418 52.8511305,26.1026089 C52.9734037,26.3628448 53.0423593,26.5100306 53.0579974,26.5441664 C53.3747617,27.235616 53.0719564,28.0533646 52.3816632,28.3706594 C51.6913699,28.6879542 50.8749883,28.3846418 50.5582241,27.6931921 L49.8271096,26.2672316 C49.491413,25.694874 48.783275,24.8567879 48.7380005,24.8181883 C48.3488479,25.0798893 48.05713,25.3133423 47.8628472,25.5185476 L47.0153213,26.5403512 C46.5561242,27.1463295 45.6934506,27.2646955 45.0884857,26.8047296 C44.4835207,26.3447635 44.3653523,25.480645 44.8245494,24.8746668 L45.7813355,23.7146376 Z" id="Path-Copy-2" fill="#CABCB4" fill-rule="nonzero"></path>
<path d="M31.2896089,42.4790225 C31.8868691,41.8800102 32.0805392,41.1030581 31.7221831,40.7436509 C31.3638265,40.3842439 30.5891458,40.5784819 29.9918848,41.1774934 C29.3946246,41.7765057 29.2009544,42.5534578 29.5593106,42.912865 C29.9176672,43.2722723 30.6923479,43.078034 31.2896089,42.4790225 Z" id="Oval-Copy-7" fill="#FFFFFF" fill-rule="nonzero"></path>
<path d="M49.6453766,42.6009969 C50.3537945,42.1396445 50.7043371,41.4200626 50.4283355,40.9937656 C50.1523337,40.5674683 49.3543034,40.5958857 48.645885,41.0572372 C47.9374671,41.5185893 47.5869243,42.2381712 47.8629261,42.6644685 C48.138928,43.0907656 48.9369579,43.0623482 49.6453766,42.6009969 Z" id="Oval-Copy-8" fill="#FFFFFF" fill-rule="nonzero"></path>
<path d="M66.9321135,93.0941704 C71.9620717,93.0941704 74.6224662,96.5136105 74.8597814,100.299269 C75.0903297,103.97698 74.8864994,109.734446 73.5737187,114 L60.4683894,114 C59.8201299,110.641304 59.0583435,106.103392 59.0708333,102.745914 C58.2703012,102.28342 57.7397077,101.942959 57.4790528,101.724531 C56.5230255,100.92338 56.0951503,100.289474 56.1653772,99.9268843 C56.4555779,98.4285457 57.6477029,98.1848639 59.3465338,98.3764862 C60.236099,95.4301945 62.7757854,93.0941704 66.9321135,93.0941704 Z" id="Path" fill="#4CBFEA" fill-rule="nonzero"></path>
<path d="M56.1519564,100.373352 C57.2689339,100.380813 63.9645721,102.365468 64.0937051,102.38832 C65.1453207,102.574417 65.8769584,102.36382 66.288618,101.756529 L66.2944157,102.136712 C66.1890419,109.90225 66.1357887,113.793885 66.134656,113.811617 L60.1997673,113.811617 C59.2619825,110.434873 58.9120016,106.12291 58.9244911,102.765448 L58.8393841,102.715796 C57.488709,101.858656 56.8090672,101.426269 56.8004585,101.418636 L56.7621593,101.384158 C56.4340734,101.084255 56.2067832,100.755525 56.1519564,100.373352 Z" id="Path" fill="#FFFFFF" fill-rule="nonzero"></path>
<path d="M68.5645035,97.8576051 C69.8975496,98.1911701 70.7084588,99.5456177 70.3762719,100.882752 C70.3182089,101.11647 70.0819904,101.258787 69.8486634,101.200627 C69.6153362,101.142467 69.4732566,100.905853 69.5313195,100.672135 C69.7475348,99.8018158 69.2199484,98.9205974 68.3534746,98.7037819 C67.4872995,98.4870414 66.6098296,99.0161801 66.3936885,99.8862008 C66.3356256,100.119919 66.099407,100.262236 65.8660801,100.204076 C65.6327528,100.145916 65.4906732,99.9093016 65.5487362,99.6755836 C65.8809975,98.338151 67.2311585,97.5239664 68.5645035,97.8576051 Z" id="Path" fill="#000000" fill-rule="nonzero"></path>
<path d="M65.9592058,101.164067 C66.1994035,101.174942 66.3853214,101.378802 66.3744647,101.619402 C66.3292722,102.620952 65.5149871,102.987632 64.2373853,102.761546 C64.1369462,102.743771 63.7052745,102.62541 62.9423702,102.406465 L61.4735479,101.894876 C59.6433036,101.262038 58.1973547,100.884541 56.4669046,100.671696 C56.2282541,100.642342 56.058546,100.424757 56.0878509,100.185707 C56.1171558,99.9466569 56.3343767,99.7766645 56.5730272,99.8060185 C58.2987428,100.018282 59.7490241,100.386981 61.5242211,100.99039 L63.1800754,101.566305 C63.8854556,101.772763 64.2883865,101.884883 64.3888678,101.902665 C65.1937817,102.045105 65.4720533,101.935096 65.5024952,101.611029 C65.646837,101.305804 65.7990738,101.156817 65.9592058,101.164067 Z" id="Path" fill="#1683AC" fill-rule="nonzero"></path>
<path d="M69.2123975,104.194477 C69.3360842,104.004652 69.5823186,103.943183 69.7787275,104.046354 L69.8149281,104.067637 L71.8902236,105.4244 C72.0010659,105.496865 72.0722933,105.615371 72.0854302,105.74574 L72.0876325,105.789589 L72.0876325,111.265095 C72.0876325,111.542059 71.8332283,111.748859 71.5626492,111.691844 C68.7210066,111.093063 67.3076337,108.622903 67.3076337,104.432827 C67.3076337,104.191981 67.5025513,103.996687 67.7429945,103.996687 C67.9834375,103.996687 68.178355,104.191981 68.178355,104.432827 C68.178355,107.939415 69.1827936,109.983657 71.1801596,110.682591 L71.2166861,110.694888 L71.2166861,106.025381 L69.3390246,104.798017 C69.1495176,104.674123 69.0881505,104.427476 69.1911501,104.230738 L69.2123975,104.194477 Z" id="Path-11" fill="#1683AC" fill-rule="nonzero"></path>
<path d="M73.5439784,99.765205 C73.3105091,99.8227905 73.0746408,99.6798917 73.0171516,99.4460314 C72.9491623,99.169458 72.8539178,98.8886295 72.7326859,98.6085366 C72.4652919,97.9907521 72.0768,97.3881683 71.5871927,96.8422213 C71.097609,96.2963169 70.5414024,95.8454825 69.9575326,95.5139879 C69.6928528,95.3637148 69.4247424,95.2393098 69.1580126,95.142558 C68.9319365,95.0605528 68.8150327,94.8104965 68.8969008,94.5840417 C68.9787689,94.3575869 69.2284071,94.2404874 69.4544833,94.3224926 C69.7677806,94.4361358 70.0802649,94.5811305 70.3868886,94.7552174 C71.0533499,95.1336038 71.6831002,95.6440466 72.2349403,96.2593639 C72.7867267,96.8746526 73.226468,97.5567291 73.5315572,98.2616042 C73.6719056,98.5858633 73.7828282,98.9129193 73.8626181,99.2374959 C73.9201076,99.4713562 73.7774475,99.7076196 73.5439784,99.765205 Z" id="Path" fill="#FFFFFF" fill-rule="nonzero"></path>
<path d="M17.0566343,91.2107623 C19.1691504,91.2107623 21.9975154,93.7271446 23.2722409,96.6746631 C24.8279544,100.271904 25.7864078,105.413595 25.7864078,106.50465 C25.7864078,106.966087 25.4556152,107.451901 24.9150599,107.925826 L24.0704404,108.554105 C24.6045043,109.714469 24.8510749,111.064375 24.8510749,112.504907 C24.8510749,112.85669 24.8280333,113.660466 24.7833831,114 L9.28534584,114 C9.24069562,113.660466 9.21765404,112.85669 9.21765404,112.504907 C9.21765404,111.099726 9.45227133,109.780777 9.95952763,108.63978 L9.75947568,108.502698 C8.8952793,107.890112 8.32686084,107.205759 8.32686084,106.50465 C8.32686084,105.249603 9.2775668,100.179388 10.8058353,96.649796 C12.0793069,93.7086667 14.9441182,91.2107623 17.0566343,91.2107623 Z" id="Path" fill="#112F40" fill-rule="nonzero"></path>
<path d="M17.0705483,101.691758 C17.7997477,101.691758 18.2881087,101.590751 18.6932669,101.472919 L19.4304722,101.242282 C19.7145196,101.161514 20.0111192,101.104267 20.3952178,101.110565 C22.2655508,101.141231 22.4701879,105.376799 22.4565026,107.336843 C22.4459332,108.850616 18.4819034,110.204057 17.0566343,110.204057 C15.6313652,110.204057 11.4446371,108.850616 11.4446371,107.271601 L11.4479151,106.807635 C11.4751714,105.013632 11.7184861,101.090885 13.7604969,101.090885 C14.0173964,101.090885 14.2442386,101.131504 14.4705466,101.19162 L15.4535958,101.488866 C15.8711487,101.600365 16.3769196,101.691758 17.0705483,101.691758 Z" id="Mask" fill="#000000" fill-rule="nonzero"></path>
<path d="M13.7604969,101.090885 C14.0173964,101.090885 14.2442386,101.131504 14.4705466,101.19162 L15.4535958,101.488866 C15.8711487,101.600365 16.3769196,101.691758 17.0705483,101.691758 C17.7997477,101.691758 18.2881087,101.590751 18.6932669,101.472919 L19.4304722,101.242282 C19.7145196,101.161514 20.0111192,101.104267 20.3952178,101.110565 C20.814183,101.117434 21.149566,101.3353 21.4176357,101.691319 L21.343961,103.485686 L21.0206641,105.647471 C20.229126,108.14204 18.9114691,108.850616 17.0789041,108.850616 C15.2463391,108.850616 13.939893,108.14204 13.1483549,105.647471 C13.0467586,105.090782 12.9484068,104.315482 12.8532995,103.321572 C12.809118,102.859857 12.7420749,101.530409 12.7417149,101.510236 C13.0182372,101.246586 13.3536701,101.090885 13.7604969,101.090885 Z" id="Path" fill="#FFFFFF" fill-rule="nonzero"></path>
<path d="M17.0566343,107.767862 C18.3357602,107.767862 19.3726967,106.459536 19.3726967,105.692586 C19.3726967,104.396945 18.3357602,104.158685 17.0566343,104.158685 C15.7775084,104.158685 14.740572,104.396945 14.740572,105.692586 C14.740572,106.459536 15.7775084,107.767862 17.0566343,107.767862 Z" id="Oval" fill="#0D222E" fill-rule="nonzero"></path>
<path d="M22.5514943,109.249521 C22.746438,109.141124 22.9921973,109.211549 23.100413,109.406819 C23.2086287,109.602089 23.1383217,109.84826 22.943378,109.956657 C22.472756,110.218343 21.6225831,110.59835 20.3928594,111.096677 C20.2765672,111.138352 20.0180506,111.224729 19.6173098,111.355806 C18.6005361,111.670521 17.6718474,111.857184 17.0582185,111.857184 C16.6832333,111.857184 15.8278904,111.690295 14.4921899,111.356519 C13.4164068,110.97155 12.8493324,110.766971 12.7909667,110.742782 C11.9338323,110.351522 11.3869967,110.090619 11.15046,109.960075 C10.9551746,109.852297 10.8840897,109.60635 10.9916875,109.410737 C11.0992853,109.215125 11.3448207,109.143921 11.5401061,109.251699 C11.9865528,109.498093 12.4715555,109.729708 12.9664902,109.939445 L15.3914133,110.772958 C16.0642095,110.948601 16.6520132,111.048401 17.0582185,111.048401 C17.4641206,111.048401 18.0500138,110.948543 18.7199873,110.772745 L19.8980163,110.413534 C20.4687448,110.216917 22.4405277,109.311223 22.5514943,109.249521 Z" id="Path" fill="#000000" fill-rule="nonzero"></path>
</g>
</svg>

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 117 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 114 KiB

View File

@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="84px" height="84px" viewBox="0 0 84 84" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>topic blue</title>
<defs>
<linearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="linearGradient-1">
<stop stop-color="#4BB7FF" offset="0%"></stop>
<stop stop-color="#015EC1" offset="100%"></stop>
</linearGradient>
<linearGradient x1="50%" y1="0%" x2="50%" y2="99.39588%" id="linearGradient-2">
<stop stop-color="#0888DF" offset="0%"></stop>
<stop stop-color="#0042AC" offset="100%"></stop>
</linearGradient>
</defs>
<g id="topic-blue" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<path d="M42,4.47368421 C52.6535116,4.47368421 62.3029461,8.44172846 69.286057,14.8715044 C76.2233062,21.2590526 80.5263158,30.0798831 80.5263158,39.8304382 C80.5263158,49.5809933 76.2233062,58.4018239 69.286057,64.7893721 C62.3029461,71.219148 52.6535116,75.1871923 42,75.1871923 C37.5267059,75.1871923 33.2308553,74.4877643 29.2348341,73.2001187 C29.0182529,73.1303293 28.8019654,73.0586229 28.5862413,72.9852481 C28.3948519,73.106612 28.2000814,73.2292009 28.0019297,73.3530173 C26.1800899,74.4914063 24.5768234,75.4183854 23.1902273,76.1332316 C19.9632993,77.7968433 15.8838664,78.895322 10.968708,79.4573148 L10.3331597,79.5269374 C10.8475353,78.5381033 11.3155893,77.6262907 11.7364879,76.7897918 L12.0856904,76.0911971 C13.1548056,73.9371347 13.8747553,72.3343394 14.2288664,71.2486595 C14.8154652,69.4501884 15.1095499,67.6701625 15.2363061,66.0328103 C15.2549358,65.7921643 15.2704685,65.5479168 15.2812363,65.2994157 C15.1072303,65.1457013 14.9345381,64.9902431 14.7631844,64.8330639 C7.79678435,58.4429296 3.47368421,49.6037286 3.47368421,39.8304382 C3.47368421,30.0798831 7.77669379,21.2590526 14.713943,14.8715044 C21.6970539,8.44172846 31.3464884,4.47368421 42,4.47368421 Z" id="Combined-Shape-Copy-2" stroke="url(#linearGradient-2)" stroke-width="2.94736842" fill="url(#linearGradient-1)"></path>
<path d="M9.68078613,24.6137047 C9.8721537,24.8136848 10.1894036,24.8206666 10.3893837,24.629299 C10.3964827,24.6225057 10.4033805,24.6155051 10.410082,24.6083194 C20.5178445,13.7276637 31.3141669,8.50123177 42.7990494,8.92902374 C54.2584365,9.35586606 64.9235425,15.3681505 74.7943671,26.9658769 C75.0309355,27.243826 75.4426222,27.2904538 75.7353592,27.0724506 C76.0315877,26.8518473 76.1075038,26.440096 75.9094038,26.1283693 C67.7821181,13.3374534 56.7453333,6.69089625 42.7990494,6.18869781 C28.8220513,5.68539338 17.7581791,11.5492352 9.60743269,23.7802233 C9.4336795,24.0409463 9.46416665,24.3873362 9.68078613,24.6137047 Z" id="Path-22" fill="#71D0FF" opacity="0.37491644"></path>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.8 KiB

View File

@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="84px" height="84px" viewBox="0 0 84 84" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>topic gray</title>
<defs>
<linearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="linearGradient-1">
<stop stop-color="#A5A5A5" offset="0%"></stop>
<stop stop-color="#616161" offset="100%"></stop>
</linearGradient>
<linearGradient x1="50%" y1="0%" x2="50%" y2="99.39588%" id="linearGradient-2">
<stop stop-color="#737373" offset="0%"></stop>
<stop stop-color="#565656" offset="100%"></stop>
</linearGradient>
</defs>
<g id="topic-gray" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<path d="M42,4.47368421 C52.6535116,4.47368421 62.3029461,8.44172846 69.286057,14.8715044 C76.2233062,21.2590526 80.5263158,30.0798831 80.5263158,39.8304382 C80.5263158,49.5809933 76.2233062,58.4018239 69.286057,64.7893721 C62.3029461,71.219148 52.6535116,75.1871923 42,75.1871923 C37.5267059,75.1871923 33.2308553,74.4877643 29.2348341,73.2001187 C29.0182529,73.1303293 28.8019654,73.0586229 28.5862413,72.9852481 C28.3948519,73.106612 28.2000814,73.2292009 28.0019297,73.3530173 C26.1800899,74.4914063 24.5768234,75.4183854 23.1902273,76.1332316 C19.9632993,77.7968433 15.8838664,78.895322 10.968708,79.4573148 L10.3331597,79.5269374 C10.8475353,78.5381033 11.3155893,77.6262907 11.7364879,76.7897918 L12.0856904,76.0911971 C13.1548056,73.9371347 13.8747553,72.3343394 14.2288664,71.2486595 C14.8154652,69.4501884 15.1095499,67.6701625 15.2363061,66.0328103 C15.2549358,65.7921643 15.2704685,65.5479168 15.2812363,65.2994157 C15.1072303,65.1457013 14.9345381,64.9902431 14.7631844,64.8330639 C7.79678435,58.4429296 3.47368421,49.6037286 3.47368421,39.8304382 C3.47368421,30.0798831 7.77669379,21.2590526 14.713943,14.8715044 C21.6970539,8.44172846 31.3464884,4.47368421 42,4.47368421 Z" id="Combined-Shape-Copy-2" stroke="url(#linearGradient-2)" stroke-width="2.94736842" fill="url(#linearGradient-1)"></path>
<path d="M9.68078613,24.6137047 C9.8721537,24.8136848 10.1894036,24.8206666 10.3893837,24.629299 C10.3964827,24.6225057 10.4033805,24.6155051 10.410082,24.6083194 C20.5178445,13.7276637 31.3141669,8.50123177 42.7990494,8.92902374 C54.2584365,9.35586606 64.9235425,15.3681505 74.7943671,26.9658769 C75.0309355,27.243826 75.4426222,27.2904538 75.7353592,27.0724506 C76.0315877,26.8518473 76.1075038,26.440096 75.9094038,26.1283693 C67.7821181,13.3374534 56.7453333,6.69089625 42.7990494,6.18869781 C28.8220513,5.68539338 17.7581791,11.5492352 9.60743269,23.7802233 C9.4336795,24.0409463 9.46416665,24.3873362 9.68078613,24.6137047 Z" id="Path-22" fill="#B8B8B8" opacity="0.37491644"></path>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.8 KiB

View File

@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="84px" height="84px" viewBox="0 0 84 84" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>topic green</title>
<defs>
<linearGradient x1="50%" y1="0%" x2="50%" y2="99.7635421%" id="linearGradient-1">
<stop stop-color="#97E334" offset="0%"></stop>
<stop stop-color="#11B411" offset="100%"></stop>
</linearGradient>
<linearGradient x1="50%" y1="0%" x2="50%" y2="98.9250576%" id="linearGradient-2">
<stop stop-color="#48AF18" offset="0%"></stop>
<stop stop-color="#05951A" offset="100%"></stop>
</linearGradient>
</defs>
<g id="topic-green" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<path d="M42,4.42105263 C52.6675181,4.42105263 62.3294728,8.39460913 69.3217075,14.8327858 C76.2697184,21.230243 80.5789474,30.0648871 80.5789474,39.8304382 C80.5789474,49.5959894 76.2697184,58.4306335 69.3217075,64.8280906 C62.3294728,71.2662674 52.6675181,75.2398239 42,75.2398239 C37.5210466,75.2398239 33.2197662,74.5394876 29.2186919,73.2502137 C29.0098956,73.1829329 28.8013719,73.1138726 28.5929684,73.0432995 C28.4083865,73.1602808 28.2206704,73.2783974 28.0298198,73.3976517 C26.2065565,74.5369301 24.6020235,75.4646079 23.2143446,76.1800123 C19.9826132,77.8461004 15.8972513,78.9467661 10.9744394,79.5096334 L10.3380323,79.5793501 C12.3422829,75.5502987 13.657562,72.8305079 14.1788292,71.2323391 C14.7640488,69.4380965 15.0573738,67.6622454 15.1838316,66.0287479 C15.2017691,65.7970433 15.21683,65.561992 15.2283048,65.3228731 C15.0601712,65.1741519 14.8932645,65.0238038 14.727607,64.8718496 C7.75040024,58.4718025 3.42105263,49.6187586 3.42105263,39.8304382 C3.42105263,30.0648871 7.7302816,21.230243 14.6782925,14.8327858 C21.6705272,8.39460913 31.3324819,4.42105263 42,4.42105263 Z" id="Combined-Shape-Copy-2" stroke="url(#linearGradient-2)" stroke-width="2.84210526" fill="url(#linearGradient-1)"></path>
<path d="M9.68078613,24.6137047 C9.8721537,24.8136848 10.1894036,24.8206666 10.3893837,24.629299 C10.3964827,24.6225057 10.4033805,24.6155051 10.410082,24.6083194 C20.5178445,13.7276637 31.3141669,8.50123177 42.7990494,8.92902374 C54.2584365,9.35586606 64.9235425,15.3681505 74.7943671,26.9658769 C75.0309355,27.243826 75.4426222,27.2904538 75.7353592,27.0724506 C76.0315877,26.8518473 76.1075038,26.440096 75.9094038,26.1283693 C67.7821181,13.3374534 56.7453333,6.69089625 42.7990494,6.18869781 C28.8220513,5.68539338 17.7581791,11.5492352 9.60743269,23.7802233 C9.4336795,24.0409463 9.46416665,24.3873362 9.68078613,24.6137047 Z" id="Path-22" fill="#C2FF71" opacity="0.37491644"></path>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="84px" height="84px" viewBox="0 0 84 84" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>topic red</title>
<defs>
<linearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="linearGradient-1">
<stop stop-color="#FF714C" offset="0%"></stop>
<stop stop-color="#C61505" offset="100%"></stop>
</linearGradient>
<linearGradient x1="50%" y1="0%" x2="50%" y2="98.6056043%" id="linearGradient-2">
<stop stop-color="#E12F1F" offset="0%"></stop>
<stop stop-color="#B40101" offset="100%"></stop>
</linearGradient>
</defs>
<g id="topic-red" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<path d="M42,4.42105263 C52.6675181,4.42105263 62.3294728,8.39460913 69.3217075,14.8327858 C76.2697184,21.230243 80.5789474,30.0648871 80.5789474,39.8304382 C80.5789474,49.5959894 76.2697184,58.4306335 69.3217075,64.8280906 C62.3294728,71.2662674 52.6675181,75.2398239 42,75.2398239 C37.5210466,75.2398239 33.2197662,74.5394876 29.2186919,73.2502137 C29.0098956,73.1829329 28.8013719,73.1138726 28.5929684,73.0432995 C28.4083865,73.1602808 28.2206704,73.2783974 28.0298198,73.3976517 C26.2065565,74.5369301 24.6020235,75.4646079 23.2143446,76.1800123 C19.9826132,77.8461004 15.8972513,78.9467661 10.9744394,79.5096334 L10.3380323,79.5793501 C12.3422829,75.5502987 13.657562,72.8305079 14.1788292,71.2323391 C14.7640488,69.4380965 15.0573738,67.6622454 15.1838316,66.0287479 C15.2017691,65.7970433 15.21683,65.561992 15.2283048,65.3228731 C15.0601712,65.1741519 14.8932645,65.0238038 14.727607,64.8718496 C7.75040024,58.4718025 3.42105263,49.6187586 3.42105263,39.8304382 C3.42105263,30.0648871 7.7302816,21.230243 14.6782925,14.8327858 C21.6705272,8.39460913 31.3324819,4.42105263 42,4.42105263 Z" id="Combined-Shape-Copy-2" stroke="url(#linearGradient-2)" stroke-width="2.84210526" fill="url(#linearGradient-1)"></path>
<path d="M9.68078613,24.6137047 C9.8721537,24.8136848 10.1894036,24.8206666 10.3893837,24.629299 C10.3964827,24.6225057 10.4033805,24.6155051 10.410082,24.6083194 C20.5178445,13.7276637 31.3141669,8.50123177 42.7990494,8.92902374 C54.2584365,9.35586606 64.9235425,15.3681505 74.7943671,26.9658769 C75.0309355,27.243826 75.4426222,27.2904538 75.7353592,27.0724506 C76.0315877,26.8518473 76.1075038,26.440096 75.9094038,26.1283693 C67.7821181,13.3374534 56.7453333,6.69089625 42.7990494,6.18869781 C28.8220513,5.68539338 17.7581791,11.5492352 9.60743269,23.7802233 C9.4336795,24.0409463 9.46416665,24.3873362 9.68078613,24.6137047 Z" id="Path-22" fill="#FFB47D" opacity="0.37491644"></path>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="84px" height="84px" viewBox="0 0 84 84" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>topic rose</title>
<defs>
<linearGradient x1="50%" y1="4.31422203%" x2="50%" y2="99.6023762%" id="linearGradient-1">
<stop stop-color="#FF7999" offset="0%"></stop>
<stop stop-color="#E4215A" offset="98.5968743%"></stop>
</linearGradient>
<linearGradient x1="50%" y1="0%" x2="50%" y2="96.4024371%" id="linearGradient-2">
<stop stop-color="#F83B72" offset="0%"></stop>
<stop stop-color="#BA0940" offset="100%"></stop>
</linearGradient>
</defs>
<g id="topic-rose" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<path d="M42,4.42105263 C52.6675181,4.42105263 62.3294728,8.39460913 69.3217075,14.8327858 C76.2697184,21.230243 80.5789474,30.0648871 80.5789474,39.8304382 C80.5789474,49.5959894 76.2697184,58.4306335 69.3217075,64.8280906 C62.3294728,71.2662674 52.6675181,75.2398239 42,75.2398239 C37.5210466,75.2398239 33.2197662,74.5394876 29.2186919,73.2502137 C29.0098956,73.1829329 28.8013719,73.1138726 28.5929684,73.0432995 C28.4083865,73.1602808 28.2206704,73.2783974 28.0298198,73.3976517 C26.2065565,74.5369301 24.6020235,75.4646079 23.2143446,76.1800123 C19.9826132,77.8461004 15.8972513,78.9467661 10.9744394,79.5096334 L10.3380323,79.5793501 C12.3422829,75.5502987 13.657562,72.8305079 14.1788292,71.2323391 C14.7640488,69.4380965 15.0573738,67.6622454 15.1838316,66.0287479 C15.2017691,65.7970433 15.21683,65.561992 15.2283048,65.3228731 C15.0601712,65.1741519 14.8932645,65.0238038 14.727607,64.8718496 C7.75040024,58.4718025 3.42105263,49.6187586 3.42105263,39.8304382 C3.42105263,30.0648871 7.7302816,21.230243 14.6782925,14.8327858 C21.6705272,8.39460913 31.3324819,4.42105263 42,4.42105263 Z" id="Combined-Shape-Copy-2" stroke="url(#linearGradient-2)" stroke-width="2.84210526" fill="url(#linearGradient-1)"></path>
<path d="M9.68078613,24.6137047 C9.8721537,24.8136848 10.1894036,24.8206666 10.3893837,24.629299 C10.3964827,24.6225057 10.4033805,24.6155051 10.410082,24.6083194 C20.5178445,13.7276637 31.3141669,8.50123177 42.7990494,8.92902374 C54.2584365,9.35586606 64.9235425,15.3681505 74.7943671,26.9658769 C75.0309355,27.243826 75.4426222,27.2904538 75.7353592,27.0724506 C76.0315877,26.8518473 76.1075038,26.440096 75.9094038,26.1283693 C67.7821181,13.3374534 56.7453333,6.69089625 42.7990494,6.18869781 C28.8220513,5.68539338 17.7581791,11.5492352 9.60743269,23.7802233 C9.4336795,24.0409463 9.46416665,24.3873362 9.68078613,24.6137047 Z" id="Path-22" fill="#FFC7D6" opacity="0.37491644"></path>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="84px" height="84px" viewBox="0 0 84 84" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>topic violet</title>
<defs>
<linearGradient x1="50%" y1="0%" x2="50%" y2="99.7635421%" id="linearGradient-1">
<stop stop-color="#E57AFF" offset="0%"></stop>
<stop stop-color="#A438BB" offset="99.8550522%"></stop>
</linearGradient>
<linearGradient x1="50%" y1="0%" x2="50%" y2="99.39588%" id="linearGradient-2">
<stop stop-color="#B239D1" offset="0%"></stop>
<stop stop-color="#7C279A" offset="100%"></stop>
</linearGradient>
</defs>
<g id="topic-violet" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<path d="M42,4.42105263 C52.6675181,4.42105263 62.3294728,8.39460913 69.3217075,14.8327858 C76.2697184,21.230243 80.5789474,30.0648871 80.5789474,39.8304382 C80.5789474,49.5959894 76.2697184,58.4306335 69.3217075,64.8280906 C62.3294728,71.2662674 52.6675181,75.2398239 42,75.2398239 C37.5210466,75.2398239 33.2197662,74.5394876 29.2186919,73.2502137 C29.0098956,73.1829329 28.8013719,73.1138726 28.5929684,73.0432995 C28.4083865,73.1602808 28.2206704,73.2783974 28.0298198,73.3976517 C26.2065565,74.5369301 24.6020235,75.4646079 23.2143446,76.1800123 C19.9826132,77.8461004 15.8972513,78.9467661 10.9744394,79.5096334 L10.3380323,79.5793501 C12.3422829,75.5502987 13.657562,72.8305079 14.1788292,71.2323391 C14.7640488,69.4380965 15.0573738,67.6622454 15.1838316,66.0287479 C15.2017691,65.7970433 15.21683,65.561992 15.2283048,65.3228731 C15.0601712,65.1741519 14.8932645,65.0238038 14.727607,64.8718496 C7.75040024,58.4718025 3.42105263,49.6187586 3.42105263,39.8304382 C3.42105263,30.0648871 7.7302816,21.230243 14.6782925,14.8327858 C21.6705272,8.39460913 31.3324819,4.42105263 42,4.42105263 Z" id="Combined-Shape-Copy-2" stroke="url(#linearGradient-2)" stroke-width="2.84210526" fill="url(#linearGradient-1)"></path>
<path d="M9.68078613,24.6137047 C9.8721537,24.8136848 10.1894036,24.8206666 10.3893837,24.629299 C10.3964827,24.6225057 10.4033805,24.6155051 10.410082,24.6083194 C20.5178445,13.7276637 31.3141669,8.50123177 42.7990494,8.92902374 C54.2584365,9.35586606 64.9235425,15.3681505 74.7943671,26.9658769 C75.0309355,27.243826 75.4426222,27.2904538 75.7353592,27.0724506 C76.0315877,26.8518473 76.1075038,26.440096 75.9094038,26.1283693 C67.7821181,13.3374534 56.7453333,6.69089625 42.7990494,6.18869781 C28.8220513,5.68539338 17.7581791,11.5492352 9.60743269,23.7802233 C9.4336795,24.0409463 9.46416665,24.3873362 9.68078613,24.6137047 Z" id="Path-22" fill="#F5BDFF" opacity="0.37491644"></path>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="84px" height="84px" viewBox="0 0 84 84" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>topic yellow</title>
<defs>
<linearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="linearGradient-1">
<stop stop-color="#FFDB5C" offset="0%"></stop>
<stop stop-color="#EA5800" offset="100%"></stop>
</linearGradient>
<linearGradient x1="50%" y1="0%" x2="50%" y2="99.0141482%" id="linearGradient-2">
<stop stop-color="#F2A807" offset="0%"></stop>
<stop stop-color="#D93A00" offset="100%"></stop>
</linearGradient>
</defs>
<g id="topic-yellow" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<path d="M42,4.42105263 C52.6675181,4.42105263 62.3294728,8.39460913 69.3217075,14.8327858 C76.2697184,21.230243 80.5789474,30.0648871 80.5789474,39.8304382 C80.5789474,49.5959894 76.2697184,58.4306335 69.3217075,64.8280906 C62.3294728,71.2662674 52.6675181,75.2398239 42,75.2398239 C37.5210466,75.2398239 33.2197662,74.5394876 29.2186919,73.2502137 C29.0098956,73.1829329 28.8013719,73.1138726 28.5929684,73.0432995 C28.4083865,73.1602808 28.2206704,73.2783974 28.0298198,73.3976517 C26.2065565,74.5369301 24.6020235,75.4646079 23.2143446,76.1800123 C19.9826132,77.8461004 15.8972513,78.9467661 10.9744394,79.5096334 L10.3380323,79.5793501 C12.3422829,75.5502987 13.657562,72.8305079 14.1788292,71.2323391 C14.7640488,69.4380965 15.0573738,67.6622454 15.1838316,66.0287479 C15.2017691,65.7970433 15.21683,65.561992 15.2283048,65.3228731 C15.0601712,65.1741519 14.8932645,65.0238038 14.727607,64.8718496 C7.75040024,58.4718025 3.42105263,49.6187586 3.42105263,39.8304382 C3.42105263,30.0648871 7.7302816,21.230243 14.6782925,14.8327858 C21.6705272,8.39460913 31.3324819,4.42105263 42,4.42105263 Z" id="Combined-Shape-Copy-2" stroke="url(#linearGradient-2)" stroke-width="2.84210526" fill="url(#linearGradient-1)"></path>
<path d="M9.68078613,24.6137047 C9.8721537,24.8136848 10.1894036,24.8206666 10.3893837,24.629299 C10.3964827,24.6225057 10.4033805,24.6155051 10.410082,24.6083194 C20.5178445,13.7276637 31.3141669,8.50123177 42.7990494,8.92902374 C54.2584365,9.35586606 64.9235425,15.3681505 74.7943671,26.9658769 C75.0309355,27.243826 75.4426222,27.2904538 75.7353592,27.0724506 C76.0315877,26.8518473 76.1075038,26.440096 75.9094038,26.1283693 C67.7821181,13.3374534 56.7453333,6.69089625 42.7990494,6.18869781 C28.8220513,5.68539338 17.7581791,11.5492352 9.60743269,23.7802233 C9.4336795,24.0409463 9.46416665,24.3873362 9.68078613,24.6137047 Z" id="Path-22" fill="#F9FF71" opacity="0.37491644"></path>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB

After

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 MiB

After

Width:  |  Height:  |  Size: 1.3 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 MiB

After

Width:  |  Height:  |  Size: 1.3 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 MiB

After

Width:  |  Height:  |  Size: 1.3 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 MiB

After

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 862 KiB

After

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 98 KiB

After

Width:  |  Height:  |  Size: 821 KiB

View File

@@ -291,6 +291,8 @@ div.selected {
.default .text {
word-wrap: break-word;
line-height: 150%;
unicode-bidi: plaintext;
text-align: start;
}
.default .reply_to,
.default .media_wrap {
@@ -529,3 +531,16 @@ div.toast_shown {
background-image: url(../images/media_video@2x.png)
}
}
.spoiler {
background: #e8e8e8;
}
.spoiler.hidden {
background: #a9a9a9;
cursor: pointer;
border-radius: 3px;
}
.spoiler.hidden span {
opacity: 0;
user-select: none;
}

View File

@@ -52,6 +52,22 @@ function ShowMentionName() {
return false;
}
function ShowNotLoadedEmoji() {
ShowToast("This custom emoji is not included, change data exporting settings to download.");
return false;
}
function ShowNotAvailableEmoji() {
ShowToast("This custom emoji is not available.");
return false;
}
function ShowSpoiler(target) {
if (target.classList.contains("hidden")) {
target.classList.toggle("hidden");
}
}
function AddClass(element, name) {
var current = element.className;
var expression = new RegExp('(^|\\s)' + name + '(\\s|$)', 'g');

Binary file not shown.

Before

Width:  |  Height:  |  Size: 449 B

After

Width:  |  Height:  |  Size: 517 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 814 B

After

Width:  |  Height:  |  Size: 898 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 248 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 343 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 451 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 209 B

After

Width:  |  Height:  |  Size: 361 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 306 B

After

Width:  |  Height:  |  Size: 627 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 449 B

After

Width:  |  Height:  |  Size: 809 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 211 B

After

Width:  |  Height:  |  Size: 366 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 298 B

After

Width:  |  Height:  |  Size: 626 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 443 B

After

Width:  |  Height:  |  Size: 839 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 305 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 524 B

Some files were not shown because too many files have changed in this diff Show More