MM-56083 Add PatchMultipleMembersNotifyProps plugin API (#25690)
* Add ChannelStore.UpdateMultipleMembersNotifyProps * Make UpdateMultipleMembersNotifyProps return updated values from the DB * Add UpdateChannelMembersNotifications plugin API * Extract i18n * Fix style * Make layers * Change to PatchMultipleMembersNotifyProps * Add limit to PatchChannelMembersNotifyProps * Add additional unit tests * Address feedback * Lowercase decodeJSON * Have PatchMultipleMembersNotifyProps update LastUpdateAt * Fix tests that relied on unreliable return order * Fix i18n
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
aafe7439af
Коммит
4d96c11314
@@ -600,6 +600,15 @@ type API interface {
|
||||
// Minimum server version: 5.2
|
||||
UpdateChannelMemberNotifications(channelId, userID string, notifications map[string]string) (*model.ChannelMember, *model.AppError)
|
||||
|
||||
// PatchChannelMembersNotifications updates the notification properties for multiple channel members.
|
||||
// Other changes made to the channel memberships will be ignored. A maximum of 200 members can be
|
||||
// updated at once.
|
||||
//
|
||||
// @tag Channel
|
||||
// @tag User
|
||||
// Minimum server version: 9.5
|
||||
PatchChannelMembersNotifications(members []*model.ChannelMemberIdentifier, notifyProps map[string]string) *model.AppError
|
||||
|
||||
// GetGroup gets a group by ID.
|
||||
//
|
||||
// @tag Group
|
||||
|
||||
Ссылка в новой задаче
Block a user