aboutsummaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2020-06-23 21:43:25 +0300
committerTulir Asokan <tulir@maunium.net>2020-06-23 21:43:25 +0300
commit376a2e5d84fb873fde40339feb4c1a9da150d5ff (patch)
treeeb21d388e9d6a484937c97be7bb2baa7d96a9089 /ui
parent7416a9817504d68550c72c285b1ff20ab7706ee4 (diff)
Update mautrix-go
Diffstat (limited to 'ui')
-rw-r--r--ui/messages/parser.go6
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])