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

[Feature] Mark Message as #5

Closed
Abacaxi-Nelson opened this issue Jan 24, 2021 · 4 comments
Closed

[Feature] Mark Message as #5

Abacaxi-Nelson opened this issue Jan 24, 2021 · 4 comments

Comments

@Abacaxi-Nelson
Copy link

Abacaxi-Nelson commented Jan 24, 2021

Hi
Your library is so great ! thank you so much to share it.

Use case:

  1. User want to reply to a message
  2. User want to modify his own message

For use case 2, im using existing API on controller https://github.com/themadmrj/chat_ui_kit/blob/3d03ae5de83906d01a4cd78bff2758be2397a0c2/lib/src/utils/controllers.dart#L100

The process is : Mark a message > Update the UI > When a message is send > Detect if a message is marked > Update database according to

It enable me, to update the UI (show the old message on top of the submit form).
When user is done, i unselect

selectis a great way to select multiple messages once, and make something on them.
But we need also, a markAsModify, markAsReply to make the controller more complete.

void mark(T item, String family) {
    _markItems[family] = item;
    notifyListeners();
    _controller.sink.add(****);
  } 
@jonasN5
Copy link
Owner

jonasN5 commented Jan 24, 2021

Since it doesn't seem to conflict with already existing features/code, feel free to make a pull request and I'll merge it asap :)

@lucasjinreal
Copy link

@themadmrj Does this lib stores messages data to database ?

@jonasN5
Copy link
Owner

jonasN5 commented Feb 24, 2021

@themadmrj Does this lib stores messages data to database ?

No, it is a UI kit, so the dev has to implement any database operation. It would be a pain to do, since every project requires a different Chat/Message model.

@jonasN5 jonasN5 closed this as completed Feb 24, 2021
@lucasjinreal
Copy link

@themadmrj Yeah yeah, exactly

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

No branches or pull requests

3 participants