Made chat messages deletable

This commit is contained in:
2023-06-08 21:07:17 +02:00
parent 2c10b02e53
commit 0f3fe75bad
2 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,22 @@
import 'package:http/http.dart' as http;
import 'package:http/http.dart';
import '../../../apiParams.dart';
import '../talkApi.dart';
class DeleteMessage extends TalkApi {
String chatToken;
int messageId;
DeleteMessage(this.chatToken, this.messageId) : super("v1/chat/$chatToken/$messageId", null);
@override
assemble(String raw) {
}
@override
Future<Response>? request(Uri uri, ApiParams? body, Map<String, String>? headers) {
return http.delete(uri, headers: headers);
}
}