mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 22:55:11 +00:00
Allow topic deletion.
This commit is contained in:
@@ -202,6 +202,13 @@ bool ForumTopic::canEdit() const {
|
||||
return (_flags & Flag::My) || channel()->canEditTopics();
|
||||
}
|
||||
|
||||
bool ForumTopic::canDelete() const {
|
||||
return !creating()
|
||||
&& (channel()->canEditTopics()
|
||||
// We don't know if we can delete or not.
|
||||
/*|| ((_flags & Flag::My) && onlyOneMyMessage)*/);
|
||||
}
|
||||
|
||||
bool ForumTopic::canToggleClosed() const {
|
||||
return !creating() && canEdit();
|
||||
}
|
||||
|
Reference in New Issue
Block a user