Sort chats list stories by unread state.

This commit is contained in:
John Preston 2023-05-29 11:45:04 +04:00
parent d82381881a
commit 4e165a2107
1 changed files with 3 additions and 0 deletions

View File

@ -162,6 +162,9 @@ Content State::next() {
#endif
});
}
ranges::stable_partition(result.users, [](const User &user) {
return user.unread;
});
return result;
}