Fix typo in plugin package (#13043)

Automatic Merge
This commit is contained in:
kanozec
2019-11-15 20:13:38 +08:00
committed by mattermod
parent 6b0a88debf
commit 1e2609651b

View File

@@ -525,7 +525,7 @@ func (s *hooksRPCServer) FileWillBeUploaded(args *Z_FileWillBeUploadedArgs, retu
return nil
}
// MessageWillBePosted is in this file because of the difficulty of identifiying which fields need special behaviour.
// MessageWillBePosted is in this file because of the difficulty of identifying which fields need special behaviour.
// The special behaviour needed is decoding the returned post into the original one to avoid the unintentional removal
// of fields by older plugins.
func init() {
@@ -565,8 +565,8 @@ func (s *hooksRPCServer) MessageWillBePosted(args *Z_MessageWillBePostedArgs, re
return nil
}
// MessageWillBeUpdated is in this file because of the difficulty of identifiying which fields need special behaviour.
// The special behavour needed is decoding the returned post into the original one to avoid the unintentional removal
// MessageWillBeUpdated is in this file because of the difficulty of identifying which fields need special behaviour.
// The special behaviour needed is decoding the returned post into the original one to avoid the unintentional removal
// of fields by older plugins.
func init() {
hookNameToId["MessageWillBeUpdated"] = MessageWillBeUpdatedId