s/Membership/Member/

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2017-08-10 13:58:19 +01:00
parent ffdffb643d
commit 1603360c13
No known key found for this signature in database
GPG key ID: 0435A1D4BBD34D64

View file

@ -16,10 +16,10 @@
function memberEventDiff(ev) {
const diff = {
isMembershipEvent: ev.getType() === 'm.room.member' && ev.getStateKey() !== undefined,
isMemberEvent: ev.getType() === 'm.room.member' && ev.getStateKey() !== undefined,
};
if (!diff.isMembershipEvent) return diff;
if (!diff.isMemberEvent) return diff;
const content = ev.getContent();
const prevContent = ev.getPrevContent();
@ -39,7 +39,7 @@ export default function(ev, syncedSettings) {
const eventDiff = memberEventDiff(ev);
if (eventDiff.isMembershipEvent) {
if (eventDiff.isMemberEvent) {
if (syncedSettings['hideJoinLeaves'] && (eventDiff.isJoin || eventDiff.isPart)) return true;
const isMemberAvatarDisplaynameChange = eventDiff.isAvatarChange || eventDiff.isDisplaynameChange;
if (syncedSettings['hideAvatarDisplaynameChanges'] && isMemberAvatarDisplaynameChange) return true;