Updated TDesktop sources to 2.6

This commit is contained in:
Eric Kotato 2021-02-25 00:09:00 +03:00
commit 8d9e17482c
574 changed files with 17884 additions and 8895 deletions

21
.github/lock.yml vendored Normal file
View file

@ -0,0 +1,21 @@
# Number of days of inactivity before a closed issue or pull request is locked
daysUntilLock: 45
# Skip issues and pull requests created before a given timestamp. Timestamp must
# follow ISO 8601 (`YYYY-MM-DD`). Set to `false` to disable
skipCreatedBefore: false
# Issues and pull requests with these labels will be ignored. Set to `[]` to disable
exemptLabels: []
# Label to add before locking, such as `outdated`. Set to `false` to disable
lockLabel: false
# Comment to post before locking. Set to `false` to disable
lockComment: >
This thread has been automatically locked since there has not been
any recent activity after it was closed. Please open a new issue for
related bugs.
# Assign `resolved` as the reason for locking. Set to `false` to disable
setLockReason: true

11
.github/no-response.yml vendored Normal file
View file

@ -0,0 +1,11 @@
# 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.

View file

@ -0,0 +1,16 @@
name: Copyright year updater.
on:
repository_dispatch:
types: ["Restart copyright_year_updater workflow."]
schedule:
# At 03:00 on January 1.
- cron: "0 3 1 1 *"
jobs:
Copyright-year:
runs-on: ubuntu-latest
steps:
- uses: desktop-app/action_code_updater@master
with:
type: "license-year"

View file

@ -69,8 +69,9 @@ jobs:
defines: defines:
- "" - ""
- "DESKTOP_APP_DISABLE_DBUS_INTEGRATION" - "DESKTOP_APP_DISABLE_DBUS_INTEGRATION"
- "DESKTOP_APP_DISABLE_X11_INTEGRATION"
- "DESKTOP_APP_DISABLE_WAYLAND_INTEGRATION" - "DESKTOP_APP_DISABLE_WAYLAND_INTEGRATION"
- "TDESKTOP_DISABLE_GTK_INTEGRATION" - "DESKTOP_APP_DISABLE_GTK_INTEGRATION"
env: env:
UPLOAD_ARTIFACT: "false" UPLOAD_ARTIFACT: "false"

View file

@ -109,6 +109,8 @@ jobs:
cd Libraries/macos cd Libraries/macos
echo "LibrariesPath=`pwd`" >> $GITHUB_ENV 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. - name: Patches.
run: | run: |
echo "Find necessary commit from doc." echo "Find necessary commit from doc."
@ -482,7 +484,7 @@ jobs:
uses: actions/cache@v2 uses: actions/cache@v2
with: with:
path: ${{ env.LibrariesPath }}/tg_owt path: ${{ env.LibrariesPath }}/tg_owt
key: ${{ runner.OS }}-webrtc-${{ env.CACHE_KEY }} key: ${{ runner.OS }}-webrtc-${{ env.CACHE_KEY }}-${{ hashFiles('**/tg_owt-version.json') }}
- name: WebRTC. - name: WebRTC.
if: steps.cache-webrtc.outputs.cache-hit != 'true' if: steps.cache-webrtc.outputs.cache-hit != 'true'
run: | run: |

View file

@ -1,53 +0,0 @@
name: Release Snap
on:
release:
types: [created]
jobs:
linux:
name: Ubuntu
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
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: Kotatogram Desktop snap build.
run: sg lxd -c 'snap run snapcraft --use-lxd'
- name: Get artifact name
run: |
artifact_name=$(echo kotatogram-desktop_*.snap)
echo "ARTIFACT_NAME=$artifact_name" >> $GITHUB_ENV
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./${{ env.ARTIFACT_NAME }}
asset_name: ${{ env.ARTIFACT_NAME }}
asset_content_type: application/octet-stream

View file

@ -1,97 +0,0 @@
name: Snap.
on:
push:
paths-ignore:
- 'docs/**'
- '**.md'
- 'kotatogram_changes.txt'
- 'changelog.txt'
- 'LEGAL'
- 'LICENSE'
- '.github/**'
- '!.github/workflows/snap.yml'
- 'Telegram/build/**'
- 'Telegram/Patches/**'
- 'Telegram/Resources/uwp/**'
- 'Telegram/Resources/winrc/**'
- 'Telegram/SourceFiles/platform/win/**'
- 'Telegram/SourceFiles/platform/mac/**'
- 'Telegram/Telegram/**'
- 'Telegram/configure.bat'
- 'Telegram/Telegram.plist'
pull_request:
paths-ignore:
- 'docs/**'
- '**.md'
- 'kotatogram_changes.txt'
- 'changelog.txt'
- 'LEGAL'
- 'LICENSE'
- '.github/**'
- '!.github/workflows/snap.yml'
- 'Telegram/build/**'
- 'Telegram/Patches/**'
- 'Telegram/Resources/uwp/**'
- 'Telegram/Resources/winrc/**'
- 'Telegram/SourceFiles/platform/win/**'
- 'Telegram/SourceFiles/platform/mac/**'
- 'Telegram/Telegram/**'
- 'Telegram/configure.bat'
- 'Telegram/Telegram.plist'
jobs:
linux:
name: Ubuntu
if: >
!(github.event_name == 'push'
&& contains(github.event.head_commit.message, '[skip ci]'))
&& !(github.event_name == 'pull_request'
&& github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name)
runs-on: ubuntu-latest
env:
UPLOAD_ARTIFACT: "false"
steps:
- name: Clone.
uses: actions/checkout@v2
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: Kotatogram Desktop snap build.
run: sg lxd -c 'snap run snapcraft --use-lxd'
- name: Move artifact.
if: env.UPLOAD_ARTIFACT == 'true'
run: |
artifact_name=$(echo kotatogram-desktop_*.snap)
echo "ARTIFACT_NAME=$artifact_name" >> $GITHUB_ENV
mkdir artifact
mv $artifact_name artifact
- uses: actions/upload-artifact@master
if: env.UPLOAD_ARTIFACT == 'true'
name: Upload artifact.
with:
name: ${{ env.ARTIFACT_NAME }}
path: artifact

View file

@ -5,152 +5,14 @@ on:
types: ["Restart user_agent_updater workflow."] types: ["Restart user_agent_updater workflow."]
schedule: schedule:
# At 00:00 on day-of-month 1. # At 00:00 on day-of-month 1.
- cron: '0 0 1 * *' - cron: "0 0 1 * *"
pull_request_target: pull_request_target:
types: [closed] types: [closed]
jobs: jobs:
User-agent: User-agent:
runs-on: ubuntu-latest runs-on: ubuntu-latest
env:
codeFile: "Telegram/SourceFiles/mtproto/details/mtproto_domain_resolver.cpp"
headBranchPrefix: "chrome_"
baseBranch: "dev"
isPull: "0"
steps: steps:
- name: Set env. - uses: desktop-app/action_code_updater@master
if: startsWith(github.event_name, 'pull_request')
run: |
echo "isPull=1" >> $GITHUB_ENV
- name: Clone.
uses: actions/checkout@v2
- name: Set up git.
run: |
token=${{ secrets.TOKEN_FOR_MASTER_UPDATER }}
if [ -z "${token}" ]; then
echo "Token is unset. Nothing to do."
exit 1
fi
url=https://x-access-token:$token@github.com/$GITHUB_REPOSITORY
git config --global user.email "action@github.com"
git config --global user.name "GitHub Action"
git remote set-url origin $url
- name: Delete branch.
env:
ref: ${{ github.event.pull_request.head.ref }}
if: |
env.isPull == '1'
&& github.event.action == 'closed'
&& startsWith(env.ref, env.headBranchPrefix)
run: |
git push origin --delete $ref
- name: Write a new version of Google Chrome to the user-agent for DNS.
if: env.isPull == '0'
shell: python
run: |
import subprocess, os, re;
regExpVersion = "[0-9]+.[0-9]+.[0-9]+.[0-9]+";
chrome = "Chrome/";
def newVersion():
output = subprocess.check_output(["google-chrome", "--version"]);
version = re.search(regExpVersion, output);
if not version:
print("Can't find a Chrome version.");
exit();
return version.group(0);
newChromeVersion = newVersion();
print(newChromeVersion);
def setEnv(value):
open(os.environ['GITHUB_ENV'], "a").write(value);
def writeUserAgent():
p = os.environ['codeFile'];
w = open(p, "r");
content = w.read();
w.close();
regExpChrome = chrome + regExpVersion;
version = re.search(regExpChrome, content);
if not version:
print("Can't find an user-agent in the code.");
exit();
content = re.sub(regExpChrome, chrome + newChromeVersion, content);
w = open(p, "w");
w.write(content);
setEnv("ChromeVersion=" + newChromeVersion);
writeUserAgent();
- name: Push to a new branch.
if: env.isPull == '0' && env.ChromeVersion != ''
run: |
git diff > git_diff.txt
if [[ ! -s git_diff.txt ]]; then
echo "Nothing to commit."
exit 0
fi
git checkout -b $headBranchPrefix$ChromeVersion
git add $codeFile
git commit -m "Update User-Agent for DNS to Chrome $ChromeVersion."
git push origin $headBranchPrefix$ChromeVersion
echo "Done!"
- name: Close previous pull requests.
if: env.isPull == '0' && env.ChromeVersion != ''
uses: actions/github-script@0.4.0
with: with:
github-token: ${{ secrets.GITHUB_TOKEN }} type: "user-agent"
script: |
const common = {
owner: context.repo.owner,
repo: context.repo.repo,
};
github.pulls.list(common).then(response => {
response.data.forEach((item, _) => {
if (item.head.ref.startsWith(process.env.headBranchPrefix)) {
console.log(`Close ${item.title} #${item.number}.`);
github.pulls.update({
pull_number: item.number,
state: "closed",
...common
});
}
});
});
- name: Create a new pull request.
if: env.isPull == '0' && env.ChromeVersion != ''
uses: actions/github-script@0.4.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const version = process.env.ChromeVersion;
const title = `Update User-Agent for DNS to Chrome ${version}.`;
github.pulls.create({
title: title,
body: "",
head: `${process.env.headBranchPrefix}${version}`,
base: process.env.baseBranch,
owner: context.repo.owner,
repo: context.repo.repo,
});

View file

@ -110,6 +110,7 @@ jobs:
- name: Generate cache key. - name: Generate cache key.
shell: bash shell: bash
run: | 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 echo $MANUAL_CACHING >> CACHE_KEY.txt
if [ "$AUTO_CACHING" == "1" ]; then if [ "$AUTO_CACHING" == "1" ]; then
thisFile=$REPO_NAME/.github/workflows/win.yml thisFile=$REPO_NAME/.github/workflows/win.yml
@ -366,7 +367,7 @@ jobs:
uses: actions/cache@v2 uses: actions/cache@v2
with: with:
path: ${{ env.LibrariesPath }}/tg_owt path: ${{ env.LibrariesPath }}/tg_owt
key: ${{ runner.OS }}-webrtc-${{ env.CACHE_KEY }} key: ${{ runner.OS }}-webrtc-${{ env.CACHE_KEY }}-${{ hashFiles('**/tg_owt-version.json') }}
- name: WebRTC. - name: WebRTC.
if: steps.cache-webrtc.outputs.cache-hit != 'true' if: steps.cache-webrtc.outputs.cache-hit != 'true'
run: | run: |

3
.gitmodules vendored
View file

@ -64,9 +64,6 @@
[submodule "Telegram/ThirdParty/hunspell"] [submodule "Telegram/ThirdParty/hunspell"]
path = Telegram/ThirdParty/hunspell path = Telegram/ThirdParty/hunspell
url = https://github.com/hunspell/hunspell url = https://github.com/hunspell/hunspell
[submodule "Telegram/ThirdParty/materialdecoration"]
path = Telegram/ThirdParty/materialdecoration
url = https://github.com/desktop-app/materialdecoration.git
[submodule "Telegram/ThirdParty/range-v3"] [submodule "Telegram/ThirdParty/range-v3"]
path = Telegram/ThirdParty/range-v3 path = Telegram/ThirdParty/range-v3
url = https://github.com/ericniebler/range-v3.git url = https://github.com/ericniebler/range-v3.git

2
LEGAL
View file

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

View file

@ -67,12 +67,12 @@ PRIVATE
desktop-app::external_auto_updates desktop-app::external_auto_updates
desktop-app::external_openssl desktop-app::external_openssl
desktop-app::external_openal desktop-app::external_openal
desktop-app::external_xxhash
) )
if (LINUX) if (LINUX)
target_link_libraries(Telegram target_link_libraries(Telegram
PRIVATE PRIVATE
desktop-app::external_xcb
desktop-app::external_glib desktop-app::external_glib
) )
@ -84,34 +84,38 @@ if (LINUX)
) )
endif() endif()
if (DESKTOP_APP_USE_PACKAGED if (NOT DESKTOP_APP_DISABLE_X11_INTEGRATION)
AND NOT DESKTOP_APP_DISABLE_WAYLAND_INTEGRATION target_link_libraries(Telegram
AND Qt5WaylandClient_VERSION VERSION_LESS 5.13.0)
find_package(PkgConfig REQUIRED)
pkg_check_modules(WAYLAND_CLIENT REQUIRED wayland-client)
target_include_directories(Telegram
PRIVATE PRIVATE
${WAYLAND_CLIENT_INCLUDE_DIRS} desktop-app::external_xcb
) )
endif() endif()
if (NOT TDESKTOP_DISABLE_GTK_INTEGRATION) if (NOT DESKTOP_APP_DISABLE_WAYLAND_INTEGRATION)
target_link_libraries(Telegram
PRIVATE
desktop-app::external_kwayland
)
endif()
if (NOT DESKTOP_APP_DISABLE_GTK_INTEGRATION)
find_package(PkgConfig REQUIRED) find_package(PkgConfig REQUIRED)
if (DESKTOP_APP_USE_PACKAGED AND NOT DESKTOP_APP_USE_PACKAGED_LAZY) if (DESKTOP_APP_USE_PACKAGED AND NOT DESKTOP_APP_USE_PACKAGED_LAZY)
pkg_check_modules(GTK3 REQUIRED IMPORTED_TARGET gtk+-3.0) pkg_check_modules(GTK3 REQUIRED IMPORTED_TARGET gtk+-3.0)
pkg_check_modules(X11 REQUIRED IMPORTED_TARGET x11) target_link_libraries(Telegram PRIVATE PkgConfig::GTK3)
target_link_libraries(Telegram if (NOT DESKTOP_APP_DISABLE_X11_INTEGRATION)
PRIVATE pkg_check_modules(X11 REQUIRED IMPORTED_TARGET x11)
PkgConfig::GTK3 target_link_libraries(Telegram PRIVATE PkgConfig::X11)
PkgConfig::X11 endif()
)
else() else()
pkg_search_module(GTK REQUIRED gtk+-3.0 gtk+-2.0) pkg_search_module(GTK REQUIRED gtk+-3.0 gtk+-2.0)
target_include_directories(Telegram PRIVATE ${GTK_INCLUDE_DIRS}) target_include_directories(Telegram PRIVATE ${GTK_INCLUDE_DIRS})
target_link_libraries(Telegram PRIVATE X11)
if (NOT DESKTOP_APP_DISABLE_X11_INTEGRATION)
target_link_libraries(Telegram PRIVATE X11)
endif()
endif() endif()
endif() endif()
endif() endif()
@ -138,6 +142,8 @@ PRIVATE
api/api_global_privacy.h api/api_global_privacy.h
api/api_hash.cpp api/api_hash.cpp
api/api_hash.h api/api_hash.h
api/api_invite_links.cpp
api/api_invite_links.h
api/api_media.cpp api/api_media.cpp
api/api_media.h api/api_media.h
api/api_self_destruct.cpp api/api_self_destruct.cpp
@ -172,6 +178,10 @@ PRIVATE
boxes/peers/edit_participants_box.h boxes/peers/edit_participants_box.h
boxes/peers/edit_peer_info_box.cpp boxes/peers/edit_peer_info_box.cpp
boxes/peers/edit_peer_info_box.h boxes/peers/edit_peer_info_box.h
boxes/peers/edit_peer_invite_link.cpp
boxes/peers/edit_peer_invite_link.h
boxes/peers/edit_peer_invite_links.cpp
boxes/peers/edit_peer_invite_links.h
boxes/peers/edit_peer_type_box.cpp boxes/peers/edit_peer_type_box.cpp
boxes/peers/edit_peer_type_box.h boxes/peers/edit_peer_type_box.h
boxes/peers/edit_peer_history_visibility_box.cpp boxes/peers/edit_peer_history_visibility_box.cpp
@ -192,8 +202,6 @@ PRIVATE
boxes/background_box.h boxes/background_box.h
boxes/background_preview_box.cpp boxes/background_preview_box.cpp
boxes/background_preview_box.h boxes/background_preview_box.h
boxes/calendar_box.cpp
boxes/calendar_box.h
boxes/change_phone_box.cpp boxes/change_phone_box.cpp
boxes/change_phone_box.h boxes/change_phone_box.h
boxes/confirm_box.cpp boxes/confirm_box.cpp
@ -232,8 +240,6 @@ PRIVATE
boxes/photo_crop_box.h boxes/photo_crop_box.h
boxes/rate_call_box.cpp boxes/rate_call_box.cpp
boxes/rate_call_box.h boxes/rate_call_box.h
boxes/report_box.cpp
boxes/report_box.h
boxes/self_destruction_box.cpp boxes/self_destruction_box.cpp
boxes/self_destruction_box.h boxes/self_destruction_box.h
boxes/send_files_box.cpp boxes/send_files_box.cpp
@ -258,6 +264,7 @@ PRIVATE
calls/calls_call.h calls/calls_call.h
calls/calls_group_call.cpp calls/calls_group_call.cpp
calls/calls_group_call.h calls/calls_group_call.h
calls/calls_group_common.h
calls/calls_group_members.cpp calls/calls_group_members.cpp
calls/calls_group_members.h calls/calls_group_members.h
calls/calls_group_panel.cpp calls/calls_group_panel.cpp
@ -278,6 +285,8 @@ PRIVATE
calls/calls_userpic.h calls/calls_userpic.h
calls/calls_video_bubble.cpp calls/calls_video_bubble.cpp
calls/calls_video_bubble.h calls/calls_video_bubble.h
calls/calls_volume_item.cpp
calls/calls_volume_item.h
chat_helpers/bot_keyboard.cpp chat_helpers/bot_keyboard.cpp
chat_helpers/bot_keyboard.h chat_helpers/bot_keyboard.h
chat_helpers/emoji_keywords.cpp chat_helpers/emoji_keywords.cpp
@ -486,6 +495,8 @@ PRIVATE
history/view/controls/compose_controls_common.h history/view/controls/compose_controls_common.h
history/view/controls/history_view_compose_controls.cpp history/view/controls/history_view_compose_controls.cpp
history/view/controls/history_view_compose_controls.h history/view/controls/history_view_compose_controls.h
history/view/controls/history_view_ttl_button.cpp
history/view/controls/history_view_ttl_button.h
history/view/controls/history_view_voice_record_bar.cpp history/view/controls/history_view_voice_record_bar.cpp
history/view/controls/history_view_voice_record_bar.h history/view/controls/history_view_voice_record_bar.h
history/view/controls/history_view_voice_record_button.cpp history/view/controls/history_view_voice_record_button.cpp
@ -829,12 +840,19 @@ PRIVATE
platform/linux/linux_gdk_helper.h platform/linux/linux_gdk_helper.h
platform/linux/linux_gsd_media_keys.cpp platform/linux/linux_gsd_media_keys.cpp
platform/linux/linux_gsd_media_keys.h platform/linux/linux_gsd_media_keys.h
platform/linux/linux_libs.cpp platform/linux/linux_gtk_file_dialog.cpp
platform/linux/linux_libs.h platform/linux/linux_gtk_file_dialog.h
platform/linux/linux_gtk_integration_p.h
platform/linux/linux_gtk_integration.cpp
platform/linux/linux_gtk_integration.h
platform/linux/linux_notification_service_watcher.cpp
platform/linux/linux_notification_service_watcher.h
platform/linux/linux_open_with_dialog.cpp
platform/linux/linux_open_with_dialog.h
platform/linux/linux_wayland_integration.cpp platform/linux/linux_wayland_integration.cpp
platform/linux/linux_wayland_integration.h platform/linux/linux_wayland_integration.h
platform/linux/linux_xlib_helper.cpp platform/linux/linux_xdp_file_dialog.cpp
platform/linux/linux_xlib_helper.h platform/linux/linux_xdp_file_dialog.h
platform/linux/file_utilities_linux.cpp platform/linux/file_utilities_linux.cpp
platform/linux/file_utilities_linux.h platform/linux/file_utilities_linux.h
platform/linux/launcher_linux.cpp platform/linux/launcher_linux.cpp
@ -845,7 +863,6 @@ PRIVATE
platform/linux/notifications_manager_linux.h platform/linux/notifications_manager_linux.h
platform/linux/specific_linux.cpp platform/linux/specific_linux.cpp
platform/linux/specific_linux.h platform/linux/specific_linux.h
platform/linux/window_title_linux.cpp
platform/linux/window_title_linux.h platform/linux/window_title_linux.h
platform/mac/file_utilities_mac.mm platform/mac/file_utilities_mac.mm
platform/mac/file_utilities_mac.h platform/mac/file_utilities_mac.h
@ -899,7 +916,6 @@ PRIVATE
platform/win/windows_dlls.h platform/win/windows_dlls.h
platform/win/windows_event_filter.cpp platform/win/windows_event_filter.cpp
platform/win/windows_event_filter.h platform/win/windows_event_filter.h
platform/win/wrapper_wrl_implements_h.h
platform/platform_audio.h platform/platform_audio.h
platform/platform_file_utilities.h platform/platform_file_utilities.h
platform/platform_launcher.h platform/platform_launcher.h
@ -969,6 +985,8 @@ PRIVATE
storage/storage_account.h storage/storage_account.h
storage/storage_cloud_blob.cpp storage/storage_cloud_blob.cpp
storage/storage_cloud_blob.h storage/storage_cloud_blob.h
storage/storage_cloud_song_cover.cpp
storage/storage_cloud_song_cover.h
storage/storage_domain.cpp storage/storage_domain.cpp
storage/storage_domain.h storage/storage_domain.h
storage/storage_facade.cpp storage/storage_facade.cpp
@ -1049,7 +1067,6 @@ PRIVATE
window/window_connecting_widget.h window/window_connecting_widget.h
window/window_controller.cpp window/window_controller.cpp
window/window_controller.h window/window_controller.h
window/window_controls_layout.h
window/window_filters_menu.cpp window/window_filters_menu.cpp
window/window_filters_menu.h window/window_filters_menu.h
window/window_history_hider.cpp window/window_history_hider.cpp
@ -1118,18 +1135,46 @@ if (NOT LINUX)
) )
endif() endif()
if (LINUX AND DESKTOP_APP_DISABLE_DBUS_INTEGRATION) if (DESKTOP_APP_DISABLE_DBUS_INTEGRATION)
remove_target_sources(Telegram ${src_loc} remove_target_sources(Telegram ${src_loc}
platform/linux/linux_gsd_media_keys.cpp platform/linux/linux_gsd_media_keys.cpp
platform/linux/linux_gsd_media_keys.h platform/linux/linux_gsd_media_keys.h
platform/linux/linux_notification_service_watcher.cpp
platform/linux/linux_notification_service_watcher.h
platform/linux/linux_xdp_file_dialog.cpp
platform/linux/linux_xdp_file_dialog.h
platform/linux/notifications_manager_linux.cpp
)
nice_target_sources(Telegram ${src_loc}
PRIVATE
platform/linux/notifications_manager_linux_dummy.cpp
) )
endif() endif()
if (LINUX AND DESKTOP_APP_DISABLE_WAYLAND_INTEGRATION) if (DESKTOP_APP_DISABLE_WAYLAND_INTEGRATION)
remove_target_sources(Telegram ${src_loc} platform/linux/linux_wayland_integration.cpp) remove_target_sources(Telegram ${src_loc} platform/linux/linux_wayland_integration.cpp)
nice_target_sources(Telegram ${src_loc} PRIVATE platform/linux/linux_wayland_integration_dummy.cpp) nice_target_sources(Telegram ${src_loc} PRIVATE platform/linux/linux_wayland_integration_dummy.cpp)
endif() endif()
if (DESKTOP_APP_DISABLE_GTK_INTEGRATION)
remove_target_sources(Telegram ${src_loc}
platform/linux/linux_gdk_helper.cpp
platform/linux/linux_gdk_helper.h
platform/linux/linux_gtk_file_dialog.cpp
platform/linux/linux_gtk_file_dialog.h
platform/linux/linux_gtk_integration_p.h
platform/linux/linux_gtk_integration.cpp
platform/linux/linux_open_with_dialog.cpp
platform/linux/linux_open_with_dialog.h
)
nice_target_sources(Telegram ${src_loc}
PRIVATE
platform/linux/linux_gtk_integration_dummy.cpp
)
endif()
if (NOT DESKTOP_APP_USE_PACKAGED) if (NOT DESKTOP_APP_USE_PACKAGED)
nice_target_sources(Telegram ${src_loc} PRIVATE platform/mac/mac_iconv_helper.c) nice_target_sources(Telegram ${src_loc} PRIVATE platform/mac/mac_iconv_helper.c)
endif() endif()

Binary file not shown.

Before

Width:  |  Height:  |  Size: 100 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 125 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 139 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 103 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 127 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 141 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 295 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 559 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 927 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 556 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 998 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 310 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 521 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 734 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 654 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 585 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 643 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 438 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 785 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 402 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 858 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 665 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 618 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 593 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 597 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

View file

Before

Width:  |  Height:  |  Size: 743 B

After

Width:  |  Height:  |  Size: 743 B

View file

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View file

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 496 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1,005 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 329 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 629 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 888 B

View file

Before

Width:  |  Height:  |  Size: 598 B

After

Width:  |  Height:  |  Size: 598 B

View file

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

View file

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 661 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 453 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 894 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 445 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1,011 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 584 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 311 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 600 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 504 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 446 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 864 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 994 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 260 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 438 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 643 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 430 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 780 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 933 B

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