Bugfixes
Generate group invite link Click on preloaded sticker in history Scrollbar in Firefox
This commit is contained in:
parent
364d43c33b
commit
6cba0c5ff7
@ -2008,12 +2008,23 @@ angular.module('myApp.directives', ['myApp.filters'])
|
|||||||
};
|
};
|
||||||
|
|
||||||
function link ($scope, element, attrs) {
|
function link ($scope, element, attrs) {
|
||||||
var imgElement = $('<img />')
|
var imgElement = $('<img />').addClass(attrs.imgClass);
|
||||||
.appendTo(element)
|
var wasAdded = false;
|
||||||
.addClass(attrs.imgClass);
|
|
||||||
|
if (attrs.open && $scope.document.stickerSetInput) {
|
||||||
|
element
|
||||||
|
.addClass('clickable')
|
||||||
|
.on('click', function () {
|
||||||
|
AppStickersManager.openStickerset($scope.document.stickerSetInput);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
var setSrc = function (blob) {
|
var setSrc = function (blob) {
|
||||||
imgElement.attr('src', FileManager.getUrl(blob));
|
imgElement.attr('src', FileManager.getUrl(blob));
|
||||||
|
if (!wasAdded) {
|
||||||
|
wasAdded = true;
|
||||||
|
imgElement.appendTo(element);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
imgElement.css({
|
imgElement.css({
|
||||||
@ -2051,7 +2062,8 @@ angular.module('myApp.directives', ['myApp.filters'])
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
imgElement.attr('src', emptySrc);
|
wasAdded = true;
|
||||||
|
imgElement.attr('src', emptySrc).appendTo(element);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (attrs.thumb) {
|
if (attrs.thumb) {
|
||||||
@ -2067,14 +2079,6 @@ angular.module('myApp.directives', ['myApp.filters'])
|
|||||||
console.log('Download sticker failed', e, fullLocation);
|
console.log('Download sticker failed', e, fullLocation);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (attrs.open && $scope.document.stickerSetInput) {
|
|
||||||
element
|
|
||||||
.addClass('clickable')
|
|
||||||
.on('click', function () {
|
|
||||||
AppStickersManager.openStickerset($scope.document.stickerSetInput);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -1024,7 +1024,7 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils'])
|
|||||||
return chatFull.exported_invite.link;
|
return chatFull.exported_invite.link;
|
||||||
}
|
}
|
||||||
return MtpApiManager.invokeApi('messages.exportChatInvite', {
|
return MtpApiManager.invokeApi('messages.exportChatInvite', {
|
||||||
chat_id: getChatInput(id)
|
chat_id: AppChatsManager.getChatInput(id)
|
||||||
}).then(function (exportedInvite) {
|
}).then(function (exportedInvite) {
|
||||||
if (chatsFull[id] !== undefined) {
|
if (chatsFull[id] !== undefined) {
|
||||||
chatsFull[id].exported_invite = exportedInvite;
|
chatsFull[id].exported_invite = exportedInvite;
|
||||||
|
@ -2467,13 +2467,13 @@ img.img_fullsize {
|
|||||||
.composer_emoji_tooltip_tab_emoji_content & {
|
.composer_emoji_tooltip_tab_emoji_content & {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin: 0 0 3px;
|
margin: 0 0 3px;
|
||||||
padding: 0 5px;
|
padding: 0 5px 15px;
|
||||||
line-height: 0;
|
line-height: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.composer_emoji_tooltip_tab_stickers_content & {
|
.composer_emoji_tooltip_tab_stickers_content & {
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
padding: 0 5px;
|
padding: 0 5px 15px;
|
||||||
margin: 0 0 3px;
|
margin: 0 0 3px;
|
||||||
overflow-x: scroll;
|
overflow-x: scroll;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
<div class="im_dialogs_wrap nano">
|
<div class="im_dialogs_wrap nano">
|
||||||
<div class="im_dialogs_scrollable_wrap nano-content">
|
<div class="im_dialogs_scrollable_wrap nano-content">
|
||||||
|
|
||||||
<div class="im_dialogs_empty_wrap" ng-if="isEmpty.contacts">
|
<div class="im_dialogs_empty_wrap" ng-if="isEmpty.dialogs && isEmpty.contacts">
|
||||||
<h3 class="im_dialogs_empty_header" my-i18n="im_no_contacts"></h3>
|
<h3 class="im_dialogs_empty_header" my-i18n="im_no_contacts"></h3>
|
||||||
<p class="im_dialogs_empty_lead" my-i18n="im_get_started_long"></p>
|
<p class="im_dialogs_empty_lead" my-i18n="im_get_started_long"></p>
|
||||||
<button type="button" class="btn btn-primary btn-sm" ng-click="importContact()" my-i18n="im_add_contact"></button>
|
<button type="button" class="btn btn-primary btn-sm" ng-click="importContact()" my-i18n="im_add_contact"></button>
|
||||||
|
Loading…
Reference in New Issue
Block a user