Missing return
parent
82a822820f
commit
6235d88b55
|
@ -213,6 +213,7 @@ function returnStateEvent(event, roomId, eventType, stateKey) {
|
|||
const stateEvent = room.currentState.getStateEvents(eventType, stateKey);
|
||||
if (!stateEvent) {
|
||||
sendResponse(event, null);
|
||||
return;
|
||||
}
|
||||
sendResponse(event, stateEvent.getContent());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue