Bug fixes

This commit is contained in:
sairaj mote 2023-03-20 23:42:51 +05:30
parent a0bc71695d
commit d01c045d72

View File

@ -3065,7 +3065,18 @@
}
// remove encryption badge if it exists
if (!groupID && hasPubKey(activeChat.address) && floID !== floDapps.user.id) {
document.getElementById('warn_no_encryption')?.remove()
console.log('removing encryption badge')
if (document.getElementById('warn_no_encryption')) {
document.getElementById('warn_no_encryption').after(
html.node`
<strong class="event-card flex align-center">
<svg class="icon margin-right-0-5" xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><g fill="none"><path d="M0 0h24v24H0V0z"/><path d="M0 0h24v24H0V0z" opacity=".87"/></g><path d="M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zM9 6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9V6zm9 14H6V10h12v10zm-6-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2z"/></svg>
Conversation is encrypted
</strong>
`
)
document.getElementById('warn_no_encryption').remove()
}
}
}
let chatCard = getChatCard(chatAddress)
@ -3358,7 +3369,7 @@
floBlockchainAPI.getBalance(floGlobals.myFloID).then(balance => {
let warning = `Creation of multisig address consumes FLO, you have ${balance} FLO.`;
getRef('multisig_creation__warning').classList.add('info--warning')
if (balance < 0.2) {
if (balance < 0.01) {
warning = `Creation of multisig address consumes FLO, you don't have enough FLO`;
getRef('multisig_creation__warning').classList.remove('info--warning')
getRef('multisig_creation__warning').classList.add('info--error')