-
Notifications
You must be signed in to change notification settings - Fork 90
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
chore(2631): Refactor storage service to separate channel and message logic #2713
chore(2631): Refactor storage service to separate channel and message logic #2713
Conversation
packages/backend/src/nest/connections-manager/connections-manager.service.ts
Outdated
Show resolved
Hide resolved
645ccb1
to
03cf584
Compare
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.
One nitpick of user facing behavior, but may be out of scope for this pr
try { | ||
return await this.getStore().add(encryptedMessage) | ||
} catch (e) { | ||
throw new CompoundError(`Could not append message (entry not allowed to write to the log)`, e) |
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.
This may be existing behavior, but when we hit this error, the message is still displayed in the timeline (grayed out as you might expect for an unsent message, but when you close and reopen the app, it is no longer grayed out which is misleading as to whether it was actually sent)
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.
Yea that's existing behavior we need to deal with. We can't know if a message has been sent or not right now, as far as I know.
… logic (#2713) * Create channels service and small fix for loading chain on app start * Separate logic further into channelstore and messagesservice * Add temp placeholders for encryption/decryption * Minor clean up * Expand messages service, tweak getting messages, fix/add tests * Fix subscribing not getting old messages on join * Fix peer list not updating * Add compounderror * Update auth * Update CHANGELOG.md
… logic (#2713) * Create channels service and small fix for loading chain on app start * Separate logic further into channelstore and messagesservice * Add temp placeholders for encryption/decryption * Minor clean up * Expand messages service, tweak getting messages, fix/add tests * Fix subscribing not getting old messages on join * Fix peer list not updating * Add compounderror * Update auth * Update CHANGELOG.md
Pull Request Checklist
(Optional) Mobile checklist
Please ensure you completed the following checks if you did any changes to the mobile package: