diff options
Diffstat (limited to 'ui/messages/meta.go')
-rw-r--r-- | ui/messages/meta.go | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/ui/messages/meta.go b/ui/messages/meta.go index 7e2f29f..3a1dd19 100644 --- a/ui/messages/meta.go +++ b/ui/messages/meta.go @@ -20,13 +20,12 @@ import ( "time" "maunium.net/go/tcell" - "maunium.net/go/gomuks/interface" ) // BasicMeta is a simple variable store implementation of MessageMeta. type BasicMeta struct { - BSender string - BTimestamp time.Time + BSender string + BTimestamp time.Time BSenderColor, BTextColor, BTimestampColor tcell.Color } @@ -66,12 +65,3 @@ func (meta *BasicMeta) TextColor() tcell.Color { func (meta *BasicMeta) TimestampColor() tcell.Color { return meta.BTimestampColor } - -// CopyFrom replaces the content of this meta object with the content of the given object. -func (meta *BasicMeta) CopyFrom(from ifc.MessageMeta) { - meta.BSender = from.Sender() - meta.BTimestamp = from.Timestamp() - meta.BSenderColor = from.SenderColor() - meta.BTextColor = from.TextColor() - meta.BTimestampColor = from.TimestampColor() -} |