refactor(messageslist): write the pinned notice in one call
This commit is contained in:
parent
4d4b6289ee
commit
91c0ee1a97
1 changed files with 1 additions and 2 deletions
|
|
@ -814,8 +814,7 @@ func (ml *Model) drawReplyMessage(builder *richtext.Builder, message discord.Mes
|
|||
}
|
||||
|
||||
func (ml *Model) drawPinnedMessage(builder *richtext.Builder, message discord.Message, baseStyle tcell.Style) {
|
||||
builder.Write(message.Author.DisplayOrUsername(), baseStyle)
|
||||
builder.Write(" pinned a message.", baseStyle)
|
||||
builder.Write(message.Author.DisplayOrUsername()+" pinned a message.", baseStyle)
|
||||
}
|
||||
|
||||
func (ml *Model) selectedMessage() (*discord.Message, bool) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue