Skip to content

Commit

Permalink
send MessagesReloadCommand in case changing RegularParticipantCanWrit…
Browse files Browse the repository at this point in the history
…eMessage
  • Loading branch information
nkonev committed Jan 23, 2025
1 parent fa742ad commit a8d0677
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion chat/handlers/chat.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit a8d0677

Please sign in to comment.