{"id":983,"date":"2020-04-14T09:56:51","date_gmt":"2020-04-14T09:56:51","guid":{"rendered":"https:\/\/html5-chat.com\/blog\/?p=983"},"modified":"2020-04-14T09:56:53","modified_gmt":"2020-04-14T09:56:53","slug":"delete-individual-message-from-chat","status":"publish","type":"post","link":"https:\/\/html5-chat.com\/blog\/delete-individual-message-from-chat\/","title":{"rendered":"Delete individual message from chat"},"content":{"rendered":"\n<p>You can now delete messages in real time directly from the chat<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>delete all messages from an user<\/li><li>delete an individual message from an user<\/li><\/ul>\n\n\n\n<p>Go to roles and check (admin or moderator role for instance)<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>canDeleteMessage: <\/strong>this allow to delete all user&#8217;s messages<\/li><li><strong>canDeleteIndividualMessage<\/strong>: this allow to delete any message<\/li><\/ul>\n\n\n\n<p>Also make sure that the role can delete other user&#8217;s messages<br>ex: a moderator should not be able to delete admin&#8217;s messages<br>This can be done with <strong>canUserMessagesDeleted<\/strong><br><\/p>\n","protected":false},"excerpt":{"rendered":"<p>You can now delete messages in real time directly from the chat delete all messages from an user delete an individual message from an user Go to roles and check (admin or moderator role for instance) canDeleteMessage: this allow to delete all user&#8217;s messages canDeleteIndividualMessage: this allow to delete any message Also make sure that [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":988,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-983","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-features"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/posts\/983","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/comments?post=983"}],"version-history":[{"count":4,"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/posts\/983\/revisions"}],"predecessor-version":[{"id":990,"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/posts\/983\/revisions\/990"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/media\/988"}],"wp:attachment":[{"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/media?parent=983"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/categories?post=983"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/tags?post=983"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}