Keep refreshing channels before clearing so in-flight queue messages can't write the history back, but decide whether the channel is still held while ignoring the deleted slot, and clear even if the refresh fails or is incomplete.
Keep refreshing channels before clearing so in-flight queue messages can't write the history back, but decide whether the channel is still held while ignoring the deleted slot, and clear even if the refresh fails or is incomplete.