3
0

Do not send channel event on membership flag is set/removed

This commit is contained in:
Denis Arh
2019-06-21 14:53:54 +02:00
parent 8309e6e710
commit 95758fb689
+4 -2
View File
@@ -520,8 +520,10 @@ func (svc *channel) SetFlag(ID uint64, flag types.ChannelMembershipFlag) (ch *ty
return
}
svc.flushSystemMessages()
return svc.sendChannelEvent(ch)
return svc.flushSystemMessages()
// Setting a flag on a channel is a private thing,
// no need to send channel event back to everyone
})
}