[Finish #42143287] Adapt the message number upon marking messages as read