Chrome export fixes: too-long names, redact group ids (#1402)
* On export, don't print out entire group id, just last three chars FREEBIE * Export: Limit conversation dirs to 30 characters of original name FREEBIE * Redact groups ids on import as well FREEBIE * InboxView: Protect against nonexistent loading screen FREEBIE
This commit is contained in:
parent
6190ad794a
commit
548586b934
2 changed files with 12 additions and 6 deletions
12
js/backup.js
12
js/backup.js
|
@ -403,16 +403,20 @@
|
|||
function getConversationDirName(conversation) {
|
||||
var name = conversation.active_at || 'never';
|
||||
if (conversation.type === 'private') {
|
||||
name += ' (' + (conversation.name || conversation.id) + ')';
|
||||
name += ' (' + (conversation.name || conversation.id).slice(0, 30) + ')';
|
||||
} else {
|
||||
name += ' (' + conversation.name + ')';
|
||||
name += ' (' + conversation.name.slice(0, 30) + ')';
|
||||
}
|
||||
return name;
|
||||
}
|
||||
|
||||
function getConversationLoggingName(conversation) {
|
||||
var name = conversation.active_at || 'never';
|
||||
name += ' (' + conversation.id + ')';
|
||||
if (conversation.type === 'private') {
|
||||
name += ' (' + conversation.id + ')';
|
||||
} else {
|
||||
name += ' ([REDACTED_GROUP]' + conversation.id.slice(-3) + ')';
|
||||
}
|
||||
return name;
|
||||
}
|
||||
|
||||
|
@ -539,7 +543,7 @@
|
|||
'Done importing',
|
||||
messages.length,
|
||||
'messages for conversation',
|
||||
conversationId
|
||||
'[REDACTED]' + conversationId.slice(-3)
|
||||
);
|
||||
resolve();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue