Navigation
API > API/Plugins > API/Plugins/OnlineSubsystem > API/Plugins/OnlineSubsystem/Interfaces > API/Plugins/OnlineSubsystem/Interfaces/IOnlineChat
References
| Module | OnlineSubsystem |
| Header | /Engine/Plugins/Online/OnlineSubsystem/Source/Public/Interfaces/OnlineChatInterface.h |
| Include | #include "Interfaces/OnlineChatInterface.h" |
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 true if found
Parameters
| Name | 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 |