fixed tests

This commit is contained in:
Deven Joshi
2021-11-25 15:03:32 +05:30
parent be5038d93a
commit 5916a282d1
2 changed files with 6 additions and 4 deletions
@@ -85,9 +85,11 @@ class MessageApi {
}) async { }) async {
final response = await _client.delete( final response = await _client.delete(
'/messages/$messageId', '/messages/$messageId',
queryParameters: { queryParameters: hard != null
if (hard != null) 'hard': hard, ? {
}, 'hard': hard,
}
: null,
); );
return EmptyResponse.fromJson(response.data); return EmptyResponse.fromJson(response.data);
} }
@@ -8,7 +8,7 @@ part 'read.g.dart';
@JsonSerializable() @JsonSerializable()
class Read extends Equatable { class Read extends Equatable {
/// Constructor used for json serialization /// Constructor used for json serialization
Read({ const Read({
required this.lastRead, required this.lastRead,
required this.user, required this.user,
this.unreadMessages = 0, this.unreadMessages = 0,