Commit 097d992d authored by JC Brand's avatar JC Brand

Bugfix, /me message wrongly marked as followup message.

parent 9d95d2d9
...@@ -88,6 +88,7 @@ ...@@ -88,6 +88,7 @@
test_utils.sendMessage(view, message); test_utils.sendMessage(view, message);
expect(_.includes($(view.el).find('.chat-msg-author:last').text(), '**Max Mustermann')).toBeTruthy(); expect(_.includes($(view.el).find('.chat-msg-author:last').text(), '**Max Mustermann')).toBeTruthy();
expect($(view.el).find('.chat-msg-text:last').text()).toBe(' is as well'); expect($(view.el).find('.chat-msg-text:last').text()).toBe(' is as well');
expect($(view.el).find('.chat-msg:last').hasClass('chat-msg-followup')).toBe(false);
done(); done();
}); });
}); });
......
<div class="message chat-msg chat-action {{{o.extra_classes}}}" data-isodate="{{{o.time}}}"> <div class="message chat-msg chat-action {{{o.extra_classes}}}" data-isodate="{{{o.time}}}" data-from="{{{o.from}}}">
<span class="chat-msg-heading"> <span class="chat-msg-heading">
<span class="chat-msg-author">**{{{o.username}}}</span> <span class="chat-msg-author">**{{{o.username}}}</span>
</span> </span>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment