Skip to content

Commit

Permalink
dont send notification for dev channel for own sends CORE-7669 (keyb…
Browse files Browse the repository at this point in the history
…ase#11652)

* add topic type to all gregor notifications

* dont send notification for dev channel for own sends

* nl
  • Loading branch information
mmaxim authored May 3, 2018
1 parent 9715f6c commit a1701c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion go/chat/sender.go
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,8 @@ func (s *BlockingSender) Send(ctx context.Context, convID chat1.ConversationID,
s.Debug(ctx, "failed to update inbox: %s", err)
}
// Send up to frontend
if cerr == nil && boxed.GetMessageType() != chat1.MessageType_LEAVE {
if conv.GetTopicType() == chat1.TopicType_CHAT && cerr == nil &&
boxed.GetMessageType() != chat1.MessageType_LEAVE {
activity := chat1.NewChatActivityWithIncomingMessage(chat1.IncomingMessage{
Message: utils.PresentMessageUnboxed(ctx, s.G(), unboxedMsg, boxed.ClientHeader.Sender, convID),
ConvID: convID,
Expand Down

0 comments on commit a1701c7

Please sign in to comment.