mirror of
https://github.com/vector-im/element-web.git
synced 2025-10-11 15:31:22 +02:00
Missing return
This commit is contained in:
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…
x
Reference in New Issue
Block a user