diff --git a/module/ai/model.php b/module/ai/model.php index 432176f90f..9c5473e643 100644 --- a/module/ai/model.php +++ b/module/ai/model.php @@ -300,6 +300,14 @@ class aiModel extends model ->where('id')->eq($modelID) ->exec(); + if(isset($model->name)) + { + $this->dao->update(TABLE_IM_CHAT) + ->set('name')->eq($model->name) + ->where('gid')->like( "%&ai-$modelID") + ->exec(); + } + return !dao::isError(); }