Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/models/BanList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,10 @@ class BanList extends EventEmitter {
// The reason we set the state at this point is because it is valid to want to set the state to an invalid rule
// in order to mark a rule as deleted.
// We always set state with the normalised state type via `kind` to de-duplicate rules.
if (!("unsigned" in event)) {
// We'll store stuff in `unsigned`, so let's make sure it exists!
event.unsigned = {};
}
this.setState(kind, event['state_key'], event);
const changeType: null|ChangeType = (() => {
if (!previousState) {
Expand Down