feat(chat): fix chat first message, add pick images from gallery

This commit is contained in:
mso7nueh
2025-06-23 19:46:23 +03:00
parent 85d67ba9c4
commit 75fa9ebc5c
10 changed files with 347 additions and 34 deletions

View File

@@ -39,6 +39,7 @@ class WsManager {
metadata: const PusherChannelsOptionsMetadata.byDefault(),
port: 443,
);
client = PusherChannelsClient.websocket(
options: options,
connectionErrorHandler: (exception, trace, refresh) {
@@ -136,7 +137,7 @@ class WsManager {
_privateDirectChatChannel?.unsubscribe();
}
Future<void> clear() async{
Future<void> clear() async {
await client?.disconnect();
client = null;
userId = null;