-
-
Notifications
You must be signed in to change notification settings - Fork 251
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
show deck card in messages #4327
Conversation
6b68499
to
fb4997f
Compare
83771cc
to
3093f0f
Compare
Playing around how deck cards in more detail for the first time. It feels quite confusing...: The handling how deck cards are viewed are quite depending on who sent it in which way, if the board is shared to the other user, and also it's different by platforms. See numbers in the first screenshot of web... 1&2 were received when the board was not yet shared.
Todos:
pinging some people if anyone want to share opinions.. |
app/src/main/res/values/strings.xml
Outdated
@@ -415,6 +416,7 @@ How to translate with transifex: | |||
<string name="nc_sent_poll_you">You sent a poll.</string> | |||
<string name="nc_sent_location_you">You sent a location.</string> | |||
<string name="nc_sent_voice_you">You sent a voice message.</string> | |||
<string name="nc_sent_deck_card_you">You: %1$s</string> |
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 sent a deck card.
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.
@mahibi - The string is modified to align with web
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.
The web is always saying You: …
but that's not the best. Use what Marcel suggested, to align with the other messages of the same type that exist atm in Android
app/src/main/res/values/strings.xml
Outdated
@@ -407,6 +407,7 @@ How to translate with transifex: | |||
<string name="nc_sent_poll" formatted="true">%1$s sent a poll.</string> | |||
<string name="nc_sent_location" formatted="true">%1$s sent a location.</string> | |||
<string name="nc_sent_voice" formatted="true">%1$s sent a voice message.</string> | |||
<string name="nc_sent_deck_card" formatted="true">%1$s: %2$s</string> |
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.
%1$s sent a deck card.
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.
The string is modified to align with web
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.
Same as above
We try to use the link that included in the richObject to get additional information from the reference provider (not opengraph). If that is not possible, we render the deck card with the information we have in the richObject. Actually the last one is not correctly working, as our check is wrong, you found a bug :) nextcloud/talk-ios#1843. Without the bug, we should render the same as android.
Since it's just a link, we try to get reference data. If there's one for "deck-card" we use that: https://github.com/nextcloud/talk-ios/blob/25ebf7eca1f1043ab89b7ff4791a4eac34dff075/NextcloudTalk/ReferenceView.swift#L126-L135. Otherwise we fall back to opengraph data, which most of the time is just the link.
Should be the same as 1. Not totally sure, why it's rendered in this case. Maybe the reference provider behaves differently, but need to check.
Same as 2. |
3093f0f
to
9b9f5e0
Compare
@nickvergessen - Is the current implementation of deck card on android okay for you or do you want to make any changes to the way the deck card is shown? |
Regarding the questions/comments in #4327 (comment)
When the board/card is not publicly accessible, OpenGraph will not be able to return any information, so that's expected.
It was decided that automatic sharing should not happen, as otherwise people might expect that quickly afterwards deleting the message would also undo the share, but we wouldn't know if we just shared or not. In addition we would need to understand and interact with quite a lot 3rdparty app APIs in those cases, so that's a "No" for now.
There is also a significant difference when you share a file to chat or when you post
While that would be cool, we can also simply raise a follow up issue and keep this PR here scoped. |
Signed-off-by: sowjanyakch <[email protected]>
Signed-off-by: sowjanyakch <[email protected]>
Signed-off-by: sowjanyakch <[email protected]>
Signed-off-by: sowjanyakch <[email protected]>
Signed-off-by: sowjanyakch <[email protected]>
Signed-off-by: sowjanyakch <[email protected]>
Signed-off-by: sowjanyakch <[email protected]>
Signed-off-by: sowjanyakch <[email protected]>
Signed-off-by: sowjanyakch <[email protected]>
Signed-off-by: sowjanyakch <[email protected]>
Signed-off-by: sowjanyakch <[email protected]>
Signed-off-by: sowjanyakch <[email protected]>
Signed-off-by: sowjanyakch <[email protected]>
Signed-off-by: sowjanyakch <[email protected]>
9b9f5e0
to
99b410f
Compare
APK file: https://www.kaminsky.me/nc-dev/android-artifacts/4327-talk.apk |
/backport to stable-20.0 |
fix #1025
🚧 TODO
🏁 Checklist
/backport to stable-xx.x