mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
PLT-3734 Cleaning up shouldSendEvent function (#4024)
* PLT-3734 Cleaning up shouldSendEvent function * Fix LHS unread highlight and jewel mentions
This commit is contained in:
committed by
Christopher Speller
parent
bfca752940
commit
60347559c7
@@ -9,7 +9,7 @@ import (
|
||||
)
|
||||
|
||||
func TestWebSocketEvent(t *testing.T) {
|
||||
m := NewWebSocketEvent(NewId(), NewId(), NewId(), "some_event")
|
||||
m := NewWebSocketEvent("some_event", NewId(), NewId(), NewId(), nil)
|
||||
m.Add("RootId", NewId())
|
||||
json := m.ToJson()
|
||||
result := WebSocketEventFromJson(strings.NewReader(json))
|
||||
@@ -23,7 +23,7 @@ func TestWebSocketEvent(t *testing.T) {
|
||||
t.Fatal("should be valid")
|
||||
}
|
||||
|
||||
if m.TeamId != result.TeamId {
|
||||
if m.Broadcast.TeamId != result.Broadcast.TeamId {
|
||||
t.Fatal("Ids do not match")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user