SettingsView: Remove unused localization strings
This commit is contained in:
parent
104b694186
commit
785e31b154
3 changed files with 8 additions and 24 deletions
|
@ -155,14 +155,7 @@
|
||||||
// We only care about the most recent update for each session
|
// We only care about the most recent update for each session
|
||||||
const byId = _.groupBy(items, item => item.id);
|
const byId = _.groupBy(items, item => item.id);
|
||||||
const ids = Object.keys(byId);
|
const ids = Object.keys(byId);
|
||||||
const mostRecent = ids.map(id => {
|
const mostRecent = ids.map(id => _.last(byId[id]));
|
||||||
const item = _.last(byId[id]);
|
|
||||||
|
|
||||||
return {
|
|
||||||
...item,
|
|
||||||
record: item.record.serialize(),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
await window.Signal.Data.createOrUpdateSessions(mostRecent);
|
await window.Signal.Data.createOrUpdateSessions(mostRecent);
|
||||||
},
|
},
|
||||||
|
@ -206,14 +199,7 @@
|
||||||
_hydrateCache(
|
_hydrateCache(
|
||||||
this,
|
this,
|
||||||
'sessions',
|
'sessions',
|
||||||
(async () => {
|
await window.Signal.Data.getAllSessions(),
|
||||||
const sessions = await window.Signal.Data.getAllSessions();
|
|
||||||
|
|
||||||
return sessions.map(item => ({
|
|
||||||
...item,
|
|
||||||
record: libsignal.SessionRecord.deserialize(item.record),
|
|
||||||
}));
|
|
||||||
})(),
|
|
||||||
'id'
|
'id'
|
||||||
),
|
),
|
||||||
_hydrateCache(
|
_hydrateCache(
|
||||||
|
@ -343,7 +329,7 @@
|
||||||
|
|
||||||
const session = this.sessions[encodedNumber];
|
const session = this.sessions[encodedNumber];
|
||||||
if (session) {
|
if (session) {
|
||||||
return session.record;
|
return libsignal.SessionRecord.deserialize(session.record);
|
||||||
}
|
}
|
||||||
|
|
||||||
return undefined;
|
return undefined;
|
||||||
|
@ -360,7 +346,7 @@
|
||||||
id: encodedNumber,
|
id: encodedNumber,
|
||||||
number,
|
number,
|
||||||
deviceId,
|
deviceId,
|
||||||
record,
|
record: record.serialize(),
|
||||||
};
|
};
|
||||||
|
|
||||||
this.sessions[encodedNumber] = data;
|
this.sessions[encodedNumber] = data;
|
||||||
|
|
|
@ -157,8 +157,6 @@
|
||||||
mediaPermissionsDescription: i18n('mediaPermissionsDescription'),
|
mediaPermissionsDescription: i18n('mediaPermissionsDescription'),
|
||||||
generalHeader: i18n('general'),
|
generalHeader: i18n('general'),
|
||||||
spellCheckDescription: i18n('spellCheckDescription'),
|
spellCheckDescription: i18n('spellCheckDescription'),
|
||||||
sendLinkPreviews: i18n('sendLinkPreviews'),
|
|
||||||
linkPreviewsDescription: i18n('linkPreviewsDescription'),
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onClose() {
|
onClose() {
|
||||||
|
|
|
@ -946,7 +946,7 @@
|
||||||
"rule": "jQuery-$(",
|
"rule": "jQuery-$(",
|
||||||
"path": "js/views/settings_view.js",
|
"path": "js/views/settings_view.js",
|
||||||
"line": " this.$('.sync').text(i18n('syncNow'));",
|
"line": " this.$('.sync').text(i18n('syncNow'));",
|
||||||
"lineNumber": 183,
|
"lineNumber": 181,
|
||||||
"reasonCategory": "usageTrusted",
|
"reasonCategory": "usageTrusted",
|
||||||
"updated": "2018-09-19T21:59:32.770Z",
|
"updated": "2018-09-19T21:59:32.770Z",
|
||||||
"reasonDetail": "Protected from arbitrary input"
|
"reasonDetail": "Protected from arbitrary input"
|
||||||
|
@ -955,7 +955,7 @@
|
||||||
"rule": "jQuery-$(",
|
"rule": "jQuery-$(",
|
||||||
"path": "js/views/settings_view.js",
|
"path": "js/views/settings_view.js",
|
||||||
"line": " this.$('.sync').attr('disabled', 'disabled');",
|
"line": " this.$('.sync').attr('disabled', 'disabled');",
|
||||||
"lineNumber": 187,
|
"lineNumber": 185,
|
||||||
"reasonCategory": "usageTrusted",
|
"reasonCategory": "usageTrusted",
|
||||||
"updated": "2018-09-19T21:59:32.770Z",
|
"updated": "2018-09-19T21:59:32.770Z",
|
||||||
"reasonDetail": "Protected from arbitrary input"
|
"reasonDetail": "Protected from arbitrary input"
|
||||||
|
@ -964,7 +964,7 @@
|
||||||
"rule": "jQuery-$(",
|
"rule": "jQuery-$(",
|
||||||
"path": "js/views/settings_view.js",
|
"path": "js/views/settings_view.js",
|
||||||
"line": " this.$('.synced_at').hide();",
|
"line": " this.$('.synced_at').hide();",
|
||||||
"lineNumber": 199,
|
"lineNumber": 197,
|
||||||
"reasonCategory": "usageTrusted",
|
"reasonCategory": "usageTrusted",
|
||||||
"updated": "2018-09-19T21:59:32.770Z",
|
"updated": "2018-09-19T21:59:32.770Z",
|
||||||
"reasonDetail": "Protected from arbitrary input"
|
"reasonDetail": "Protected from arbitrary input"
|
||||||
|
@ -973,7 +973,7 @@
|
||||||
"rule": "jQuery-$(",
|
"rule": "jQuery-$(",
|
||||||
"path": "js/views/settings_view.js",
|
"path": "js/views/settings_view.js",
|
||||||
"line": " this.$('.sync_failed').hide();",
|
"line": " this.$('.sync_failed').hide();",
|
||||||
"lineNumber": 204,
|
"lineNumber": 202,
|
||||||
"reasonCategory": "usageTrusted",
|
"reasonCategory": "usageTrusted",
|
||||||
"updated": "2018-09-19T21:59:32.770Z",
|
"updated": "2018-09-19T21:59:32.770Z",
|
||||||
"reasonDetail": "Protected from arbitrary input"
|
"reasonDetail": "Protected from arbitrary input"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue