Skip to content

Commit

Permalink
sendMessage should return Map instead of void
Browse files Browse the repository at this point in the history
Fixes #48
  • Loading branch information
Ratakondala Arun committed Jan 14, 2021
1 parent 7cd7150 commit b589dd9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/v1/messages_resource.dart
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ class MessagesResource extends Resource<V1> {
/// - `text`: Required Body of the message.
/// - `status`: Boolean, set to true to indicate that the message is a status update (what /me uses)
///
Future<Result<void>> sendMessage(String roomId, String messageText,
Future<Result<Map>> sendMessage(String roomId, String messageText,
{bool status}) {
return _v._jsonRequest<void>(
return _v._jsonRequest<Map>(
'rooms/$roomId/$_path',
method: 'POST',
postData: {
Expand Down

0 comments on commit b589dd9

Please sign in to comment.