show sender-user in message_view

This commit is contained in:
2024-06-12 01:17:00 +02:00
parent 35771c11e7
commit 431d91a380
5 changed files with 127 additions and 40 deletions

View File

@@ -90,3 +90,20 @@ class UserWithClientsAndKeys {
);
}
}
class UserPreview {
final String userID;
final String? username;
const UserPreview({
required this.userID,
required this.username,
});
factory UserPreview.fromJson(Map<String, dynamic> json) {
return UserPreview(
userID: json['user_id'] as String,
username: json['username'] as String?,
);
}
}