Don't push messages without an ID to the channel

This commit is contained in:
finn 2022-03-15 19:11:20 -07:00
parent 9c8c2f98a9
commit c45111f4ab

View file

@ -125,7 +125,7 @@ func (s *Signald) Listen(c chan client_protocol.BasicResponse) {
subscribers <- msg subscribers <- msg
} }
if c != nil && msg.ID == "" { if c != nil && msg.ID == "" && msg.Type != "version" {
c <- msg c <- msg
} }
} }