Closed alpha version 4.2.4.2: Fix build with Xcode.

This commit is contained in:
John Preston 2022-11-02 22:29:21 +04:00
parent ba9f5d138a
commit a088791752
2 changed files with 1 additions and 9 deletions

View File

@ -1961,14 +1961,6 @@ void ListWidget::checkActivation() {
|| !markingMessagesRead()) {
return;
}
const auto h = height();
const auto t = _visibleTop;
const auto b = _visibleBottom;
const auto r = _itemsRevealHeight;
auto a = 0;
for (const auto &view : _itemRevealPending) {
a += view->height();
}
for (const auto &view : ranges::views::reverse(_items)) {
const auto bottom = itemTop(view) + view->height();
if (_visibleBottom + _itemsRevealHeight >= bottom) {

View File

@ -852,7 +852,7 @@ void TopBarUser::updateTitle(
+ set->title;
const auto linkIndex = 1;
const auto entityEmojiData = Data::SerializeCustomEmojiId(
{ set->thumbnailDocumentId });
set->thumbnailDocumentId);
const auto entities = EntitiesInText{
{ EntityType::CustomEmoji, 0, 1, entityEmojiData },
Ui::Text::Link(text, linkIndex).entities.front(),