-
Notifications
You must be signed in to change notification settings - Fork 701
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix how highlights are handled #91
Conversation
This one seems to break notifications on highlight. I put my test instance on a random channel and highlighted myself, but I didn't get the desktop notification and the badge didn't turn white either. It just displayed as if it was any other non-highlight channel message. I also noticed the line doesn't get colored at all, so it's not clear it's a highlight. It just stays orange. Did I miss something? I did run |
Was there a .highlight class applied? Was it an action? |
Yes, the .highlight class gets applied properly. But with both actions and regular messages, no desktop notification gets received, and the badge doesn't turn white. With regular messages, the line does turn red as expected however. <div class="msg message highlight">
<span class="time">
03:49
</span>
<span class="from">
<a href="#" class="user" style="color: #ff514d">Max-P_test</a>
</span>
<span class="text">
Max-P: That still works
</span>
</div> <div class="msg action highlight">
<span class="time">
03:48
</span>
<span class="from"></span>
<span class="text">
<a href="#" class="user">Max-P_test</a>
highlights Max-P
</span>
</div> Switching back to master, it all works again. |
This PR doesn't fix color on highlight (the other PR does), so that's fine. Unsure about notification though. |
Found it: highlight checked here and broken here Since you're adding an |
Template adds the highlight class though, so that doesn't make sense. |
It's not checking the class, it's checking the message type directly from the server event. |
Ah, my bad. |
@maxpoulin64 Should be fixed now. |
I confirm it works fine for me now, 👍 |
👍 |
Fix how highlights are handled
self