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:
@@ -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;
|
||||
};
|
||||
|
Reference in New Issue
Block a user