Skip to content

Conversation

@ginnyTheCat
Copy link
Contributor

@ginnyTheCat ginnyTheCat commented Oct 11, 2020

Fixes #2029

It should also work on Android Lollipop according to this. I couldn't test it, however.

Screenshot

Signed-off-by: Constantin Wartenburger [email protected]

@ginnyTheCat ginnyTheCat marked this pull request as ready for review October 11, 2020 20:09
Copy link
Member

@bmarty bmarty left a comment

Choose a reason for hiding this comment

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

Thanks a lot for this PR, I have two small remarks.

.setIntent(intent)

// Make it show up in the direct share menu
.setCategories(setOf(directShareCategory))
Copy link
Member

Choose a reason for hiding this comment

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

This is maybe not the ideal place to add this code. create() is called the user create a shortcut, or for the first 4 favorite rooms.

I think other apps create direct share shortcut once something has been shared, for a quicker future sharing to the same target.

Copy link
Member

Choose a reason for hiding this comment

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

Ok, maybe I have misunderstood this. I think it is OK actuallly

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Such a ranking is still done on the android side (of course only with the shortcuts published to them).

Copy link
Member

Choose a reason for hiding this comment

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

Yes, my remark was just about what will be the rooms exposed here

Copy link
Member

@bmarty bmarty left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for the update!

@bmarty bmarty merged commit 7158f49 into element-hq:develop Oct 14, 2020
@ginnyTheCat
Copy link
Contributor Author

Could you add the hacktoberfest topic to the repo as you did at element-web? That would be nice.

@bmarty
Copy link
Member

bmarty commented Oct 15, 2020

What do you mean?

@ginnyTheCat
Copy link
Contributor Author

The other matrix repos like synapse or element-web have the hacktoberfest topic on their repo. That makes PRs count to the Hacktoberfest (a competition) goal. It would be nice to have that here too.

@violoncelloCH
Copy link

You can also just accept specific PRs with a corresponding label "hacktoberfest-accepted" AFAIK

@bmarty
Copy link
Member

bmarty commented Oct 15, 2020

I've added the topic:

image

@ginnyTheCat
Copy link
Contributor Author

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Direct share support

3 participants