add comment about why state key must be not undefined

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2017-08-10 14:01:24 +01:00
parent a6064c53d3
commit 625ca96d86
No known key found for this signature in database
GPG key ID: 0435A1D4BBD34D64

View file

@ -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,
};