Closed gregkare closed 7 years ago
I increased the mass threshold for the CodeClimate duplication warnings. These should be green in the future, unless you have actual duplication going on.
I'm going to remove the User model for now, switch back the user list to an array of strings and use a helper to render each user list. The sort order works automatically because of the prefixes
This is ready to review. I haven't changed the UI for it, but this adds a "normal" class to normal users and "op" to ops
+
comes before @
when doing a .sort()
, so we'll need a custom sort function
Sounds like a seperate new issue to me, because they're already sorted by that first character.
There's still an issue with this PR: there's a double rendering issue.
@galfert Do you know what I should do to fix it?
"Assertion Failed: You modified "unreadMessagesClass" twice on <(unknown mixin):ember1638> in a single render. It was rendered in "component:channel-nav" and modified in "component:link-to". This was unreliable and slow in Ember 1.x and is no longer supported. See https://github.com/emberjs/ember.js/issues/13948 for more details.
EmberError@http://localhost:4200/assets/vendor.js:22898:19
This seems to happen when joining a new channel, and goes away when reloading Hyperchannel
@galfert Did you see @gregkare's question here?
No, I missed that. Might be some runloop issue. I'll have a look.
When testing this I had the (already known and fixed) errors due to the incompatibility with the recent Sockethub changes. So I merged in the current master. But I still couldn't reproduce the error you mentioned.
The feature itself worked. But I took the liberty to refactor it a little bit to be less "if-elsy" :) I also added some unit tests.
Overall I think it's good to merge now.
Refs #21
It works but I haven't added styling yet. This should also fix messaging ops from the user list