Missing return

pull/21833/head
Kegan Dougal 2016-08-24 14:10:21 +01:00
parent 82a822820f
commit 6235d88b55
1 changed files with 1 additions and 0 deletions

View File

@ -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());
}