add comment about why state key must be not undefined
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
a6064c53d3
commit
625ca96d86
1 changed files with 1 additions and 0 deletions
|
@ -16,6 +16,7 @@
|
||||||
|
|
||||||
function memberEventDiff(ev) {
|
function memberEventDiff(ev) {
|
||||||
const diff = {
|
const diff = {
|
||||||
|
// a Member Event is a State Event and so its State Key must not be undefined.
|
||||||
isMemberEvent: ev.getType() === 'm.room.member' && ev.getStateKey() !== undefined,
|
isMemberEvent: ev.getType() === 'm.room.member' && ev.getStateKey() !== undefined,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue