mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Fixed build in Xcode.
This commit is contained in:
parent
6d3f9017fa
commit
fd2edb51e9
3 changed files with 12 additions and 10 deletions
|
@ -242,7 +242,7 @@ public:
|
|||
|
||||
protected:
|
||||
void notifyUnreadStateChange(const UnreadState &wasState);
|
||||
auto unreadStateChangeNotifier(bool required);
|
||||
inline auto unreadStateChangeNotifier(bool required);
|
||||
|
||||
[[nodiscard]] int lookupPinnedIndex(FilterId filterId) const;
|
||||
|
||||
|
|
|
@ -57,14 +57,7 @@ private:
|
|||
void finalizeCloudUnread();
|
||||
void recomputeFullListSize();
|
||||
|
||||
auto unreadStateChangeNotifier(bool notify) {
|
||||
const auto wasState = notify ? unreadState() : UnreadState();
|
||||
return gsl::finally([=] {
|
||||
if (notify) {
|
||||
_unreadStateChanges.fire_copy(wasState);
|
||||
}
|
||||
});
|
||||
}
|
||||
inline auto unreadStateChangeNotifier(bool notify);
|
||||
|
||||
FilterId _filterId = 0;
|
||||
IndexedList _all;
|
||||
|
@ -82,4 +75,13 @@ private:
|
|||
|
||||
};
|
||||
|
||||
auto MainList::unreadStateChangeNotifier(bool notify) {
|
||||
const auto wasState = notify ? unreadState() : UnreadState();
|
||||
return gsl::finally([=] {
|
||||
if (notify) {
|
||||
_unreadStateChanges.fire_copy(wasState);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
} // namespace Dialogs
|
||||
|
|
|
@ -117,7 +117,7 @@ QImage UnreadBadge(not_null<PeerData*> peer) {
|
|||
|
||||
Dialogs::Ui::PaintUnreadBadge(
|
||||
p,
|
||||
unread,
|
||||
counter,
|
||||
result.width(),
|
||||
result.height() - unreadSt.size,
|
||||
unreadSt,
|
||||
|
|
Loading…
Add table
Reference in a new issue