inboxMarkAllAsRead method
Implementation
@override
Future<void> inboxMarkAllAsRead() async {
final userId = await _getProfileId();
if (userId == null) return;
final response = await http.post(
Uri.parse(_getInboxUrl('messages/read-all')),
headers: _inboxHeaders(json: true),
body: jsonEncode({'userId': userId}),
);
if (response.statusCode != 202) {
throw Exception('Mark all read failed: ${response.statusCode}');
}
}