DeleteMessage
bool CSocNetMessages::DeleteMessage( int id, int userId, bool bCheckMessages = true );
The method logically deletes a message. The method accepts a user ID for message sender or a message recipient. The message is marked as deleted for this user. For the second user this message is deemed as not deleted and is available as usual. Physical deleting of message is performed after logical deletion by the second user. Non-static method.
Note: when deleting physically, the method [link=191230]CSocNetMessages::Delete[/link] is used.
Parmeters
Parameter | Description | Available from version |
---|---|---|
id | Message ID. | |
userId | User ID - message sender or message recipient, who is deleting the message. | |
bCheckMessages | Optional parameter. Set to true by default. |
Returned value
Returns true on success and false otherwise.
© «Bitrix24», 2001-2024