국메 삭제 가능

This commit is contained in:
2019-04-07 21:02:45 +09:00
parent b27adfbe27
commit 6aede6e48b
+5 -1
View File
@@ -289,13 +289,17 @@ class Message
]; ];
if($msgObj->msgType == Message::MSGTYPE_PRIVATE || $msgObj->msgType == Message::MSGTYPE_NATIONAL){ if($msgObj->msgType == Message::MSGTYPE_PRIVATE || $msgObj->msgType == Message::MSGTYPE_NATIONAL){
$msgObj2 = static::getMessageByID($msgObj->msgOption['receiverMessageID']); $receiveID = $msgObj->msgOption['receiverMessageID']??null;
if($receiveID !== null){
$msgObj2 = static::getMessageByID($receiveID);
if($msgObj2 !== null){ if($msgObj2 !== null){
$msgObj2->invalidate(null, false); $msgObj2->invalidate(null, false);
$msgOption['overwrite'][] = [$msgObj2->id]; $msgOption['overwrite'][] = [$msgObj2->id];
} }
} }
}
$in1min = new \DateTime(); $in1min = new \DateTime();
$in1min->add(new \DateInterval('PT1M')); $in1min->add(new \DateInterval('PT1M'));
$newMsg = new Message( $newMsg = new Message(