Skip to content
This repository was archived by the owner on Oct 25, 2023. It is now read-only.

Commit 4e31501

Browse files
committed
Bugifxes
1 parent 37ab09c commit 4e31501

8 files changed

Lines changed: 17 additions & 9 deletions

File tree

‎app/js/controllers.js‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -951,11 +951,14 @@ angular.module('myApp.controllers', ['myApp.i18n'])
951951
function getDialogs (force) {
952952
var curJump = ++jump
953953

954-
$timeout.cancel(searchTimeoutPromise)
954+
if (searchTimeoutPromise) {
955+
$timeout.cancel(searchTimeoutPromise)
956+
}
955957

956958
if (searchMessages) {
957959
searchTimeoutPromise = (force || maxID) ? $q.when() : $timeout(angular.noop, 500)
958960
return searchTimeoutPromise.then(function () {
961+
searchTimeoutPromise = false;
959962
var searchPeerID = $scope.searchPeer || false
960963
return AppMessagesManager.getSearch(searchPeerID, $scope.search.query, {_: 'inputMessagesFilterEmpty'}, maxID).then(function (result) {
961964
if (curJump != jump) {

‎app/js/locales/en-us.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,8 @@
633633
"message_attach_video_save": "Save file",
634634
"message_attach_video_play": "Play video",
635635

636-
"message_attach_unsupported": "The message is not supported on your version of Telegram Web. Update the app to view: {link}.",
636+
"message_attach_unsupported": "The message is not supported on your version of Telegram Web. Update the app to view: {link}.",
637+
"message_attach_unsupported_desktop": "This message is currently not supported on Telegram Web. Try {link}.",
637638
"message_attach_notweb": "The message is not supported on Telegram Web yet. Use Telegram mobile apps to view: {link}.",
638639

639640
"conversation_select_modal_title": "Select conversation",

‎app/less/desktop.less‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1850,6 +1850,10 @@ a.im_panel_peer_photo .peer_initials {
18501850
padding: 0;
18511851
}
18521852

1853+
a.settings_modal_content_settings_wrap {
1854+
margin-top: -5px;
1855+
}
1856+
18531857
.icon-volume {
18541858
&-outer {
18551859
display: inline-block;

‎app/partials/desktop/embed_modal.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
<div class="media_modal_info_wrap pull-left" ng-if="webpageID">
1717
<div class="media_modal_author_name">
18-
<a class="media_modal_author" href="{{webpage.url}}" target="_blank" ng-bind-html="webpage.rTitle"></a>
18+
<a class="media_modal_author" href="{{webpage.url}}" target="_blank" ng-bind-html="webpage.rTitle" rel="noopener noreferrer"></a>
1919
</div>
2020
<div class="media_modal_date" ng-bind="webpage.site_name || webpage.display_url"></div>
2121
</div>

‎app/partials/desktop/message_attach_webpage.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
</a>
5353
<div ng-if="media.webpage.site_name" class="im_message_webpage_site" ng-bind="media.webpage.site_name"></div>
5454
<div class="im_message_webpage_title">
55-
<a ng-click="openEmbed($event)" href="{{media.webpage.url}}" target="_blank" ng-bind-html="media.webpage.rTitle"></a>
55+
<a ng-click="openEmbed($event)" href="{{media.webpage.url}}" rel="noopener noreferrer" target="_blank" ng-bind-html="media.webpage.rTitle"></a>
5656
</div>
5757
<div ng-if="media.webpage.description.length" class="im_message_webpage_description" ng-bind-html="media.webpage.rDescription"></div>
5858
</div>

‎app/partials/desktop/message_media.html‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@
99
<div ng-switch-when="messageMediaPending" my-message-pending="media"></div>
1010

1111
<div ng-switch-when="messageMediaUnsupported">
12-
<div class="im_message_text" my-i18n="message_attach_unsupported">
13-
<my-i18n-param name="link"><a href="https://web.telegram.org" target="_blank">web.telegram.org</a></my-i18n-param>
12+
<div class="im_message_text" my-i18n="message_attach_unsupported_desktop">
13+
<my-i18n-param name="link"><a href="https://getdesktop.telegram.org" target="_blank">getdesktop.telegram.org</a></my-i18n-param>
1414
</div>
1515
</div>
1616

1717
<div ng-switch-when="messageMediaUnsupportedWeb">
18-
<div class="im_message_text" my-i18n="message_attach_unsupported">
18+
<div class="im_message_text" my-i18n="message_attach_notweb">
1919
<my-i18n-param name="link"><a href="https://web.telegram.org" target="_blank">web.telegram.org</a></my-i18n-param>
2020
</div>
2121
</div>

‎app/partials/desktop/reply_markup.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<div class="reply_markup" ng-class="replyMarkup.splitCount ? 'reply_markup_h' + replyMarkup.splitCount : ''">
33
<div class="reply_markup_row" ng-repeat="row in replyMarkup.rows">
44
<div class="reply_markup_button_wrap" ng-class="'reply_markup_button_w' + row.buttons.length" ng-repeat="button in row.buttons" ng-switch="button._">
5-
<a ng-switch-when="keyboardButtonUrl" class="btn reply_markup_button" href="{{button.pUrl}}" ng-bind-html="::button.rText"></a>
5+
<a ng-switch-when="keyboardButtonUrl" class="btn reply_markup_button" href="{{button.pUrl}}" ng-bind-html="::button.rText" rel="noopener noreferrer"></a>
66
<button ng-switch-default class="btn reply_markup_button" ng-bind-html="::button.rText" ng-click="buttonClick(button)"></button>
77
</div>
88
</div>

‎app/partials/mobile/settings_modal.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ <h4 class="mobile_user_modal_header" my-peer-link="profile.id"></h4>
131131
<span class="mobile_modal_action" my-i18n="settings_modal_language"></span>
132132
</div>
133133

134-
<div class="mobile_modal_action_wrap">
134+
<div class="mobile_modal_action_wrap" ng-show="contentSettings.pFlags.sensitive_can_change">
135135
<a class="mobile_modal_action tg_checkbox clearfix" ng-click="toggleContentSettings()" ng-class="contentSettings.pFlags.sensitive_enabled ? 'tg_checkbox_on' : ''">
136136
<span class="icon icon-checkbox-outer"><i class="icon-checkbox-inner"></i></span>
137137
<span class="tg_checkbox_label" my-i18n="settings_modal_show_sensitive_content"></span>

0 commit comments

Comments
 (0)