Changeset 0.37.14 (#226)
Co-authored-by: gobha <jasafpro@gmail.com> Co-committed-by: gobha <jasafpro@gmail.com>
This commit is contained in:
@@ -53,6 +53,7 @@ var routeTable = map[string]Direction{
|
||||
"user.mentioned": DirToClient, // v0.23.2: targeted @mention notification
|
||||
"typing.user": DirToClient, // v0.23.2: human typing in DM/channel
|
||||
"message.created": DirToClient, // v0.23.2: chained/DM message delivery
|
||||
"message.deleted": DirToClient, // v0.37.14: soft-delete broadcast
|
||||
|
||||
// System
|
||||
"system.notify": DirToClient,
|
||||
|
||||
@@ -251,7 +251,7 @@ func (c *Conn) subscribeToBus() {
|
||||
}
|
||||
|
||||
// Don't echo typing events back to the sender
|
||||
if e.Label == "chat.typing" || e.ConnID == c.id {
|
||||
if strings.HasPrefix(e.Label, "chat.typing.") || strings.HasPrefix(e.Label, "channel.typing.") {
|
||||
if e.SenderID == c.userID && e.ConnID == c.id {
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user