3
0

upd(internal): encode ChannelID as string

This commit is contained in:
Tit Petric
2019-04-26 18:37:56 +02:00
parent dc2dd4c787
commit 2952cebb62
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ func Message(ctx context.Context, msg *messagingTypes.Message) *outgoing.Message
return &outgoing.Message{
ID: msg.ID,
Type: string(msg.Type),
ChannelID: Uint64toa(msg.ChannelID),
ChannelID: msg.ChannelID,
Message: msg.Message,
UserID: msg.UserID,
+1 -1
View File
@@ -10,7 +10,7 @@ type (
ID uint64 `json:"messageID,string"`
Type string `json:"type"`
Message string `json:"message"`
ChannelID string `json:"channelID"`
ChannelID uint64 `json:"channelID,string"`
UserID uint64 `json:"userID,string"`
ReplyTo uint64 `json:"replyTo,omitempty,string"`