added hard delete

This commit is contained in:
Deven Joshi
2021-11-12 16:42:33 +05:30
parent a3cce7ffff
commit 821d8ee0f0
4 changed files with 16 additions and 6 deletions
@@ -80,10 +80,14 @@ class MessageApi {
/// Deletes the given [messageId]
Future<EmptyResponse> deleteMessage(
String messageId,
) async {
String messageId, {
bool? hard,
}) async {
final response = await _client.delete(
'/messages/$messageId',
queryParameters: {
if (hard != null) 'hard': hard,
},
);
return EmptyResponse.fromJson(response.data);
}