Pawnote
    Preparing search index...

    Function discussionMessages

    • Fetches the messages and writes them in the discussion. By default it won't mark the messages as read even after fetching them.

      You can change this behavior by setting markAsRead to true. There's no other way to mark the messages as read.

      Parameters

      • session: SessionHandle

        The current session handle.

      • discussion: Discussion

        The discussion object to fetch messages for.

      • OptionalmarkAsRead: boolean = false

        Whether to mark the messages as read after fetching them.

      Returns Promise<
          Readonly<
              {
                  canIncludeStudentsAndParents: boolean;
                  defaultReplyMessageID: string;
                  drafts: DiscussionDraftMessage[];
                  sendAction?: DiscussionSendAction;
                  sents: DiscussionSentMessage[];
              },
          >,
      >