igpapi — Instagram private API Simulator for Node.js (API reference) 4.14.0
    Preparing search index...

    Function adoptDirectInboxCache

    • What a first-page Direct inbox answer teaches the session about the app's local inbox store (DirectInboxCache). Same discipline as the sequence: the inbox feed's request is the live writer (only for the first page — a paginated or prefetched page does not replace the store's head), and a scenario driver declares the stored fact it starts from.

      Parameters

      • session: MobileSessionState
      • cache: {
            threads: readonly {
                is_group: boolean;
                items: readonly {
                    client_context?: string;
                    item_id: string;
                    item_type: string;
                    text?: string;
                    timestamp: string | number;
                    user_id: string;
                }[];
                last_activity_at: string
                | number;
                muted: boolean;
                thread_id: string;
                thread_title: string;
                thread_v2_id: string;
                users: readonly {
                    fbid_v2?: string;
                    full_name: string;
                    pk: string;
                    username: string;
                }[];
            }[];
        }

      Returns void