From a8d067743d2492204ce0e8c6c7223d7e320487d4 Mon Sep 17 00:00:00 2001 From: Nikita Konev Date: Thu, 23 Jan 2025 04:00:39 +0300 Subject: [PATCH] send MessagesReloadCommand in case changing RegularParticipantCanWriteMessage --- chat/handlers/chat.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chat/handlers/chat.go b/chat/handlers/chat.go index 6cfb33136..3b61facbe 100644 --- a/chat/handlers/chat.go +++ b/chat/handlers/chat.go @@ -768,7 +768,8 @@ func (ch *ChatHandler) EditChat(c echo.Context) error { ch.notificator.NotifyAboutChangeChat(c.Request().Context(), chatDto, participantIds, len(chatDto.ParticipantIds) == 1, true, tx, areAdmins) if chatBasicBefore.RegularParticipantCanPublishMessage != bindTo.RegularParticipantCanPublishMessage || - chatBasicBefore.RegularParticipantCanPinMessage != bindTo.RegularParticipantCanPinMessage { + chatBasicBefore.RegularParticipantCanPinMessage != bindTo.RegularParticipantCanPinMessage || + chatBasicBefore.RegularParticipantCanWriteMessage != bindTo.RegularParticipantCanWriteMessage { regularParticipants := make([]int64, 0) for userId, isAdmin := range areAdmins { if !isAdmin {