1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-19 20:23:18 +03:00

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

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