@deltachat/jsonrpc-client
    Preparing search index...

    Type Alias ChatListItemFetchResult

    ChatListItemFetchResult:
        | { kind: "ChatListItem" } & {
            avatarPath: string | null;
            color: string;
            dmChatContact: T.U32 | null;
            freshMessageCounter: Usize;
            id: T.U32;
            isArchived: boolean;
            isBroadcast: boolean;
            isContactRequest: boolean;
            isDeviceTalk: boolean;
            isEncrypted: boolean;
            isGroup: boolean;
            isMuted: boolean;
            isOutBroadcast: boolean;
            isPinned: boolean;
            isProtected: boolean;
            isSelfInGroup: boolean;
            isSelfTalk: boolean;
            isSendingLocation: boolean;
            lastMessageId: T.U32 | null;
            lastMessageType: Viewtype | null;
            lastUpdated: I64 | null;
            name: string;
            summaryPreviewImage: string | null;
            summaryStatus: T.U32;
            summaryText1: string;
            summaryText2: string;
            wasSeenRecently: boolean;
        }
        | { kind: "ArchiveLink" } & { freshMessageCounter: Usize }
        | { kind: "Error" } & { error: string; id: T.U32 }

    Type declaration

    • { kind: "ChatListItem" } & {
          avatarPath: string | null;
          color: string;
          dmChatContact: T.U32 | null;
          freshMessageCounter: Usize;
          id: T.U32;
          isArchived: boolean;
          isBroadcast: boolean;
          isContactRequest: boolean;
          isDeviceTalk: boolean;
          isEncrypted: boolean;
          isGroup: boolean;
          isMuted: boolean;
          isOutBroadcast: boolean;
          isPinned: boolean;
          isProtected: boolean;
          isSelfInGroup: boolean;
          isSelfTalk: boolean;
          isSendingLocation: boolean;
          lastMessageId: T.U32 | null;
          lastMessageType: Viewtype | null;
          lastUpdated: I64 | null;
          name: string;
          summaryPreviewImage: string | null;
          summaryStatus: T.U32;
          summaryText1: string;
          summaryText2: string;
          wasSeenRecently: boolean;
      }
      • kind: "ChatListItem"
      • avatarPath: string | null
      • color: string
      • dmChatContact: T.U32 | null

        contact id if this is a dm chat (for view profile entry in context menu)

      • freshMessageCounter: Usize
      • id: T.U32
      • isArchived: boolean
      • isBroadcast: boolean

        Deprecated 2025-07, alias for is_out_broadcast

      • isContactRequest: boolean
      • isDeviceTalk: boolean
      • isEncrypted: boolean

        True if the chat is encrypted. This means that all messages in the chat are encrypted, and all contacts in the chat are "key-contacts", i.e. identified by the PGP key fingerprint.

        False if the chat is unencrypted. This means that all messages in the chat are unencrypted, and all contacts in the chat are "address-contacts", i.e. identified by the email address. The UI should mark this chat e.g. with a mail-letter icon.

        Unencrypted groups are called "ad-hoc groups" and the user can't add/remove members, create a QR invite code, or set an avatar. These options should therefore be disabled in the UI.

        Note that it can happen that an encrypted chat contains unencrypted messages that were received in core <= v1.159.* and vice versa.

        See also is_key_contact on Contact.

      • isGroup: boolean
      • isMuted: boolean
      • isOutBroadcast: boolean

        true if the chat type is OutBroadcast

      • isPinned: boolean
      • isProtected: boolean
      • isSelfInGroup: boolean
      • isSelfTalk: boolean
      • isSendingLocation: boolean
      • lastMessageId: T.U32 | null
      • lastMessageType: Viewtype | null
      • lastUpdated: I64 | null
      • name: string
      • summaryPreviewImage: string | null

        showing preview if last chat message is image

      • summaryStatus: T.U32
      • summaryText1: string
      • summaryText2: string
      • wasSeenRecently: boolean
    • { kind: "ArchiveLink" } & { freshMessageCounter: Usize }
    • { kind: "Error" } & { error: string; id: T.U32 }