Add data-event-id to AnnouncementView so it appears for state events in the timeline

Follow-up to https://github.com/vector-im/hydrogen-web/pull/690

Split off from https://github.com/vector-im/hydrogen-web/pull/653
This commit is contained in:
Eric Eastwood 2022-09-16 13:59:50 -05:00
parent 5f9cfffa3b
commit 90ac16854b

View File

@ -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 */