fix: set canPost to true for non-community channels

This commit is contained in:
Jonathan Rainville 2024-03-12 10:25:05 -04:00
parent 3f1547fc63
commit 3da9abfeb5
1 changed files with 3 additions and 0 deletions

View File

@ -477,6 +477,9 @@ func (api *API) getCommunityByID(id string) (*communities.Community, error) {
}
func (chat *Chat) populateCommunityFields(community *communities.Community) error {
chat.CanPost = true
chat.CanPostMessages = true
chat.CanPostReactions = true
if community == nil {
return nil
}