Store random_id in internal secret message database
This commit is contained in:
parent
6fcd5247b1
commit
badc751a0f
@ -25,6 +25,7 @@ trait MessageHandler
|
|||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
$message['random_id'] = $this->random(8);
|
||||||
$this->secret_chats[$chat_id]['ttr']--;
|
$this->secret_chats[$chat_id]['ttr']--;
|
||||||
if ($this->secret_chats[$chat_id]['layer'] > 8) {
|
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) {
|
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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user