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

The currently connected Stream Chat user. More...

#include <OwnUser.h>

Public Member Functions

 FOwnUser ()
 Needed by USTRUCT system. Shouldn't be used directly.
 
 FOwnUser (const FUserRef &)
 
 FOwnUser (const FOwnUserDto &, UUserManager *)
 Convert from OwnUser.
 
void Update (const FOwnUser &OwnUser)
 
bool HasMutedUser (const FUserRef &TargetUser) const
 Has this user muted the given user?
 
bool HasBlockedUser (const FUserRef &TargetUser) const
 Has this user blocked the given user?
 

Public Attributes

FUserRef User
 
int32 UnreadCount = 0
 
int32 TotalUnreadCount = 0
 Only populated for current user.
 
int32 UnreadChannels = 0
 Only populated for current user.
 
TArray< FMutedUser > MutedUsers
 Only populated for current user.
 
TArray< FMutedChannel > MutedChannels
 Only populated for current user.
 
TArray< FString > BlockedUserIds
 Ids of the users this user has blocked.
 

Detailed Description

The currently connected Stream Chat user.

Member Data Documentation

◆ BlockedUserIds

TArray<FString> FOwnUser::BlockedUserIds

Ids of the users this user has blocked.

Unlike the mute lists, this is not part of the own user the API sends down, and no event reports a change to it. It is maintained from the responses to UStreamChatClientComponent::BlockUser, UnblockUser and GetBlockedUsers, so it is only as complete as the calls this session has made. Call GetBlockedUsers once after connecting to populate it.


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