mirror of https://github.com/matrix-org/gomatrix
Merge branch 'Adding_Tags_feature' of https://github.com/SUMUKHA-PK/gomatrix into Adding_Tags_feature
This commit is contained in:
commit
4e14b28365
5
tags.go
5
tags.go
|
@ -14,12 +14,13 @@
|
|||
|
||||
package gomatrix
|
||||
|
||||
// Tag contains the data for a Tag which can be referenced by the Tag name
|
||||
// Tag contains the data for an m.tag message type
|
||||
// https://matrix.org/docs/spec/client_server/r0.4.0.html#m-tag
|
||||
type Tag struct {
|
||||
Tags map[string]TagProperties `json:"tags"`
|
||||
}
|
||||
|
||||
// TagProperties contains the properties of an MTag
|
||||
// TagProperties contains the properties of a Tag
|
||||
type TagProperties struct {
|
||||
Order float32 `json:"order,omitempty"` // Empty values must be neglected
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue