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

Message reaction #188

Open
buddh4 opened this issue Sep 11, 2020 · 15 comments
Open

Message reaction #188

buddh4 opened this issue Sep 11, 2020 · 15 comments

Comments

@buddh4
Copy link
Contributor

buddh4 commented Sep 11, 2020

Message reactions as like/emojis

@Semir1212
Copy link
Contributor

A small selection like this one (or just a thumbs up) would be useful:

image

@marc-farre
Copy link
Contributor

@Semir1212 maybe I could have a try to add the like module, which allows using the https://marketplace.humhub.com/module/reaction/description module.

@luke- luke- closed this as completed Apr 2, 2024
@luke- luke- reopened this Apr 2, 2024
@Semir1212
Copy link
Contributor

@marc-farre That sounds like a good idea, even if I think it should ultimately be part of the Messenger module itself.

@marc-farre
Copy link
Contributor

@Semir1212 Maybe we could later merge the Reaction module into HumHub core.

I'll try to work on this issue as soon as possible.

@latamclick
Copy link

Hello, reactions (https://marketplace.humhub.com/module/reaction/description) work for HumHub Messenger module?

@marc-farre
Copy link
Contributor

@luke- PR #388 adds "Like" to message entries.

image

I had to make AbstractMessageEntry extends ContentActiveRecord instead of ActiveRecord.

And because of that, I had to rename the content column to entry_content in the message_entry table.
Let me know if you have a better idea for entry_content. I think it should be called message (as for Post and Comment), but it would be confusing with the message parent table.

@Semir1212 @latamclick Once this new version of the Mail module will be released, I'll release a new version of the Reaction module to work with it.

@marc-farre
Copy link
Contributor

Commit 99eff04 also fixes this issue (founded by automatic tests):
Notification not sent to the participant added to the conversion

By fixing this issue, I've discovered another one: #389

@luke-
Copy link
Contributor

luke- commented May 8, 2024

@marc-farre Hmm, Messages from Mail module should not actually be derived from the “ContentActiveRecord”. I'm not sure how best to proceed here.

We will probably have to modify the Like module so that it does support non-content as well.

@marc-farre
Copy link
Contributor

@luke-

I have created the LikeNotificationInterface interface.
And I had to extend the Like model from ActiveRecord instead of ContentAddonActiveRecord.

Test:
image

Result:
image

image

There is an issue with emojis, but I don't think it's related to these PRs. I'll do more tests later about it.

Let me know what you think about it. I haven't done a lot of tests at the moment. I would first want to know if I'm going the right direction.

Codeception tests on the Messenger module cannot work without first merging the PR for the core.

@latamclick
Copy link

@marc-farre #188 (comment)
This module is already available for download?

@marc-farre
Copy link
Contributor

This module is already available for download?

@latamclick No, it's under development, but unfinished.
It will be available when this issue is closed and the new versions of HumHub and Messenger module are released.
It might take time.

@ilMagnifico
Copy link

Bumping this too.

@marc-farre
Copy link
Contributor

marc-farre commented Oct 14, 2024

@luke- I have merged:

For the Messenger module, I added v3.2.4 to the changelog because it's compatible with 1.17 only, whereas the upcoming 3.2.3 is still compatible with 1.16.

Tests are OK on HH core, but of course fail for Messenger, as tests are done with HH master which doesn't yet have the LikeNotificationInterface.

Can I do anything else to progress on this topic? Thanks!

@luke-
Copy link
Contributor

luke- commented Oct 14, 2024

@marc-farre Thank you for keeping the PR up to date.

I'm not that happy with the implementation and I have to think about how we could better deal with content add-ons and such situations.

Please give me a bit time here. Currently there are other tasks.

@lashab82
Copy link

Hi Luke, any progress on this one? It's a feature that we would really appreciate to have in the Messenger module.

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

No branches or pull requests

7 participants