Function wrapNotificationInIntercomResult

  • Parameters

    • notification: {
          actorPlayerId: string;
          createdAt: string;
          description: string;
          id: string;
          kind:
              | "message_like"
              | "message_love"
              | "message_reply"
              | "room_join"
              | "peer_call_invite"
              | "peer_call_declined";
          messageRequestId?: string;
          metadata: Record<string, unknown>;
          targetPlayerId?: string;
          title: string;
      }
      • actorPlayerId: string
      • createdAt: string
      • description: string
      • id: string
      • kind:
            | "message_like"
            | "message_love"
            | "message_reply"
            | "room_join"
            | "peer_call_invite"
            | "peer_call_declined"
      • OptionalmessageRequestId?: string
      • metadata: Record<string, unknown>
      • OptionaltargetPlayerId?: string
      • title: string
    • baseResult: Record<string, unknown> = {}

    Returns Record<string, unknown>