Stream Chat Unreal SDK
Loading...
Searching...
No Matches
FChatThread Struct Reference

Represents a Stream Chat thread: a message and the replies hanging off it. More...

#include <ChatThread.h>

Public Member Functions

 FChatThread ()
 Needed by USTRUCT system. Shouldn't be used directly.
 
 FChatThread (const FThreadStateResponseDto &, UUserManager *)
 Create a thread from a DTO from the API.
 
int32 UnreadCount () const
 Get the count of replies in this thread which the current user hasn't read.
 

Public Attributes

FString ChannelCid
 CID of the channel this thread belongs to.
 
FString ParentMessageId
 ID of the message which started this thread.
 
FMessage ParentMessage
 The message which started this thread.
 
FUserRef CreatedBy
 The user who started this thread.
 
int32 ReplyCount = 0
 Total number of replies in this thread.
 
int32 ParticipantCount = 0
 Number of users who have ever replied in this thread.
 
int32 ActiveParticipantCount = 0
 Number of users still participating in this thread.
 
TArray< FUserRefThreadParticipants
 The users participating in this thread.
 
TArray< FMessageLatestReplies
 The most recent replies in this thread, oldest first. Not the whole thread.
 
TArray< FReadRead
 The read state of each participant of this thread.
 
FDateTime LastMessageAt = FDateTime{0}
 Date of the most recent reply.
 
FDateTime CreatedAt = FDateTime{0}
 Date this thread was started.
 
FDateTime UpdatedAt = FDateTime{0}
 Date this thread was last updated.
 
FString Title
 Title of this thread, defaulting server-side to the text of the parent message.
 
FAdditionalFields ExtraData
 

Detailed Description

Represents a Stream Chat thread: a message and the replies hanging off it.

Returned by UStreamChatClientComponent::QueryThreads, which lists threads across every channel the current user is a member of. The replies carried here are only the most recent ones, enough to preview the thread; fetch the rest through the channel with UChatChannel::QueryReplies.


The documentation for this struct was generated from the following files: