mirror of
https://github.com/thelounge/thelounge.git
synced 2024-06-16 12:35:07 +02:00
c0d348a678
- `{}` is not falsey so Handlebars would try to render the block (see http://handlebarsjs.com/builtin_helpers.html#conditionals), therefore with a `nick` of `undefined`, which breaks `colorClass` (doing `undefined.length) - There does not seem to be a way to check for empty objects in Handlebars (sigh) so checking `from.nick` seems like the most reliable way to check for a non-empty value. Alternatively, we could use a helper to check `{}` but meh. |
||
---|---|---|
.. | ||
actions | ||
windows | ||
chan.tpl | ||
chat.tpl | ||
contextmenu_divider.tpl | ||
contextmenu_item.tpl | ||
date-marker.tpl | ||
image_viewer.tpl | ||
index.js | ||
msg.tpl | ||
msg_action.tpl | ||
msg_condensed.tpl | ||
msg_condensed_toggle.tpl | ||
msg_preview.tpl | ||
msg_preview_toggle.tpl | ||
msg_unhandled.tpl | ||
network.tpl | ||
session.tpl | ||
unread_marker.tpl | ||
user.tpl | ||
user_filtered.tpl | ||
user_name.tpl |