2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Allow navigating to stories of sibling users.

This commit is contained in:
John Preston
2023-05-09 14:31:48 +04:00
parent 7717de19ab
commit ae94cd2d42
20 changed files with 699 additions and 93 deletions

View File

@@ -46,9 +46,12 @@ struct FullStoryId {
UserData *user = nullptr;
StoryId id = 0;
explicit operator bool() const {
[[nodiscard]] bool valid() const {
return user != nullptr && id != 0;
}
explicit operator bool() const {
return valid();
}
friend inline auto operator<=>(FullStoryId, FullStoryId) = default;
friend inline bool operator==(FullStoryId, FullStoryId) = default;
};