mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
continuation can change, so bind to it
This commit is contained in:
parent
a2625630ad
commit
5898177f0b
@ -20,9 +20,9 @@ export function renderMessage(t, vm, children) {
|
|||||||
"TextMessageView": true,
|
"TextMessageView": true,
|
||||||
own: vm.isOwn,
|
own: vm.isOwn,
|
||||||
pending: vm.isPending,
|
pending: vm.isPending,
|
||||||
continuation: vm.isContinuation,
|
continuation: vm => vm.isContinuation,
|
||||||
};
|
};
|
||||||
const sender = t.div({className: `sender usercolor${vm.senderColorNumber}`}, vm => vm.isContinuation ? "" : vm.sender);
|
const sender = t.div({className: `sender usercolor${vm.senderColorNumber}`}, vm.sender);
|
||||||
children = [sender].concat(children);
|
children = [sender].concat(children);
|
||||||
return t.li(
|
return t.li(
|
||||||
{className: classes},
|
{className: classes},
|
||||||
|
Loading…
Reference in New Issue
Block a user