zulip/frontend_tests
Steve Howell a361e2b993 Fix recent regressions with All Messages (muted topics).
My recent refactoring that split out MessageListData
introduced a nasty bug where we were putting muted
messages into the "All Messages" view even though
the underlying list was correctly filtering
them, so the symptoms were two-fold:

    - muted messages cluttered up your feed
    - replying to the message caused a traceback (since
      it wasn't actually in the underlying data
      structure)

This has to do with what MessageListData.add_messages()
was passing back to MessageList to orchestrate drawing
in MessageListView.

I think what happened here is I got this working kind
of sloppily but correctly for the non-muting case and
then got in the weeds of some other stuff.  Not my
finest moment.

The actual correct code here is simple enough.  We
triage top, interior, and bottom, and then the respective
methods that put the data into the data structure
return the filtered lists (i.e. not muted) and put them
into the info structure.

Fixes #9656
2018-06-04 14:35:23 -07:00
..
casper_lib eslint: Enable space-infix-ops rule. 2018-06-05 00:47:35 +05:30
casper_tests eslint: Enable space-infix-ops rule. 2018-06-05 00:47:35 +05:30
node_tests Fix recent regressions with All Messages (muted topics). 2018-06-04 14:35:23 -07:00
zjsunit eslint: Enable space-infix-ops rule. 2018-06-05 00:47:35 +05:30
.eslintrc.json lint: Check eslint indentation for casper tests. 2018-05-06 19:35:18 -07:00
run-casper casper tests: Show the server output inline. 2018-01-16 13:25:19 -05:00