mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-02 23:55:12 +00:00
Improve topic three-dot menu.
This commit is contained in:
@@ -223,6 +223,11 @@ bool ForumTopic::canWrite() const {
|
||||
&& (!closed() || canToggleClosed());
|
||||
}
|
||||
|
||||
bool ForumTopic::canSendPolls() const {
|
||||
return canWrite()
|
||||
&& !channel()->amRestricted(ChatRestriction::SendPolls);
|
||||
}
|
||||
|
||||
bool ForumTopic::canEdit() const {
|
||||
return my() || channel()->canManageTopics();
|
||||
}
|
||||
|
Reference in New Issue
Block a user