fix: fetch unlocalized player data to interpret errors correctly; regression introduced with v0.6.0

This commit is contained in:
ThetaDev 2024-11-09 03:00:04 +01:00
parent 044094a4b7
commit 0919cbd0df
No known key found for this signature in database
GPG key ID: E319D3C5148D65B6
5 changed files with 22 additions and 12 deletions

View file

@ -16,7 +16,9 @@ use crate::{
util::{self, timeago, ProtoBuilder},
};
use super::{response, ClientType, MapRespCtx, MapResponse, QContinuation, RustyPipeQuery};
use super::{
response, ClientType, MapRespCtx, MapRespOptions, MapResponse, QContinuation, RustyPipeQuery,
};
#[derive(Debug, Serialize)]
#[serde(rename_all = "camelCase")]
@ -178,12 +180,16 @@ impl RustyPipeQuery {
continuation: &channel_info_ctoken(channel_id, &random_target()),
};
self.execute_request::<response::ChannelAbout, _, _>(
self.execute_request_ctx::<response::ChannelAbout, _, _>(
ClientType::Desktop,
"channel_info",
channel_id,
"browse",
&request_body,
MapRespOptions {
unlocalized: true,
..Default::default()
},
)
.await
}