stream_popover: Remove whitespace around topic name.

This commit is contained in:
Aman Agrawal 2020-06-03 19:59:07 +05:30 committed by Tim Abbott
parent ec257f6ec3
commit 5f50e15ec5
1 changed files with 1 additions and 0 deletions

View File

@ -552,6 +552,7 @@ exports.register_topic_handlers = function () {
const {old_topic_name, select_stream_id} = params;
let {current_stream_id, new_topic_name} = params;
new_topic_name = new_topic_name.trim();
current_stream_id = parseInt(current_stream_id, 10);
// The API endpoint for editing messages to change their