pub(crate) async fn update_msg_state(
    context: &Context,
    msg_id: MsgId,
    state: MessageState
) -> Result<()>