mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-06 22:43:10 -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.
|
||||
// This is used when requesting parts of the state of a room.
|
||||
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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue