aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ui/messages/expandedtextmessage.go2
-rw-r--r--ui/view-main.go1
2 files changed, 1 insertions, 2 deletions
diff --git a/ui/messages/expandedtextmessage.go b/ui/messages/expandedtextmessage.go
index 5e07901..6ed96fc 100644
--- a/ui/messages/expandedtextmessage.go
+++ b/ui/messages/expandedtextmessage.go
@@ -39,8 +39,6 @@ func NewExpandedTextMessage(event *mautrix.Event, displayname string, text tstri
}
}
-var ZeroTime = time.Time{}
-
func NewDateChangeMessage(text string) UIMessage {
midnight := time.Now()
midnight = time.Date(midnight.Year(), midnight.Month(), midnight.Day(),
diff --git a/ui/view-main.go b/ui/view-main.go
index 5b6efa8..bda53ad 100644
--- a/ui/view-main.go
+++ b/ui/view-main.go
@@ -386,6 +386,7 @@ func (view *MainView) NotifyMessage(room *rooms.Room, message ifc.Message, shoul
}
// TODO this should probably happen somewhere else
+ // (actually it's probably completely broken now)
message.SetIsHighlight(should.Highlight)
}