fixed tests
This commit is contained in:
@@ -85,9 +85,11 @@ class MessageApi {
|
||||
}) async {
|
||||
final response = await _client.delete(
|
||||
'/messages/$messageId',
|
||||
queryParameters: {
|
||||
if (hard != null) 'hard': hard,
|
||||
},
|
||||
queryParameters: hard != null
|
||||
? {
|
||||
'hard': hard,
|
||||
}
|
||||
: null,
|
||||
);
|
||||
return EmptyResponse.fromJson(response.data);
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ part 'read.g.dart';
|
||||
@JsonSerializable()
|
||||
class Read extends Equatable {
|
||||
/// Constructor used for json serialization
|
||||
Read({
|
||||
const Read({
|
||||
required this.lastRead,
|
||||
required this.user,
|
||||
this.unreadMessages = 0,
|
||||
|
||||
Reference in New Issue
Block a user