Remove dead & duplicated code (#11405)
* Remove dead code * Make dead code happier * DRY pickle additional data calculation * Iterate
This commit is contained in:
parent
672ad98ec7
commit
27d79458da
25 changed files with 50 additions and 201 deletions
|
@ -679,7 +679,7 @@ function canSendEvent(event: MessageEvent<any>, roomId: string): void {
|
|||
}
|
||||
const me = client.credentials.userId!;
|
||||
|
||||
let canSend = false;
|
||||
let canSend: boolean;
|
||||
if (isState) {
|
||||
canSend = room.currentState.maySendStateEvent(evType, me);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue