1
0
Fork 0
mirror of https://github.com/matrix-org/gomatrix synced 2025-05-15 20:13:22 +00:00

Changes to tags.go

This commit is contained in:
SUMUKHA-PK 2019-07-19 21:27:06 +05:30
parent c58e5d92a5
commit 2fe6744f03

11
tags.go
View file

@ -17,10 +17,19 @@ package gomatrix
// TagContent contains the data for an m.tag message type
// https://matrix.org/docs/spec/client_server/r0.4.0.html#m-tag
type TagContent struct {
Tags map[string]TagProperties `json:"tags"`
Tags map[string]TagProperties `json:"tags,omitemmpty"`
}
// TagProperties contains the properties of a Tag
type TagProperties struct {
Order float32 `json:"order,omitempty"` // Empty values must be neglected
}
// TagData contains the entire data returned by the server
type TagData struct {
Content TagContent
EventID string
OriginServerTs int
Sender string
Type string
}