Skip to content
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

allow sending any emoji as reaction #2087

Merged
merged 2 commits into from
Feb 28, 2024
Merged

allow sending any emoji as reaction #2087

merged 2 commits into from
Feb 28, 2024

Conversation

r10s
Copy link
Member

@r10s r10s commented Feb 25, 2024

i had a quick look how we can improve reactions without much effort, a big impact will have the option to send any reaction.

i used the "first best" emoji picker, and this PR is the result of not much more than an hour of work, with quite some impact, i'd say :)

EDIT: i spent a little more tome to make the selector a better fitting sheet, for that, it was needed to fork the repo at https://github.com/deltachat/MCEmojiPicker (which is still added via Swift Packet Manager)

Screenshot 2024-02-27 at 23 51 17

(OT, reminder to myself, sth. for another PR: if we have sth. like the emoji picker in, i think, we can also reconsider going for the max-4-horizontal items, "👍 👎 ❤️ •••")

@r10s r10s force-pushed the r10s/reaction-picker branch 3 times, most recently from 44574ce to 64324ea Compare February 26, 2024 14:40
@r10s
Copy link
Member Author

r10s commented Feb 26, 2024

@zeitschlag i meanwhile also think, it would be best to "copy" the project to ours and change the few line that make the whole thing a "bottom sheet" and remove the arrows. this will probably also solve the issue wrt emulator. i will do a commit tomorrow ...

@zeitschlag
Copy link
Collaborator

@r10s That's what I suggested yesterday. I wouldn't copy it, but fork their repository, do the changes there and use SPM/pods to include the forked repo. What do you think?

@r10s r10s marked this pull request as ready for review February 27, 2024 23:34
@r10s
Copy link
Member Author

r10s commented Feb 27, 2024

@zeitschlag thanks for all your tips, i forked the repo and added it via Swift Packet Manager, still getting the emulator-cannot-build error.

i tried adding the same via Pod - just the same error:

Screenshot 2024-02-28 at 00 21 04

the magic behind that is totally unclear to me ... i mean, the forked repo should not have some artefact, things are just compiled - why does the emulator cause issues? also, why does the emulator asks for rosetta - on an M1 arm64 (which is compiling fine for real device) should be just fine

@r10s
Copy link
Member Author

r10s commented Feb 28, 2024

thanks @zeitschlag for all the tipps!

finally, using Cocoapods and setting iOS target to 12 at deltachat/MCEmojiPicker@d9eb480 did the job - the same for Swift Package Manager did not work and leaves us with unusable emulator

this makes this PR huge, however, the first commit is the real change, the second one is the result from pod install with some 10k of changed lines

r10s added a commit that referenced this pull request Feb 28, 2024
no super-important, but seems to be super-simple -
i came over that at #2087
and remembered the request from
https://support.delta.chat/t/enlarge-the-account-switcher-in-dc-ios-by-swiping-it-up/2941 :)
Copy link
Collaborator

@zeitschlag zeitschlag left a comment

Choose a reason for hiding this comment

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

LGTM, works better than expected, I have to admit!

@r10s
Copy link
Member Author

r10s commented Feb 28, 2024

thanks a lot for guiding the boat through the rough sea-of-dependency!

@r10s r10s merged commit 0912048 into main Feb 28, 2024
@r10s r10s deleted the r10s/reaction-picker branch February 28, 2024 14:59
@r10s r10s mentioned this pull request Feb 28, 2024
r10s added a commit that referenced this pull request Feb 29, 2024
no super-important, but seems to be super-simple -
i came over that at #2087
and remembered the request from
https://support.delta.chat/t/enlarge-the-account-switcher-in-dc-ios-by-swiping-it-up/2941 :)
r10s added a commit that referenced this pull request Feb 29, 2024
currently, random reactions (as added with #2087)
cannot be retracted easily.

this PR allows retraction by just selecting the emoji again -
similar to the predefined reactions.

(showing the selection in the emoji selector is out of scope of this PR
and probably not worth the effort,
at least not now where there are much larger fishes to get)
r10s added a commit that referenced this pull request Mar 1, 2024
currently, random reactions (as added with #2087)
cannot be retracted easily.

this PR allows retraction by just selecting the emoji again -
similar to the predefined reactions.

(showing the selection in the emoji selector is out of scope of this PR
and probably not worth the effort,
at least not now where there are much larger fishes to get)
@r10s r10s added the enhancement actually in development, user visible enhancement label Mar 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement actually in development, user visible enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants