This simple bug makes nip04 remote decryption - i.e. DM-s completely unusable with nsec bunkers until fixed.
In the response parsing part of the decryption method, there is a redundant JSON.parse() call on the response.result object instead of resolving the Promise with 'response.result' as it is (as is the case in the encryption method).
This simple bug makes nip04 remote decryption - i.e. DM-s completely unusable with nsec bunkers until fixed.
In the response parsing part of the decryption method, there is a redundant JSON.parse() call on the response.result object instead of resolving the Promise with 'response.result' as it is (as is the case in the encryption method).
Made a PR for convenience