From b22127f10ca10ab2e8ef92053694f76607757e33 Mon Sep 17 00:00:00 2001 From: ansuz Date: Thu, 20 Jul 2017 15:55:04 +0200 Subject: [PATCH 1/2] add history removal --- customize.dist/translations/messages.js | 3 +++ www/common/common-messaging.js | 23 +++++++++++++---------- www/common/pinpad.js | 6 +++++- www/contacts/main.less | 15 ++++++++++++++- 4 files changed, 35 insertions(+), 12 deletions(-) diff --git a/customize.dist/translations/messages.js b/customize.dist/translations/messages.js index f5ad75bf6..5c0b4c25f 100644 --- a/customize.dist/translations/messages.js +++ b/customize.dist/translations/messages.js @@ -282,6 +282,9 @@ define(function () { out.contacts_info3 = "Double-click their icon to view their profile"; out.contacts_info4 = "Either participant can clear permanently a chat history"; + out.contacts_confirmRemoveHistory = 'Are you sure you want to permanently remove your chat history? Data cannot be restored'; + out.contacts_removeHistoryServerError = 'There was an error while removing your chat history. Try again later'; + // File manager out.fm_rootName = "Documents"; diff --git a/www/common/common-messaging.js b/www/common/common-messaging.js index 976ed706b..4c426cffe 100644 --- a/www/common/common-messaging.js +++ b/www/common/common-messaging.js @@ -284,24 +284,27 @@ define([ var data = getFriend(common, curvePublic); var proxy = common.getProxy(); - var $header = $('
', {'class': 'header avatar'}).appendTo($container); -/* + var $header = $('
', { + 'class': 'cp-contact-top-bar header', + }).appendTo($container); + + var $avatar = $('
', {'class': 'avatar'}).appendTo($header); + var $removeHistory = $('