mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-28 17:23:09 -06:00
Add omitempty tags
This commit is contained in:
parent
e13a76cef8
commit
4ad4ed071a
|
|
@ -176,8 +176,8 @@ func (r *RoomserverInternalAPI) RemoveRoomAlias(
|
|||
}
|
||||
|
||||
type roomAliasesContent struct {
|
||||
Alias string `json:"alias"`
|
||||
Aliases []string `json:"alt_aliases"`
|
||||
Alias string `json:"alias,omitempty"`
|
||||
Aliases []string `json:"alt_aliases,omitempty"`
|
||||
}
|
||||
|
||||
// Build the updated m.room.aliases event to send to the room after addition or
|
||||
|
|
|
|||
Loading…
Reference in a new issue