diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..168b657 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.tmp* \ No newline at end of file diff --git a/index.html b/index.html index 0e37152..40423af 100644 --- a/index.html +++ b/index.html @@ -5,6 +5,79 @@
Select backup file with extension '.json'. Which was downloaded when backup was performed.
@@ -1055,7 +1128,7 @@ getRef('add_as_contact_option').classList.remove('hide-completely') } - const markUnread = floGlobals.marked[clickedContact.floID]?.includes('unread') + const markUnread = messenger.marked[clickedContact.floID]?.includes('unread') if (markUnread) { getRef('mark_read_option').classList.remove('hide-completely') getRef('mark_unread_option').classList.add('hide-completely') @@ -1074,7 +1147,7 @@ getRef("contact_initial").innerHTML = ` ` - if (floGlobals.groups[clickedContact['floID']].admin === myFloID) + if (messenger.groups[clickedContact['floID']].admin === myFloID) getRef('contact_name').disabled = false else getRef('contact_name').disabled = true @@ -1092,7 +1165,7 @@ case 'contacts_popup': const contacts = [] for (contact in floGlobals.contacts) { - if (!floGlobals.groups[activeChat.floID].members.includes(contact) && contact in floGlobals.pubKeys) { + if (!messenger.groups[activeChat.floID].members.includes(contact) && contact in floGlobals.pubKeys) { contacts.push(contact) } } @@ -1294,8 +1367,8 @@ let name if (floGlobals.contacts[floID]) name = floGlobals.contacts[floID] - else if (floGlobals.groups[floID]) - name = floGlobals.groups[floID].name + else if (messenger.groups[floID]) + name = messenger.groups[floID].name else if (floID === myFloID) name = 'You' else @@ -1499,105 +1572,9 @@ }; }; - - - - - - - - - - -