|
|
@@ -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,
|