IGPAPI
    Preparing search index...

    Function directThreadRowsOf

    • Internal

      Reads a thread object (the inbox thread feed's thread, or the full_json_thread_dict the conversation query returns) into the data the conversation view shows. A shape this model does not know yields undefined rather than an empty conversation. The entries carry nothing of the thread: the screen's state is the one holder of its ids, which its items read as their host's state.

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

      Parameters

      • value: unknown

      Returns
          | {
              data: {
                  media: readonly (
                      | {
                          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 }[];
                      }
                  )[];
                  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;
                  }[];
                  thread: {
                      is_group: boolean;
                      muted: boolean;
                      thread_id: string;
                      thread_title: string;
                      thread_v2_id: string;
                  };
                  users: readonly { full_name: string; pk: string; username: string }[];
              };
              nodes: {
                  media: { key: string; node: unknown }[];
                  messages: { key: string; node: unknown }[];
                  participants: { key: string; node: unknown }[];
              };
          }
          | undefined