Narrow by recipient when the user presses 'S' on a huddle

(imported from commit 7e7c3d27b0824a60f7e8379c282ec05704d842f6)
This commit is contained in:
Keegan McAllister 2012-10-23 23:04:42 -04:00
parent 8fa0e687ae
commit f3f9fb545d
1 changed files with 5 additions and 1 deletions

View File

@ -79,8 +79,12 @@ exports.all_huddles = function () {
exports.by_subject = function () {
var original = message_dict[target_id];
if (original.type !== 'stream')
if (original.type !== 'stream') {
// Only stream messages have subjects, but the
// user wants us to narrow in some way.
exports.by_recipient();
return;
}
var icon = "<i class='icon-bullhorn'></i>";
var message = original.display_recipient + " &nbsp; | &nbsp; " + original.subject;