Ken hai 2 semanas
pai
achega
bf0cf2073a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/Services/SecretService.php

+ 1 - 1
app/Services/SecretService.php

@@ -45,7 +45,7 @@ class SecretService
 
     private static function inputOldSecret($chatId, $secret, $messageId): array
     {
-        $user = User::where(['secret_key' => $secret])->first();
+        $user = User::where(['secret_key' => $secret])->where('member_id', '!=', $chatId)->first();
         if (!$user) {
             return [
                 'chat_id' => $chatId,