mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 19:56:47 +03:00
s/Membership/Member/
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
ffdffb643d
commit
1603360c13
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue