국메 삭제 가능

This commit is contained in:
2018-11-30 21:49:19 +09:00
parent f9489b0173
commit 1b732c76e6
+8 -4
View File
@@ -289,11 +289,15 @@ class Message
];
if($msgObj->msgType == Message::MSGTYPE_PRIVATE || $msgObj->msgType == Message::MSGTYPE_NATIONAL){
$msgObj2 = static::getMessageByID($msgObj->msgOption['receiverMessageID']);
if($msgObj2 !== null){
$msgObj2->invalidate(null, false);
$msgOption['overwrite'][] = [$msgObj2->id];
$receiveID = $msgObj->msgOption['receiverMessageID']??null;
if($receiveID !== null){
$msgObj2 = static::getMessageByID($receiveID);
if($msgObj2 !== null){
$msgObj2->invalidate(null, false);
$msgOption['overwrite'][] = [$msgObj2->id];
}
}
}
$in1min = new \DateTime();