From b7358354e36ab67b00f90102c9bff937d6cd9bfb Mon Sep 17 00:00:00 2001 From: Sahil Kumar Date: Thu, 18 Feb 2021 15:16:48 +0530 Subject: [PATCH] [LLC] Rename AttachmentUploader to AttachmentFileUploader Signed-off-by: Sahil Kumar --- .../stream_chat/lib/src/attachment_file_uploader.dart | 6 +++--- packages/stream_chat/lib/src/client.dart | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/stream_chat/lib/src/attachment_file_uploader.dart b/packages/stream_chat/lib/src/attachment_file_uploader.dart index 8db8b168..8cb970eb 100644 --- a/packages/stream_chat/lib/src/attachment_file_uploader.dart +++ b/packages/stream_chat/lib/src/attachment_file_uploader.dart @@ -34,11 +34,11 @@ abstract class AttachmentFileUploader { } /// Stream's default implementation of [AttachmentFileUploader] -class StreamAttachmentUploader implements AttachmentFileUploader { +class StreamAttachmentFileUploader implements AttachmentFileUploader { final StreamChatClient _client; - /// Creates a new [StreamAttachmentUploader] instance. - const StreamAttachmentUploader(this._client); + /// Creates a new [StreamAttachmentFileUploader] instance. + const StreamAttachmentFileUploader(this._client); @override Future sendImage( diff --git a/packages/stream_chat/lib/src/client.dart b/packages/stream_chat/lib/src/client.dart index 6a513151..6ee8609e 100644 --- a/packages/stream_chat/lib/src/client.dart +++ b/packages/stream_chat/lib/src/client.dart @@ -80,7 +80,7 @@ class StreamChatClient { Duration receiveTimeout = const Duration(seconds: 6), Dio httpClient, RetryPolicy retryPolicy, - this.attachmentUploader, + this.attachmentFileUploader, }) { _retryPolicy ??= RetryPolicy( retryTimeout: (StreamChatClient client, int attempt, ApiError error) => @@ -89,7 +89,7 @@ class StreamChatClient { attempt < 5, ); - attachmentUploader ??= StreamAttachmentUploader(this); + attachmentFileUploader ??= StreamAttachmentFileUploader(this); state = ClientState(this); @@ -103,7 +103,7 @@ class StreamChatClient { ChatPersistenceClient chatPersistenceClient; /// Attachment uploader - AttachmentFileUploader attachmentUploader; + AttachmentFileUploader attachmentFileUploader; /// Whether the chat persistence is available or not bool get persistenceEnabled => chatPersistenceClient != null; @@ -1050,7 +1050,7 @@ class StreamChatClient { ProgressCallback onSendProgress, CancelToken cancelToken, }) { - return attachmentUploader.sendFile( + return attachmentFileUploader.sendFile( file, channelId, channelType, @@ -1067,7 +1067,7 @@ class StreamChatClient { ProgressCallback onSendProgress, CancelToken cancelToken, }) { - return attachmentUploader.sendImage( + return attachmentFileUploader.sendImage( image, channelId, channelType,