Missing return
This commit is contained in:
parent
82a822820f
commit
6235d88b55
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue