fetchChatRoomAnnouncement method

Future<String?> fetchChatRoomAnnouncement(
  1. 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.


Future<String?> fetchChatRoomAnnouncement(
  String roomId,
) async {
  Map req = {"roomId": roomId};
  Map result = await _channel.invokeMethod(
      ChatMethodKeys.fetchChatRoomAnnouncement, req);
  try {
    return result[ChatMethodKeys.fetchChatRoomAnnouncement];
  } on ChatError catch (e) {
    throw e;