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