-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(send): add support for hex messages to send burst form #698
feat(send): add support for hex messages to send burst form #698
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #698 +/- ##
========================================
Coverage 93.97% 93.97%
========================================
Files 115 115
Lines 1675 1675
Branches 156 156
========================================
Hits 1574 1574
Misses 101 101 Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You may shorten the assignment I commented. So, if it is not text we assume hexcode? In terms of usability could be confusing. And if it is other kind of non-textual data? The convertHex function might fail?
import {ApiService} from '../../api.service'; | ||
import {AccountService} from 'app/setup/account/account.service'; | ||
import {convertAddressToNumericId} from '@burstjs/util/out'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch
attachment = new AttachmentEncryptedMessage(encryptedMessage); | ||
} else if (message) { | ||
attachment = new AttachmentMessage({message, messageIsText: true}); | ||
attachment = new AttachmentMessage({message, messageIsText: messageIsText}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to assign messageIsText...can be shortened
Adds a checkbox under
advanced
for 'Message is Text?'. When checked (default checked), the message is treated as text. When unchecked, the message is parsed as hex.Closes #696. @jjos2372 💋