⬆️ Support newer version of server messaging

This commit is contained in:
2024-05-05 01:53:31 +08:00
parent efc46dbbc5
commit cf0d473a40
10 changed files with 19 additions and 19 deletions

View File

@@ -31,7 +31,7 @@ class _ChatMessageDeletionDialogState extends State<ChatMessageDeletionDialog> {
if (!await auth.isAuthorized()) return;
final uri = getRequestUri('messaging',
'/api/channels/${widget.channel}/messages/${widget.item.id}');
'/api/channels/global/${widget.channel}/messages/${widget.item.id}');
setState(() => _isSubmitting = true);
final res = await auth.client!.delete(uri);