mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-07 07:33:52 +02:00
Sort chats list stories by unread state.
This commit is contained in:
parent
d82381881a
commit
4e165a2107
1 changed files with 3 additions and 0 deletions
|
@ -162,6 +162,9 @@ Content State::next() {
|
||||||
#endif
|
#endif
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
ranges::stable_partition(result.users, [](const User &user) {
|
||||||
|
return user.unread;
|
||||||
|
});
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue