diff --git a/src/platform/web/ui/session/room/timeline/AnnouncementView.js b/src/platform/web/ui/session/room/timeline/AnnouncementView.js index 5ae92daa..8b68d33b 100644 --- a/src/platform/web/ui/session/room/timeline/AnnouncementView.js +++ b/src/platform/web/ui/session/room/timeline/AnnouncementView.js @@ -22,8 +22,11 @@ export class AnnouncementView extends TemplateView { super(vm); } - render(t) { - return t.li({className: "AnnouncementView"}, t.div(vm => vm.announcement)); + render(t, vm) { + return t.li({ + className: "AnnouncementView", + 'data-event-id': vm.eventId + }, t.div(vm => vm.announcement)); } /* This is called by the parent ListView, which just has 1 listener for the whole list */