diff options
author | Tulir Asokan <tulir@maunium.net> | 2020-06-23 21:43:25 +0300 |
---|---|---|
committer | Tulir Asokan <tulir@maunium.net> | 2020-06-23 21:43:25 +0300 |
commit | 376a2e5d84fb873fde40339feb4c1a9da150d5ff (patch) | |
tree | eb21d388e9d6a484937c97be7bb2baa7d96a9089 /ui | |
parent | 7416a9817504d68550c72c285b1ff20ab7706ee4 (diff) |
Update mautrix-go
Diffstat (limited to 'ui')
-rw-r--r-- | ui/messages/parser.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/messages/parser.go b/ui/messages/parser.go index 0f92f11..80bfa40 100644 --- a/ui/messages/parser.go +++ b/ui/messages/parser.go @@ -93,7 +93,7 @@ func directParseEvent(matrix ifc.MatrixContainer, room *rooms.Room, evt *muksevt } } -func findAltAliasDifference(newList, oldList []string) (addedStr, removedStr tstring.TString) { +func findAltAliasDifference(newList, oldList []id.RoomAlias) (addedStr, removedStr tstring.TString) { var addedList, removedList []tstring.TString OldLoop: for _, oldAlias := range oldList { @@ -102,7 +102,7 @@ OldLoop: continue OldLoop } } - removedList = append(removedList, tstring.NewStyleTString(oldAlias, tcell.StyleDefault.Foreground(widget.GetHashColor(oldAlias)).Underline(true))) + removedList = append(removedList, tstring.NewStyleTString(string(oldAlias), tcell.StyleDefault.Foreground(widget.GetHashColor(oldAlias)).Underline(true))) } NewLoop: for _, newAlias := range newList { @@ -111,7 +111,7 @@ NewLoop: continue NewLoop } } - addedList = append(addedList, tstring.NewStyleTString(newAlias, tcell.StyleDefault.Foreground(widget.GetHashColor(newAlias)).Underline(true))) + addedList = append(addedList, tstring.NewStyleTString(string(newAlias), tcell.StyleDefault.Foreground(widget.GetHashColor(newAlias)).Underline(true))) } if len(addedList) == 1 { addedStr = tstring.NewColorTString("added alternative address ", tcell.ColorGreen).AppendTString(addedList[0]) |