room-history: Fix random offset for state-like events
This commit is contained in:
parent
b73c149a22
commit
087391c7ea
1 changed files with 7 additions and 0 deletions
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue