Skip to content

Commit

Permalink
fix: group_member_special_title use byte fields
Browse files Browse the repository at this point in the history
  • Loading branch information
pk5ls20 committed Feb 14, 2025
1 parent 684cf39 commit 0596be7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion mania/src/core/event/system/fetch_members.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ impl ClientEvent for FetchMembersEvent {
.unwrap_or_else(|| OidbSvcTrpcTcp0xFe7Level::default().level),
member_card: card,
member_name: member.member_name,
special_title: member.special_title,
special_title: member
.special_title
.map(|bytes| String::from_utf8_lossy(&bytes).into_owned()),
join_time: to_dt(member.join_timestamp, "Invalid join timestamp")?,
last_msg_time: to_dt(
member.last_msg_timestamp,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ message OidbSvcTrpcTcp0xFE7Member {
string MemberName = 10;
OidbSvcTrpcTcp0xFE7Card MemberCard = 11;
optional OidbSvcTrpcTcp0xFE7Level Level = 12;
optional string SpecialTitle = 17;
optional bytes SpecialTitle = 17;
uint32 JoinTimestamp = 100;
uint32 LastMsgTimestamp = 101;
optional uint32 ShutUpTimestamp = 102;
Expand Down

0 comments on commit 0596be7

Please sign in to comment.