store newest/oldest message id by chan id