Fix `/sync` flow referencing incorrect parameter to use with `/messages`.