fetchChatRoomAnnouncement method
- String roomId
Gets the chat room announcement from the server.
Param roomId The chat room ID.
Return The chat room announcement.
Throws A description of the exception. See ChatError.
Implementation
Future<String?> fetchChatRoomAnnouncement(
String roomId,
) async {
try {
Map req = {"roomId": roomId};
Map result = await platform_interface.Client.instance.chatRoomManager
.callNativeMethod(ChatMethodKeys.fetchChatRoomAnnouncement, req);
ChatError.hasErrorFromResult(result);
return result[ChatMethodKeys.fetchChatRoomAnnouncement];
} catch (e) {
rethrow;
}
}