processWelcome method

  1. @override
Future<List<Map<String, dynamic>>> processWelcome(
  1. Uint8List encryptedBytes
)
override

Decrypt an FCM/APNs push payload that arrived on the welcome topic (/xmtp/mls/1/w-${installationId}/proto). Returns the newly-created conversation(s) — usually 1, occasionally more from DM stitching. Each entry mirrors listConversations shape.

Implementation

@override
Future<List<Map<String, dynamic>>> processWelcome(
    Uint8List encryptedBytes) async {
  await _ensureInitialized();
  final conversations = await rust_push.processWelcome(
    encryptedBytes: encryptedBytes.toList(),
  );
  return conversations.map(_conversationInfoToMap).toList();
}