room-history: Fix random offset for state-like events

This commit is contained in:
Kévin Commaille 2022-11-08 21:28:21 +01:00 committed by Kévin Commaille
parent b73c149a22
commit 087391c7ea

View file

@ -196,6 +196,13 @@ impl ItemRow {
fn set_item(&self, item: Option<TimelineItem>) { fn set_item(&self, item: Option<TimelineItem>) {
let imp = self.imp(); let imp = self.imp();
// Reinitialize the header.
if let Some(list_item) = self.parent() {
if list_item.has_css_class("has-header") {
list_item.remove_css_class("has-header");
}
}
if let Some(event) = imp if let Some(event) = imp
.item .item
.borrow() .borrow()