Make messages array accessible in order to dismiss pinned message