use max id across all channels when assigning id to unsent message