mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-10-17 14:19:43 +00:00
Fixed build in Xcode.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user