mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-02-25 05:53:09 -06:00
Warn people against requesting empty state keys by accident
This commit is contained in:
parent
839c993725
commit
cce5af46ba
|
|
@ -9,8 +9,14 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
// StateKeyTuple is a pair of an event type and state_key.
|
// StateKeyTuple is a pair of an event type and state_key.
|
||||||
|
// This is used when requesting parts of the state of a room.
|
||||||
type StateKeyTuple struct {
|
type StateKeyTuple struct {
|
||||||
EventType string
|
// The "type" key
|
||||||
|
EventType string
|
||||||
|
// The "state_key" of a matrix event.
|
||||||
|
// The empty string is a legitimate value for the "state_key" in matrix
|
||||||
|
// so take care to initialise this field lest you accidentally request a
|
||||||
|
// "state_key" with the go default of the empty string.
|
||||||
EventStateKey string
|
EventStateKey string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue