IOnlineChat::GetLastMessages

Get cached list of chat messages for a currently joined chat room

Windows
MacOS
Linux

References

Module

OnlineSubsystem

Header

/Engine/Plugins/Online/OnlineSubsystem/Source/Public/Interfaces/OnlineChatInterface.h

Include

#include "Interfaces/OnlineChatInterface.h"

Syntax

bool GetLastMessages
(
    const FUniqueNetId & UserId,
    const FChatRoomId & RoomId,
    int32 NumMessages,
    TArray< TSharedRef< FChatMessage > > & OutMessages
)

Remarks

Get cached list of chat messages for a currently joined chat room

Returns

true if found

Parameters

Parameter

Description

UserId

id of user to find

RoomId

id of room to find

NumMessages

max number of messages to fetch from history (-1 for all cached messages)

OutMessages

[out] list of messages from the chat room history

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss