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:
enahum
2016-09-27 11:19:50 -03:00
committed by Christopher Speller
parent bfca752940
commit 60347559c7
17 changed files with 117 additions and 110 deletions

View File

@@ -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")
}