IGPAPI
    Preparing search index...

    Function threadEntriesOf

    • Internal

      Writes the thread identity onto the entries a conversation lists. The one writer of the ids an entry's own action posts to: the thread decoder passes the conversation's ids here and the screen's composer branch passes the empty sentinel, so no other code sets thread_id or thread_v2_id on an entry and an entry's id is the screen's by construction. A composer has no messages and its participant rows carry the sentinel the nickname screen refuses.

      The Direct screens' own constructor; no published declaration names it.

      Parameters

      • context: DirectThreadEntryContext
      • entries: {
            messages: readonly {
                item_id: string;
                item_type: string;
                media?:
                    | {
                        height: number;
                        media_type: 1;
                        pk: string;
                        url: string;
                        width: number;
                    }
                    | {
                        height: number;
                        media_type: 2;
                        pk: string;
                        url: string;
                        width: number;
                    }
                    | {
                        media_type: 8;
                        pk: string;
                        slides: readonly { media_type: 1
                        | 2; pk: string; url: string }[];
                    };
                text?: string;
                timestamp: string;
                user_id: string;
            }[];
            users: readonly { full_name: string; pk: string; username: string }[];
        }

      Returns {
          messages: readonly {
              item_id: string;
              item_type: string;
              media?:
                  | {
                      height: number;
                      media_type: 1;
                      pk: string;
                      url: string;
                      width: number;
                  }
                  | {
                      height: number;
                      media_type: 2;
                      pk: string;
                      url: string;
                      width: number;
                  }
                  | {
                      media_type: 8;
                      pk: string;
                      slides: readonly { media_type: 1
                      | 2; pk: string; url: string }[];
                  };
              send_attribution?: string;
              text?: string;
              thread_id: string;
              timestamp: string;
              user_id: string;
          }[];
          users: readonly {
              full_name: string;
              pk: string;
              thread_v2_id: string;
              username: string;
          }[];
      }