Removing empty channels when the channel becomes vacated.
@@ -176,9 +176,12 @@ func (c *Channel) Unsubscribe(a *App, conn *Connection) error {
a.TriggerMemberRemovedHook(c, subscription)
}
// WebHook
if !c.IsOccupied() {
a.TriggerChannelVacatedHook(c)
// Remove the empty Channel
a.RemoveChannel(c)
return nil
The note is not visible to the blocked user.