aboutsummaryrefslogtreecommitdiff
path: root/ui/messages/html/text.go
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2020-02-19 21:54:53 +0200
committerTulir Asokan <tulir@maunium.net>2020-02-19 21:54:53 +0200
commit15e1d3f87c5e18f3429c49d21b30e66fb2a9cff7 (patch)
tree44146fe934a20cd688e83d5d059bd074b2ff633f /ui/messages/html/text.go
parentaf99c76d460f190e873ed88432c9a8b08324200b (diff)
Fix rendering formatted m.emotes
Diffstat (limited to 'ui/messages/html/text.go')
-rw-r--r--ui/messages/html/text.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/ui/messages/html/text.go b/ui/messages/html/text.go
index ea8f737..9501cab 100644
--- a/ui/messages/html/text.go
+++ b/ui/messages/html/text.go
@@ -44,6 +44,11 @@ func NewTextEntity(text string) *TextEntity {
}
}
+func (te *TextEntity) AdjustStyle(fn AdjustStyleFunc) Entity {
+ te.BaseEntity = te.BaseEntity.AdjustStyle(fn).(*BaseEntity)
+ return te
+}
+
func (te *TextEntity) Clone() Entity {
return &TextEntity{
BaseEntity: te.BaseEntity.Clone().(*BaseEntity),