diff options
Diffstat (limited to 'app/channel.go')
-rw-r--r-- | app/channel.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/channel.go b/app/channel.go index d66624f2c..51688ad87 100644 --- a/app/channel.go +++ b/app/channel.go @@ -260,6 +260,11 @@ func UpdateChannel(channel *model.Channel) (*model.Channel, *model.AppError) { } } +func PatchChannel(channel *model.Channel, patch *model.ChannelPatch) (*model.Channel, *model.AppError) { + channel.Patch(patch) + return UpdateChannel(channel) +} + func UpdateChannelMemberRoles(channelId string, userId string, newRoles string) (*model.ChannelMember, *model.AppError) { var member *model.ChannelMember var err *model.AppError |