This commit is contained in:
Salvatore Giordano
2021-02-18 11:45:50 +01:00
parent b7358354e3
commit 183676bb38
+1 -1
View File
@@ -1252,7 +1252,7 @@ class StreamChatClient {
Message message, String channelId, String channelType) async {
final response = await post(
'/channels/$channelType/$channelId/message',
data: {'message': message},
data: {'message': message.toJson()},
);
return decode(response.data, SendMessageResponse.fromJson);
}