feat: Implement real-time messaging with socket listeners and enable starting chats from agent details.

This commit is contained in:
pradeepkumar
2026-03-15 00:28:04 +05:30
parent fed89cbef2
commit fe2bc5bf28
4 changed files with 273 additions and 58 deletions

View File

@@ -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 {