diff --git a/app/assets/javascripts/discourse/models/topic.js.es6 b/app/assets/javascripts/discourse/models/topic.js.es6 index cd134683a25..c2a4d0517db 100644 --- a/app/assets/javascripts/discourse/models/topic.js.es6 +++ b/app/assets/javascripts/discourse/models/topic.js.es6 @@ -365,6 +365,9 @@ Topic.reopenClass({ delete props.categoryId; } + // Make sure we never change the category for private messages + if (topic.get("isPrivateMessage")) { delete props.category_id; } + // Annoyingly, empty arrays are not sent across the wire. This // allows us to make a distinction between arrays that were not // sent and arrays that we specifically want to be empty.