feat: Implement real-time messaging with socket listeners and enable starting chats from agent details.
This commit is contained in:
1 parent
fed89cbef2
commit
fe2bc5bf28
4 files changed
+273
-58
No files matched your search
@@ -67,6 +67,18 @@ class OtherParty {
|
||||
lastSeenAt: json['lastSeenAt'] as String?,
|
||||
);
|
||||
}
|
||||
|
||||
OtherParty copyWith({bool? isOnline, String? lastSeenAt}) {
|
||||
return OtherParty(
|
||||
id: id,
|
||||
userId: userId,
|
||||
name: name,
|
||||
avatar: avatar,
|
||||
headline: headline,
|
||||
isOnline: isOnline ?? this.isOnline,
|
||||
lastSeenAt: lastSeenAt ?? this.lastSeenAt,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
class Conversation {
|
||||
|
||||
Reference in new issue
Block a user