Merge pull request #763 from geweald/fix-web-attachments
fix(llc, ui): Fix web attachments & closing websocket
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
## Upcoming
|
||||||
|
|
||||||
|
🐞 Fixed
|
||||||
|
|
||||||
|
- `closeConnection()` now uses `normalClosure` status when closing websocket.
|
||||||
|
|
||||||
## 3.2.0
|
## 3.2.0
|
||||||
|
|
||||||
🐞 Fixed
|
🐞 Fixed
|
||||||
|
|||||||
@@ -121,7 +121,8 @@ class WebSocket with TimerHelper {
|
|||||||
_logger?.info('Closing connection with $baseUrl');
|
_logger?.info('Closing connection with $baseUrl');
|
||||||
if (_webSocketChannel != null) {
|
if (_webSocketChannel != null) {
|
||||||
_unsubscribeFromWebSocketChannel();
|
_unsubscribeFromWebSocketChannel();
|
||||||
_webSocketChannel?.sink.close(status.goingAway);
|
_webSocketChannel?.sink
|
||||||
|
.close(_manuallyClosed ? status.normalClosure : status.goingAway);
|
||||||
_webSocketChannel = null;
|
_webSocketChannel = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
🐞 Fixed
|
🐞 Fixed
|
||||||
|
|
||||||
- Fixed `MessageWidget` null errors associated with `channel.memberCount`.
|
- Fixed `MessageWidget` null errors associated with `channel.memberCount`.
|
||||||
|
- Fixed adding attachments on web.
|
||||||
|
|
||||||
## 3.2.0
|
## 3.2.0
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import 'package:characters/characters.dart';
|
import 'package:characters/characters.dart';
|
||||||
import 'package:diacritic/diacritic.dart';
|
import 'package:diacritic/diacritic.dart';
|
||||||
import 'package:file_picker/file_picker.dart';
|
import 'package:file_picker/file_picker.dart';
|
||||||
|
import 'package:flutter/foundation.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:stream_chat_flutter/src/emoji/emoji.dart';
|
import 'package:stream_chat_flutter/src/emoji/emoji.dart';
|
||||||
import 'package:stream_chat_flutter/src/localization/translations.dart';
|
import 'package:stream_chat_flutter/src/localization/translations.dart';
|
||||||
@@ -46,7 +47,7 @@ extension IterableX<T> on Iterable<T> {
|
|||||||
extension PlatformFileX on PlatformFile {
|
extension PlatformFileX on PlatformFile {
|
||||||
/// Converts the [PlatformFile] into [AttachmentFile]
|
/// Converts the [PlatformFile] into [AttachmentFile]
|
||||||
AttachmentFile get toAttachmentFile => AttachmentFile(
|
AttachmentFile get toAttachmentFile => AttachmentFile(
|
||||||
path: path,
|
path: kIsWeb ? null : path,
|
||||||
name: name,
|
name: name,
|
||||||
bytes: bytes,
|
bytes: bytes,
|
||||||
size: size,
|
size: size,
|
||||||
|
|||||||
Reference in New Issue
Block a user