fix: fixed pin tests

This commit is contained in:
Deven Joshi
2021-06-07 13:04:38 +05:30
parent 9f60af5e16
commit 96f65ae619
2 changed files with 3 additions and 2 deletions
@@ -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.
+1 -1
View File
@@ -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);