Browse Source

Apply more fields to message in message update

In case update was handled before create
jonas747 8 years ago
parent
commit
f01c5a3344
1 changed files with 6 additions and 0 deletions
  1. 6 0
      state.go

+ 6 - 0
state.go

@@ -511,6 +511,12 @@ func (s *State) MessageAdd(message *Message) error {
 			if message.Attachments != nil {
 				m.Attachments = message.Attachments
 			}
+			if message.Timestamp != "" {
+				m.Timestamp = message.Timestamp
+			}
+			if message.Author != nil {
+				m.Author = message.Author
+			}
 
 			return nil
 		}