mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
Check for errors in process_read_message().
Report an error and early-exit if a stream message does not have a stream_id for some reason.
This commit is contained in:
@@ -202,6 +202,10 @@ exports.process_read_message = function (message) {
|
||||
}
|
||||
|
||||
if (message.type === 'stream') {
|
||||
if (message.stream_id === undefined) {
|
||||
blueslip.error('No stream_id found for message ' + message.id);
|
||||
return;
|
||||
}
|
||||
exports.unread_topic_counter.del(
|
||||
message.stream_id,
|
||||
message.subject,
|
||||
|
||||
Reference in New Issue
Block a user