Fix notifications about own messages

This commit is contained in:
Tulir Asokan
2018-05-16 21:42:07 +03:00
parent a8a4c72d14
commit 512ca88804
4 changed files with 11 additions and 3 deletions

View File

@ -30,7 +30,6 @@ type UIMessage interface {
Buffer() []tstring.TString
Height() int
SenderID() string
RealSender() string
RegisterMatrix(matrix ifc.MatrixContainer)
}

View File

@ -34,6 +34,10 @@ func (meta *BasicMeta) Sender() string {
return meta.BSender
}
func (meta *BasicMeta) SenderID() string {
return meta.BSender
}
// SenderColor returns the color the name of the sender should be shown in.
func (meta *BasicMeta) SenderColor() tcell.Color {
return meta.BSenderColor