handleRenameStateMessage method

Future handleRenameStateMessage(
  1. Map<String, dynamic> payload
)

处理改名消息

Implementation

Future handleRenameStateMessage(Map<String, dynamic> payload) async {
  try {
    var message = RenameMessage.fromJson(payload);

    renameMessage.value = message;

    localStg.write(StorageKey.renameMessage, renameMessage.value!.toJson());
  } catch (e, st) {
    log("[handleRenameStateMessage] 消息处理失败", error: e, stackTrace: st);
  }
}