fixed mail bugs where one couldn't add contact
This commit is contained in:
parent
720efe4fca
commit
54a35a452a
2 changed files with 2 additions and 9 deletions
|
@ -51,14 +51,6 @@ friendPicker.onchange = function(){
|
|||
}
|
||||
|
||||
sendForm.onsubmit = function(){
|
||||
if (friendPicker.value.trim().length !== 0 && to.value.trim().length !== 0){
|
||||
if (friendPicker.value !== to.value){
|
||||
PNotify.error({
|
||||
text: 'You have selected both a friend and entered a public key manually.'
|
||||
})
|
||||
return false
|
||||
}
|
||||
}
|
||||
if (! to.value.includes("-") && to.value.length !== 56 && to.value.length !== 52){
|
||||
PNotify.error({
|
||||
text: 'User ID is not valid'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue