mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-30 22:25:12 +00:00
Implement simple UI for single-type likes in stories.
This commit is contained in:
@@ -276,8 +276,13 @@ bool Story::edited() const {
|
||||
return _edited;
|
||||
}
|
||||
|
||||
bool Story::canDownload() const {
|
||||
return /*!forbidsForward() || */_peer->isSelf();
|
||||
bool Story::canDownloadIfPremium() const {
|
||||
return !forbidsForward() || _peer->isSelf();
|
||||
}
|
||||
|
||||
bool Story::canDownloadChecked() const {
|
||||
return _peer->isSelf()
|
||||
|| (canDownloadIfPremium() && _peer->session().premium());
|
||||
}
|
||||
|
||||
bool Story::canShare() const {
|
||||
|
@@ -100,7 +100,8 @@ public:
|
||||
[[nodiscard]] bool forbidsForward() const;
|
||||
[[nodiscard]] bool edited() const;
|
||||
|
||||
[[nodiscard]] bool canDownload() const;
|
||||
[[nodiscard]] bool canDownloadIfPremium() const;
|
||||
[[nodiscard]] bool canDownloadChecked() const;
|
||||
[[nodiscard]] bool canShare() const;
|
||||
[[nodiscard]] bool canDelete() const;
|
||||
[[nodiscard]] bool canReport() const;
|
||||
|
Reference in New Issue
Block a user