diff options
author | Tulir Asokan <tulir@maunium.net> | 2018-03-22 23:47:59 +0200 |
---|---|---|
committer | Tulir Asokan <tulir@maunium.net> | 2018-03-22 23:52:55 +0200 |
commit | a5e7800ab6e0e3ebf38b1a0e809d64afba649024 (patch) | |
tree | 0ce8119337db089c866a77011d8ca68ca762ce30 /ui/widget | |
parent | 373b25c01cc94afff3abb0fe98af31aa52a40568 (diff) |
Fix bugs and compile errors
Diffstat (limited to 'ui/widget')
-rw-r--r-- | ui/widget/message-view.go | 1 | ||||
-rw-r--r-- | ui/widget/room-view.go | 5 |
2 files changed, 1 insertions, 5 deletions
diff --git a/ui/widget/message-view.go b/ui/widget/message-view.go index 444aa03..dc0cde5 100644 --- a/ui/widget/message-view.go +++ b/ui/widget/message-view.go @@ -152,7 +152,6 @@ func (view *MessageView) AddMessage(message *types.Message, direction MessageDir if msg != nil && messageExists { message.CopyTo(msg) message = msg - message.SetIsSending(false) direction = IgnoreMessage } diff --git a/ui/widget/room-view.go b/ui/widget/room-view.go index 83073c2..69216fb 100644 --- a/ui/widget/room-view.go +++ b/ui/widget/room-view.go @@ -253,10 +253,7 @@ func (view *RoomView) NewTempMessage(msgtype, text string) *types.Message { id := strconv.FormatInt(now.UnixNano(), 10) sender := view.Room.GetSessionOwner().DisplayName message := view.NewMessage(id, sender, msgtype, text, now) - message.SetIsSending(true) - message.TimestampColor = tcell.ColorGray - message.TextColor = tcell.ColorGray - message.SenderColor = tcell.ColorGray + message.State = types.MessageStateSending view.AddMessage(message, AppendMessage) return message } |