fix: fixed pin tests
This commit is contained in:
@@ -411,7 +411,8 @@ class Channel {
|
||||
/// Waits for a [_messageAttachmentsUploadCompleter] to complete
|
||||
/// before actually updating the message.
|
||||
Future<UpdateMessageResponse> updateMessage(Message message) async {
|
||||
var currentMessage = state?.messages.firstWhere((e) => e.id == message.id);
|
||||
final currentMessage =
|
||||
state?.messages.firstWhere((e) => e.id == message.id);
|
||||
|
||||
// Cancelling previous completer in case it's called again in the process
|
||||
// Eg. Updating the message while the previous call is in progress.
|
||||
|
||||
@@ -1353,7 +1353,7 @@ class StreamChatClient {
|
||||
Future<UpdateMessageResponse> partiallyUpdateMessage(
|
||||
String id, Map data) async {
|
||||
final response = await put(
|
||||
'/messages/${id}',
|
||||
'/messages/$id',
|
||||
data: data,
|
||||
);
|
||||
return decode(response.data, UpdateMessageResponse.fromJson);
|
||||
|
||||
Reference in New Issue
Block a user