updateChatRoomAnnouncement method

Future<void> updateChatRoomAnnouncement(
  1. String roomId,
  2. String announcement

Updates the chat room announcement.

Only the chat room owner or admin can call this method.

Param roomId The chat room ID.

Param announcement The announcement content.

Throws A description of the exception. See ChatError.


Future<void> updateChatRoomAnnouncement(
  String roomId,
  String announcement,
) async {
  Map req = {"roomId": roomId, "announcement": announcement};
  Map result = await _channel.invokeMethod(
      ChatMethodKeys.updateChatRoomAnnouncement, req);
  try {
  } on ChatError catch (e) {
    throw e;