mirror of
https://github.com/hoernschen/dendrite.git
synced 2025-08-02 22:22:46 +00:00
Linting
This commit is contained in:
parent
bb3400365b
commit
493e2ca389
2 changed files with 10 additions and 8 deletions
|
@ -502,10 +502,8 @@ func joinEventsFromHistoryVisibility(
|
|||
return nil, fmt.Errorf("failed to load history visibility event nid %d", historyVisibilityNID)
|
||||
}
|
||||
var hisVisEvent *gomatrixserverlib.Event
|
||||
for i := range stateEvents {
|
||||
if stateEvents[i].Type() == gomatrixserverlib.MRoomHistoryVisibility && stateEvents[i].StateKeyEquals("") {
|
||||
hisVisEvent = &stateEvents[i].Event
|
||||
}
|
||||
if stateEvents[0].Type() == gomatrixserverlib.MRoomHistoryVisibility && stateEvents[0].StateKeyEquals("") {
|
||||
hisVisEvent = &stateEvents[0].Event
|
||||
}
|
||||
visibility, err := auth.HistoryVisibilityForRoom(hisVisEvent)
|
||||
if err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue