chore: 更新国际化翻译及 UI 组件优化
This commit is contained in:
@@ -38,11 +38,13 @@ class FriendRequest {
|
||||
});
|
||||
|
||||
factory FriendRequest.fromJson(Map<String, dynamic> json) {
|
||||
final rawContent = json['content'] as Map<String, dynamic>?;
|
||||
final content = rawContent?['message'] as String?;
|
||||
return FriendRequest(
|
||||
id: json['id'] as String,
|
||||
sender: FriendUser.fromJson(json['sender'] as Map<String, dynamic>),
|
||||
recipient: FriendUser.fromJson(json['recipient'] as Map<String, dynamic>),
|
||||
content: json['content'] as String?,
|
||||
content: content,
|
||||
status: _friendRequestStatusFromApi(json['status'] as String),
|
||||
createdAt: DateTime.parse(json['created_at'] as String),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user