Fix vet issues
This commit is contained in:
@@ -18,7 +18,7 @@ type (
|
||||
Role struct {
|
||||
Name string `json:"rolename"`
|
||||
Users []string `json:"users"`
|
||||
Permissions []string `json:"users"`
|
||||
Permissions []string `json:"permissions"`
|
||||
}
|
||||
|
||||
// @todo: read resource information
|
||||
|
||||
@@ -36,7 +36,7 @@ func (s *Session) messageUpdate(ctx context.Context, payload *incoming.Payload)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return s.sendMessageChannel(uint64toa(msg.ChannelID), &outgoing.MessageUpdate{request.ID, msg.Message})
|
||||
return s.sendMessageChannel(uint64toa(msg.ChannelID), &outgoing.MessageUpdate{ID: request.ID, Message: msg.Message})
|
||||
}
|
||||
|
||||
func (s *Session) messageDelete(ctx context.Context, payload *incoming.Payload) error {
|
||||
@@ -49,5 +49,5 @@ func (s *Session) messageDelete(ctx context.Context, payload *incoming.Payload)
|
||||
return err
|
||||
}
|
||||
|
||||
return s.sendMessageChannel(request.ChannelID, &outgoing.MessageDelete{request.ID})
|
||||
return s.sendMessageChannel(request.ChannelID, &outgoing.MessageDelete{ID: request.ID})
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@ package outgoing
|
||||
type (
|
||||
Message struct {
|
||||
ID string `json:"id"`
|
||||
ChannelID string `json:"cid""`
|
||||
ChannelID string `json:"cid"`
|
||||
Message string `json:"m"`
|
||||
Type string `json:"t"`
|
||||
ReplyTo string `json:"rid"`
|
||||
|
||||
Reference in New Issue
Block a user