Make SonarCloud happier (#9545)
* Make SonarCloud happier * i18n * Iterate * Update AddExistingToSpaceDialog.tsx * Update SlashCommands.tsx
This commit is contained in:
parent
77764d80bc
commit
3747464b41
33 changed files with 131 additions and 162 deletions
|
@ -215,12 +215,12 @@ export default class EventListSummary extends React.Component<IProps> {
|
|||
repeats: number;
|
||||
}[] = [];
|
||||
|
||||
for (let i = 0; i < transitions.length; i++) {
|
||||
if (res.length > 0 && res[res.length - 1].transitionType === transitions[i]) {
|
||||
for (const transition of transitions) {
|
||||
if (res.length > 0 && res[res.length - 1].transitionType === transition) {
|
||||
res[res.length - 1].repeats += 1;
|
||||
} else {
|
||||
res.push({
|
||||
transitionType: transitions[i],
|
||||
transitionType: transition,
|
||||
repeats: 1,
|
||||
});
|
||||
}
|
||||
|
@ -399,7 +399,6 @@ export default class EventListSummary extends React.Component<IProps> {
|
|||
} else if (e.mxEvent.getContent().avatar_url !== e.mxEvent.getPrevContent().avatar_url) {
|
||||
return TransitionType.ChangedAvatar;
|
||||
}
|
||||
// console.log("MELS ignoring duplicate membership join event");
|
||||
return TransitionType.NoChange;
|
||||
} else {
|
||||
return TransitionType.Joined;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue