Skip to content
This repository has been archived by the owner on Jun 7, 2020. It is now read-only.

[NEW][RFC] Support receiving shared content (audio/video/text) #874

Closed
wants to merge 3 commits into from

Conversation

leonardoaramaki
Copy link
Contributor

@RocketChat/android

Closes #98

Copy link
Contributor

@luciofm luciofm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@leonardoaramaki can you take a look on the conflicts...

when (it) {
is String -> putString(ARGUMENT_SHARED_CONTENT, it)
is Uri -> putParcelable(ARGUMENT_SHARED_CONTENT, it)
is ArrayList<*> -> if (it.size > 0 && it[0] is Uri) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it.isNotEmpty()

@@ -174,6 +188,14 @@ class ChatRoomFragment : Fragment(), ChatRoomView, EmojiKeyboardPopup.Listener {
if (oldMessagesCount == 0 && dataSet.isNotEmpty()) {
recycler_view.scrollToPosition(0)
}
contentToShare?.let {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't know if this is the right place to "plug" this...
Setting contentToShare as null seems like a code smell

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know you are waiting the message list to be populated, but maybe we need a new callback on the View, to indicate the first messages are loaded.

@luciofm luciofm changed the base branch from develop-2.x to develop April 16, 2018 19:07
@leonardoaramaki leonardoaramaki deleted the feature/receive-data branch April 30, 2018 15:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[NEW] React to "Share" (ACTION_SEND) intent from another app
3 participants