iOS quick reply (finished)

This commit is contained in:
2024-12-21 22:19:27 +08:00
parent be98fe133d
commit 7182336a0d
7 changed files with 34 additions and 56 deletions

View File

@ -140,19 +140,3 @@ class ChatChannelProvider extends ChangeNotifier {
super.dispose();
}
}
Future<void> chatReplyMessage(channelId, eventId, String message) async {
print('Chat reply message called with $channelId $eventId $message');
try {
final snc = await SnNetworkProvider.createOffContextClient();
await snc.post('/cgi/im/quick/$channelId/reply/$eventId', data: {
'type': 'messages.new',
'body': {
'text': message,
'algorithm': 'plain',
},
});
} catch (err) {
print('Failed to send chat reply message: $err');
}
}