From badc751a0f4a86ac4b7a362737d61f27d5832b9e Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Thu, 19 Jul 2018 18:42:30 +0200 Subject: [PATCH] Store random_id in internal secret message database --- src/danog/MadelineProto/SecretChats/MessageHandler.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/danog/MadelineProto/SecretChats/MessageHandler.php b/src/danog/MadelineProto/SecretChats/MessageHandler.php index c0d81d1f..7464cb34 100644 --- a/src/danog/MadelineProto/SecretChats/MessageHandler.php +++ b/src/danog/MadelineProto/SecretChats/MessageHandler.php @@ -25,6 +25,7 @@ trait MessageHandler return false; } + $message['random_id'] = $this->random(8); $this->secret_chats[$chat_id]['ttr']--; if ($this->secret_chats[$chat_id]['layer'] > 8) { if (($this->secret_chats[$chat_id]['ttr'] <= 0 || time() - $this->secret_chats[$chat_id]['updated'] > 7 * 24 * 60 * 60) && $this->secret_chats[$chat_id]['rekeying'][0] === 0) {