Add omitempty tags

This commit is contained in:
Neil Alexander 2021-07-21 13:46:20 +01:00
parent e13a76cef8
commit 4ad4ed071a
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -176,8 +176,8 @@ func (r *RoomserverInternalAPI) RemoveRoomAlias(
} }
type roomAliasesContent struct { type roomAliasesContent struct {
Alias string `json:"alias"` Alias string `json:"alias,omitempty"`
Aliases []string `json:"alt_aliases"` Aliases []string `json:"alt_aliases,omitempty"`
} }
// Build the updated m.room.aliases event to send to the room after addition or // Build the updated m.room.aliases event to send to the room after addition or