Commit Graph

3479 Commits

Author SHA1 Message Date
Friedrich von Never db321f1e6b Fix the executable name (#179)
Now executable is on artifacts in AppVeyor.
2018-09-30 18:23:45 +03:00
leha-bot 4a63c69d7f Enable messages unpinning for channels
Also make History Widget react on pinning Channel message event and show
it in UI.

This commit is based on upstream commit
75d8d01b17

Related to #114.
Closes #8.
2018-09-22 01:03:29 +03:00
leha-bot ae75810cd5 HistoryItem: enable pins for channel messages
Now we can pin and unpin channel messages.

This commit is based on upstream commit
75d8d01b17

Related to #8, #114.
2018-09-22 01:03:29 +03:00
leha-bot dd003ffb7d PinMessageBox: show notify checkbox only for group
Prepare for pinning messages in Channels, in which we are could not
disable the pin notification.

Based on upstream commit
75d8d01b17

Related to #8, #114.
2018-09-22 01:03:29 +03:00
leha-bot 265cd836ef Enable pins for channels
Based on upstream commit 75d8d01b17

Related to #114, #8.
2018-09-22 01:03:29 +03:00
leha-bot 04112679b5 Rudimentary support for Live Locations
Cherry picked from upstream commit 6ca105a290

Related to #114
2018-09-22 01:03:29 +03:00
leha-bot 2aaf08bd71 Minimal layer 72 support
Compile fixes.

Based on upstream commit 6ca105a290
Closes #114.
2018-09-22 01:03:29 +03:00
leha-bot 6717ea2cd5 API scheme updated to layer 72.
Shortlog:
1. InputMediaUploadedDocument now has the new flag nosound_video;
2. InputMediaVenue now has the new string venue_type (it seems to be
   related to FourSquare Venue Types like "food/icecream" or another.
   See core.telegram.org/bot/api#Venue for details);
3. Add live locations (InputMediaGeoLive);
4. channelFull object now has a flag hidden_prehistory (see issue #113
   for details);
5. messageMediaVenue now has the same string venue_type;
6. messageMediaGeoLive now has the same fields as InputMediaGeoLive;
7. Add mysterious messageActionCustomAction;
8. Add messages.messagesNotModified (seems it's related to seamless
   message counter decrement as in Telegram for Android since v 4.8);
9. Remove inputMessagesFilterPhotoVideoDocuments;
10. Add filters inputMessagesFilterGeo and inputMessagesFilterContact;
11. Add updateChannelAvailableMessages (seems it's a new kind of Update
    related to listening of channel only updates);
12. Add channels.channelParticipantsNotModified;
13. inputBotInlineMessageMediaGeo now has the period field (like new
    live locations);
14. botInlineMessageMediaGeo now has the same period field;
15. BotResults now has a users vector field;
16. messages.botCallbackAnswer now has a new native_ui flag (seems it's
    related to some new kind of notification. Right now bots could send you
    either the message box or the modeless notification which is appeared
    from top of chat viewport);
17. Add inputPaymentCredentials[Android|Apple]Pay for (possible) Android
    Pay / Apple Pay support;
18. Add channelAdminLogEventActionTogglePreHistoryHidden for toggling
    history for chat newcomers (see issue #113);
19. Add strange recentMeUrl[Unknown|User|Chat|ChatInvite|StickerSet].
    Seems it's related to "Saved Messages" functionality.
20. Add help.recentMeUrl method;
21. messages.getHistory now has an argument hash;
22. messages.editMessage now has the new flag stop_geo_live related to
    Live Locations;
23. messages.editInlineBotMesages now has the same new flag;
24. Add new method messages.readMentions(peer:InputPeer);
25. Add new method help.getRecentMeUrls(referer:string);
26. channels.getParticipants now has a new parameter hash;
27. Add new method chanels.deleteHistory (seems it's related to issue
    #112);
28. Add new method channels.togglePreHistoryHidden (see #113).

This commit is based on upstream commit bccd801874 and related to #114.
2018-09-22 01:03:29 +03:00
leha-bot 0a1a0162e4 Fix Windows build
There was a regression after PCH cleanup with headers order in
/file_utilities_win.cpp. Seems that the CI and local MSVS used some kind
of cache.
2018-09-22 01:03:29 +03:00
leha-bot 6f38f7337b clang-format: Explicitly set SortIncludes to false
To avoid the default behaviour.
2018-09-15 02:01:29 +03:00
Alex e797a7bcb4 clang_format: Don't sort #includes
It breaks Windows build
2018-09-14 00:54:31 +03:00
fox.cpp d405a2a60a Fix tg.protocol installation directory
Closes #171.
2018-08-15 12:28:19 +03:00
Vitaly Zaitsev ba5c5d633b Prepare SPEC to 2.0.0 final release. 2018-07-27 19:25:52 +00:00
Evgenii Zheltonozhskii 38efa1bf4b Replace base::lambda with shorter term.
Partially backport dd81f5d59f
2018-07-27 14:24:31 +00:00
John Preston e7bace9ab3 Rewrite base::lambda_guard, use only one pointer.
(cherry picked from commit f6ed3df)
2018-07-27 14:24:31 +00:00
John Preston f488d5f9c1 Use std::function for base::lambda implementation.
(cherry picked from commit 101d4f6)
2018-07-27 14:24:31 +00:00
Evgeniy Zheltonozhskiy 9f1896c680 Filter RTL in displayed file names(#156)
Adopted from upstream commit aec496d520 to avoid the phishing filenames.

Closes #103.
2018-06-20 22:20:39 +03:00
Alex 0d013603bd
Fix "no return in nonvoid function" error in libtgvoip (#167)
Return nullptr to avoid compile error.

Before this commit these functions:
1. void *AudioInputALSA::StartThread();
2. void *AudioOutputALSA::StartThread()
 - don't return any values. 

Also please note that this fix should be ported after syncing libtgvoip to upstream if these functions still don't return values!

Related to #153.
2018-06-20 21:33:58 +03:00
Evgenii Zheltonozhskii b6df430aa8 Get rid of OrderedSet 2018-06-20 15:40:52 +03:00
Evgenii Zheltonozhskii 8b189226e4 Minimize type_traits (https://github.com/procxx/kepka/issues/27) 2018-06-20 15:40:52 +03:00
Anton Kashcheev 21e7a1bbb0 Fix compile error when building with LibreSSL
Add preprocessor check of LibreSSL version.
2018-06-20 15:16:09 +03:00
Evgeniy Zheltonozhskiy 22b0cffccd Fix almost all warnings (#157)
There are possible deprecation warnings could be on new ffmpeg. It will be investigated later.

Related to #42.
2018-06-12 01:59:24 +03:00
fox.cpp 93d2fd3035 Add install target 2018-06-10 22:54:22 +03:00
Evgenii Zheltonozhskii e748c9eede Fix Release build (add missing includes) 2018-06-10 17:17:44 +03:00
Evgenii Zheltonozhskii b9cd813127 Apply clang-format 2018-06-06 11:25:23 +03:00
Evgenii Zheltonozhskii 49982a33a5 Pre-reformat fixes 2018-06-06 11:25:23 +03:00
Evgenii Zheltonozhskii b3cdb38c0b Add clang-format target to CMake and Travis 2018-06-06 11:25:23 +03:00
Evgenii Zheltonozhskii 80071b61d5 Fix deprecated qt functions in CMake 2018-06-06 11:25:23 +03:00
Evgenii Zheltonozhskii 1015e088e3 Rebranding continued: rename target 2018-06-04 19:56:10 +03:00
Evgenii Zheltonozhskii 35c917a704 Remove junk files 2018-06-04 19:56:10 +03:00
Evgenii Zheltonozhskii eba069a406 Branding changes, minor readme fix 2018-06-04 19:56:10 +03:00
Alex 69661217d2
Remove PCH (#148)
This commit brings many changes:

1. Remove cotire;
2. Remove PCH files (stdafx.xxx) and mentions;
3. Rearrange and clean includes:
3.1. Remove core includes path, use full header path core/xxx;
3.2. Move object_ptr to separate file base/object_ptr.h;
3.3. Add missing includes;
5. Add forward decls;
6. Get rid of some Qt private parts;
7. Fix ALL compilation errors after removing cotire on Windows, Linux, MacOS.

Closes #133.
Related to #96.
2018-06-04 16:25:31 +03:00
Alex f2de0e5127
Get rid of dee-devel, gtk3-devel in Fedora specfile (#151)
These dependencies were not used after removing GTK code in #129.
2018-06-02 02:15:31 +03:00
Anton Kashcheev 09f8d60e11 Add libreSSL support
Also check LIBRESSL_VERSION_NUMBER and if it's defined, we use the LibreSSL-compatible API calls.
2018-04-22 19:45:47 +03:00
Anton Kashcheev cc8c119b7a Renamed project name in CMakeLists. 2018-04-22 16:16:24 +03:00
leha-bot c237414cc6 text_entity: Add enum for used Unicode codepoints
It's better to use the named constants instead of magic character codes.
2018-04-21 19:14:34 +03:00
leha-bot 49b3469963 Add option for typographic message formatting
This option allows to turn off the old behaviour with replacing char
sequences like <<, >>, -- to chars represented by HTML escape characters
"&laquo;", "&raquo;", "&mdash;".

Based on upstream pull
https://github.com/telegramdesktop/tdesktop/pull/4553 and commit
fe118833ae
from @PeterMX

Closes #132
2018-04-21 19:14:34 +03:00
leha-bot ed0e5b9958 Reorganize #include's in ui/text/text.cpp
Now it compiles faster

Related to #16
2018-04-17 22:06:33 +03:00
leha-bot 56cbcdcf94 Get rid of qharfbuzz_p private dependency
It's used for weird conversion from "QChar::Script" to internal
HB_Script and back.

Looks like it was in old Qt on this mirror link:
39b4955da3?view=parallel

Related to #96 #27 #16
2018-04-17 22:06:33 +03:00
crackedmind 54705d060c Apply patch to fix compile with cmake 3.11 2018-04-17 21:05:33 +03:00
crackedmind 866ad0c19f git subrepo pull cotire
subrepo:
  subdir:   "cotire"
  merged:   "391bf6b76"
upstream:
  origin:   "https://github.com/sakra/cotire.git"
  branch:   "master"
  commit:   "391bf6b76"
git-subrepo:
  version:  "0.3.1"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "a7ee886"
2018-04-17 21:05:33 +03:00
crackedmind 5b84a1da8c Update cotire remote url 2018-04-17 21:05:33 +03:00
Vitaly Zaitsev 5a8766e7a2 Completely remove Unity support. Unity is no longer supported by Canonical and will be excluded from Ubuntu 18.04 LTS.
Signed-off-by: Vitaly Zaitsev <vitaly@easycoding.org>
2018-03-31 20:07:48 +03:00
Vitaly Zaitsev dbb0030893 Completely drop GTK dialogs. Use native instead.
Also this commit will remove libnotify support.

Signed-off-by: Vitaly Zaitsev <vitaly@easycoding.org>
2018-03-24 15:20:03 +00:00
leha-bot 1ab8aa2463 Allow to reply by double click on timestamp
Based on telegramdesktop/tdesktop@def21367
Related to #10, #117, #118
2018-03-17 05:57:51 +03:00
leha-bot ea6d487aab Get rid of local changelogs
It was appended if your new version is greater than older.
Now it uses the lang string `lng_new_version`.
2018-03-14 00:49:48 +03:00
leha-bot a3f5b94f14 Remove text changelog (use git log instead of) 2018-03-14 00:49:48 +03:00
Alex 53363a8ce9
README: increase required CMake version (#124)
[skip ci]
2018-03-12 19:04:51 +03:00
leha-bot 271e31c0cd libtgvoip: Disable MSVC CRT secure warnings 2018-03-12 18:30:19 +03:00
Stanislav Ershov ceb9828910 Fix some warnings against size_t to int conversion 2018-03-12 18:30:19 +03:00