canMessageByInboxId method
Check if can message by inbox ID
Implementation
@override
Future<bool> canMessageByInboxId(String inboxId) async {
try {
final params = <String, dynamic>{
'inboxId': inboxId,
}.jsify() as JSObject;
final result = await _promiseToFuture(
_clientManager.canMessageByInboxId(params),
);
return (result as JSBoolean).toDart;
} catch (e) {
throw Exception('Failed to check if can message by inbox ID: $e');
}
}