mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 05:55:00 +08:00
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
@ -16,6 +16,7 @@
|
||||
|
||||
function memberEventDiff(ev) {
|
||||
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,
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user