Tigran 4 年之前
父节点
当前提交
d7c76103f3

+ 1 - 1
MafiaTelegramBot/Commands/Messages/ChangeNicknameMessageHandler.cs

@@ -25,8 +25,8 @@ namespace MafiaTelegramBot.Commands.Messages
 
         public override async Task<Message> Execute(Update update)
         {
-            User.Info.NickName = update.Message.Text;
             Queue.Remove(User.Info.Id);
+            User.Info.NickName = update.Message.Text;
             return await MessageController.SendText(User.Info,$"{strings.name_updated} {update.Message.Text}");
         }
 

+ 1 - 0
MafiaTelegramBot/Commands/Messages/EnterCodeMessageHandler.cs

@@ -26,6 +26,7 @@ namespace MafiaTelegramBot.Commands.Messages
         
         public override async Task<Message> Execute(Update update)
         {
+            Queue.Remove(User.Info.Id);
             var roomKey = update.Message.Text;
             var resultCode = await RoomController.ConnectToGame(User, roomKey);
             var result = resultCode == ResultCode.CodeOk