mirror of
https://github.com/element-hq/dendrite.git
synced 2025-09-16 14:12:24 +03:00
Update gomatrixserverlib
This commit is contained in:
parent
3b9222e8f7
commit
e6835660b0
9 changed files with 320 additions and 31 deletions
|
@ -247,7 +247,7 @@ type AuthEvents struct {
|
|||
// the event is replaced with the new event. Only returns an error if the event is not a state event.
|
||||
func (a *AuthEvents) AddEvent(event *Event) error {
|
||||
if event.StateKey() == nil {
|
||||
return fmt.Errorf("AddEvent: event %s does not have a state key", event.Type())
|
||||
return fmt.Errorf("AddEvent: event %q does not have a state key", event.Type())
|
||||
}
|
||||
a.events[StateKeyTuple{event.Type(), *event.StateKey()}] = event
|
||||
return nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue