diff options
Diffstat (limited to 'bridge/api/api.go')
-rw-r--r-- | bridge/api/api.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bridge/api/api.go b/bridge/api/api.go index ca28d904..ab473afc 100644 --- a/bridge/api/api.go +++ b/bridge/api/api.go @@ -69,6 +69,10 @@ func (b *Api) JoinChannel(channel config.ChannelInfo) error { func (b *Api) Send(msg config.Message) (string, error) { b.Lock() defer b.Unlock() + // ignore delete messages + if msg.Event == config.EVENT_MSG_DELETE { + return "", nil + } b.Messages.Enqueue(&msg) return "", nil } |