In D7118#212107, @ashoat wrote:We should not be polluting the global namespace in D7101. You should not be able to use QueryExecResult without importing it unless it's in the Flow lib.
- Feed Queries
- All Stories
- Search
- Feed Search
- Transactions
- Transaction Logs
Feed All Stories
All Stories
All Stories
Mar 23 2023
Mar 23 2023
add import
The problem is that we would need to validate each query result manually, going through each column one-by-one and checking the result type. This isn’t something we do today for MySQL queries typically. If we feel strongly about doing input validation for SQL query results we could do with tcomb, but I’m not sure that the effort is worth it.
rebase
address code review
Restricted Repository Identity closed D7095: [desktop] Stop checking for a new version after download.
Michal Gniadek <michal.gniadek@swmansion.com> committed rCOMM9acddb4cd20d: [desktop] Stop checking for a new version after download.
Restricted Repository Identity closed D7094: [keyserver] Send updateBadgeCount notifs to macOS.
Michal Gniadek <michal.gniadek@swmansion.com> committed rCOMM725b8786a3f1: [keyserver] Send updateBadgeCount notifs to macOS.
tomek added a comment to D6924: [keyserver] Introduce columns in messages table to support pinned messages.
In D6924#211911, @rohan wrote:In D6924#211756, @tomek wrote:It seems like I wasn't clear enough in my comment, so let me explain it differently. Correct me in any place where I'm wrong. So on the client side we would want to display three things:
- A robotext message in a thread telling that a message was pinned
- A pin indicator next to a message
- A list of pinned messages
As far as I understand, what you're describing handles only the 1st point. How do we plan to handle 2nd and 3rd?
Ah I understand now, sorry. Yeah you're right, those are the three things we want to display client side.
- Robotext: Will be handled by introducing a new message type and spec
- Pin indicator: I think this is the one I'm a little unsure on since I've not begun working on the client-side yet so I wasn't sure on the best way to handle this. I'm not sure if updating RawMessageInfo to support something like RawPinnedMessageInfo and MessageInfo to support PinnedMessageInfo is the best way
- A list of pinned messages: D7110 and D7112 should handle this, I can call the endpoint to retrieve all of the pinned messages for a given thread.
Actually remove the remaining "only for flow" lines, not sure why this didn't commit before...
I don't think doing input validation for SQL results is necessary – the any is fine here. It would probably have been more clear how / why you're using any if these utility functions were introduced in the same diff where they are used.
It seems to work with all data URIs too!
[will add screenshot shortly]
In D7151#212209, @ashoat wrote:Just tested and it looks like this solves rendering SVG data URIs for us!! I haven't tested other types, but PNG, JPEG, and SVG are all listed as supported in the docs. Thanks @bartek for the tip! This is way better than what I had planned to do on Android.
rebase before landing
ashoat updated the test plan for D7151: [native] Migrate from react-native-fast-image to expo-image.
Just tested and it looks like this solves rendering SVG data URIs for us!! I haven't tested other types, but PNG, JPEG, and SVG are all listed as supported in the docs. Thanks @bartek for the tip! This is way better than what I had planned to do on Android.
Done testing!! I think this is safe to land. I haven't tested blurhash or SVG / data URI support yet, but those are things that react-native-fast-image can't handle today anyways
ashoat updated the test plan for D7151: [native] Migrate from react-native-fast-image to expo-image.
ashoat updated the test plan for D7151: [native] Migrate from react-native-fast-image to expo-image.
Mar 22 2023
Mar 22 2023
That general approach looks great!! Great work figuring this out.
My last proposed solution to fix the chat bubble poking out of the message box is to make the message box a flex container and align the inner text messages (either flex-end or flex-start) depending on if the message came from the viewer or not. This solution is very similar to how we position the InlineEngagement component, which inspired me to implement the solution this way.
rohan updated the diff for D6924: [keyserver] Introduce columns in messages table to support pinned messages.
Create compound index, set my DB version back to 20 and re-run the migration to confirm no errors are present, and use EXPLAIN on the query in D7110 to confirm that the query uses the newly created thread_pinned index
add feature flags and fix poking chat bubble
ashoat added inline comments to D7106: Native Java code to request notifications permissions from JS on Android 13.
ashoat requested changes to D7148: [keyserver/lib] Introduce a new message type and spec for toggling pins.
ashoat added inline comments to D6924: [keyserver] Introduce columns in messages table to support pinned messages.
ashoat added inline comments to D7110: [keyserver/lib] Add a fetchPinnedMessages method to retrieve all pinned messages for a thread.
ashoat added inline comments to D7141: [keyserver] Display edited message in the sidebar if the source message is edited.
We should not be polluting the global namespace in D7101. You should not be able to use QueryExecResult without importing it unless it's in the Flow lib.
We can consider preventing users from sending empty edit messages.
In D7094#211792, @michal wrote:This diff seems to call getAPNsNotificationTopic with two parameters, but the version of that function in master only takes one parameter. Can you please update this diff's dependencies so I can see the rest of your stack? Please always set diff dependencies!
There's no stack for this diff, I'm calling getAPNsNotificationTopic with one argument, it's just an object with two fields.
Will this affect the height of the item? Have you made the necessary changes to the height determination code (textMessageItemHeight)?
ashoat requested changes to D7117: [keyserver] Add migration - process messages in our db for search.
nice! just one nit
just a couple nits
ashoat requested changes to D7137: [native] render thread avatars for parent/child threads in thread settings.
You should definitely have included @inka on this review – she is by far the expert on this code
I am skeptical that you need to be touching entity-text.js or entity-helpers.js at all. Can you explain what updates you think you need to the EntityText framework and why?
Mostly questions
rebase on master
Rebase on master
Address feedback
ashoat requested changes to D7120: Use notifications permission request API on Android 13 while keeping old behavior on older Androids..
Just a question
svc -> keyserver_service
bartek added inline comments to D7106: Native Java code to request notifications permissions from JS on Android 13.
Please update native/expo-modules/aes-crypto/android/build.gradle before landing!
ashoat requested changes to D7106: Native Java code to request notifications permissions from JS on Android 13.
rohan updated the diff for D7148: [keyserver/lib] Introduce a new message type and spec for toggling pins.
Use contentStringForMediaArray and confirm robotext is still as expected
rohan added inline comments to D7148: [keyserver/lib] Introduce a new message type and spec for toggling pins.
bartek added inline comments to D7148: [keyserver/lib] Introduce a new message type and spec for toggling pins.
rohan added inline comments to D7148: [keyserver/lib] Introduce a new message type and spec for toggling pins.