Messaging
Implemented Chat Screens, Profile Pages, Search Pages WIP: User profile, new chat button Intended: Groups, Calls, Voice Messages Properly deleting chats, offline storage of messages
This commit is contained in:
@@ -6,6 +6,7 @@ class Details {
|
||||
int unseenCount;
|
||||
String? lastMessage;
|
||||
DateTime? timeStamp;
|
||||
String? type;
|
||||
|
||||
Details({
|
||||
required this.name,
|
||||
@@ -13,6 +14,7 @@ class Details {
|
||||
required this.lastMessage,
|
||||
required this.timeStamp,
|
||||
required this.unseenCount,
|
||||
required this.type
|
||||
});
|
||||
|
||||
factory Details.fromData(String _details) {
|
||||
@@ -22,6 +24,7 @@ class Details {
|
||||
lastMessage: json.decode(_details)['lastMessage'],
|
||||
timeStamp: DateTime.parse(json.decode(_details)['timeStamp'] ?? ""),
|
||||
unseenCount: json.decode(_details)['unseenCount'],
|
||||
type: json.decode(_details)['type'],
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user