diff options
Diffstat (limited to 'doNewChat.go')
| -rw-r--r-- | doNewChat.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/doNewChat.go b/doNewChat.go index adb0ee3..089b3df 100644 --- a/doNewChat.go +++ b/doNewChat.go @@ -7,9 +7,14 @@ import ( ) func doNewChat() { + if found := me.chats.FindByUuid(argv.Uuid); found != nil { + found.ChatName = argv.Topic + me.chats.ConfigSave() + return + } chat := &chatpb.Chat{ Uuid: argv.Uuid, - ChatName: "todo: set this", + ChatName: argv.Topic, Ctime: timestamppb.Now(), } |
