fix: set canPost to true for non-community channels
This commit is contained in:
parent
3f1547fc63
commit
3da9abfeb5
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue