3
0

Flip order of chan-deleted and msg-about-chan-deleted events

This will force clients to unsubscribe from deleted channels and ignore the chan-delete message.
This commit is contained in:
Denis Arh 2018-10-30 11:52:47 +01:00
parent cc1e914987
commit 77011522bc

View File

@ -456,8 +456,9 @@ func (svc *channel) Delete(id uint64) error {
return
}
svc.flushSystemMessages()
return svc.sendChannelEvent(ch)
_ = svc.sendChannelEvent(ch)
_ = svc.flushSystemMessages()
return nil
})
}