hydrogen-web/src/platform/web/ui/session/room/timeline/AnnouncementView.js
Bruno Windels 457c096c9b render date separator in base class for all tiles
apart from gap, which doesn't have date

since we add a container when the date separator needs to be shown, and
we don't want to rerender the whole tile, we always render timeline
tiles with a DIV rather than an LI (same for the UL).
2022-06-25 12:50:53 +02:00

24 lines
799 B
JavaScript

/*
Copyright 2020 Bruno Windels <bruno@windels.cloud>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import {BaseTileView} from "./BaseTileView";
export class AnnouncementView extends BaseTileView {
renderTile(t, vm) {
return t.div({className: "AnnouncementView"}, t.div(vm => vm.announcement));
}
}