浏览代码

Bugfix, /me message wrongly marked as followup message.

JC Brand 7 年之前
父节点
当前提交
097d992d13
共有 2 个文件被更改,包括 2 次插入1 次删除
  1. 1 0
      spec/chatbox.js
  2. 1 1
      src/templates/action.html

+ 1 - 0
spec/chatbox.js

@@ -88,6 +88,7 @@
                         test_utils.sendMessage(view, message);
                         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:last').hasClass('chat-msg-followup')).toBe(false);
                         done();
                     });
                 });

+ 1 - 1
src/templates/action.html

@@ -1,4 +1,4 @@
-<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-author">**{{{o.username}}}</span>
     </span>