mirror of
https://gitlab.com/comunic/comunicmobile
synced 2024-11-22 12:59:21 +00:00
Decode HTML characters
This commit is contained in:
parent
78e75cffdb
commit
6239c10579
@ -1,6 +1,7 @@
|
|||||||
import 'package:comunic/enums/user_page_visibility.dart';
|
import 'package:comunic/enums/user_page_visibility.dart';
|
||||||
import 'package:comunic/helpers/database/database_contract.dart';
|
import 'package:comunic/helpers/database/database_contract.dart';
|
||||||
import 'package:comunic/models/cache_model.dart';
|
import 'package:comunic/models/cache_model.dart';
|
||||||
|
import 'package:comunic/utils/ui_utils.dart';
|
||||||
import 'package:meta/meta.dart';
|
import 'package:meta/meta.dart';
|
||||||
|
|
||||||
/// Single user information
|
/// Single user information
|
||||||
@ -32,7 +33,7 @@ class User extends CacheModel {
|
|||||||
String get fullName => firstName + " " + lastName;
|
String get fullName => firstName + " " + lastName;
|
||||||
|
|
||||||
/// Get user display name
|
/// Get user display name
|
||||||
String get displayName => fullName; //TODO : support HTML characters (eg: É => é)
|
String get displayName => htmlDecodeCharacters(fullName);
|
||||||
|
|
||||||
Map<String, dynamic> toMap() {
|
Map<String, dynamic> toMap() {
|
||||||
return {
|
return {
|
||||||
@ -53,6 +54,4 @@ class User extends CacheModel {
|
|||||||
this.virtualDirectory = map[UserTableContract.C_VIRTUAL_DIRECTORY],
|
this.virtualDirectory = map[UserTableContract.C_VIRTUAL_DIRECTORY],
|
||||||
this.accountImageURL = map[UserTableContract.C_ACCOUNT_IMAGE_URL],
|
this.accountImageURL = map[UserTableContract.C_ACCOUNT_IMAGE_URL],
|
||||||
super.fromMap(map);
|
super.fromMap(map);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user