fix: preserve p2p topic for IM system notices
This commit is contained in:
+1
-1
@@ -261,7 +261,7 @@ func (t *Topic) prepareBroadcastableMessage(msg *ServerComMessage, uid types.Uid
|
||||
return
|
||||
}
|
||||
|
||||
if (t.cat == types.TopicCatP2P && !uid.IsZero()) || (t.cat == types.TopicCatGrp && t.isChan) {
|
||||
if !msg.PreserveTopicName && ((t.cat == types.TopicCatP2P && !uid.IsZero()) || (t.cat == types.TopicCatGrp && t.isChan)) {
|
||||
// P2P topics are exposed by their canonical p2p... name. Channel topics
|
||||
// may be presented as grpXXX or chnXXX.
|
||||
var topicName string
|
||||
|
||||
Reference in New Issue
Block a user