Misc changes

This commit is contained in:
Tulir Asokan 2019-04-10 02:28:24 +03:00
parent b668c2cdc7
commit 099eebfa67
2 changed files with 1 additions and 2 deletions

View File

@ -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(),

View File

@ -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)
}