rpaschoal / ng-chat

💬 A simple facebook/linkedin lookalike chat module for Angular applications.
MIT License
155 stars 92 forks source link

Show the message date and time #74

Closed Magneto2018 closed 5 years ago

Magneto2018 commented 5 years ago

Show the message date and time in messages history.

rpaschoal commented 5 years ago

Hi @Magneto2018 ,

Nice enhancement suggestion! There is a couple of things I am working on for a next release, including the upload of files 🎉

Are you happy with postponing this for a next release? Any help with the development of the module is also welcome, so feel free to start sending some pull requests, just make sure you follow the contributing guidelines found here: https://github.com/rpaschoal/ng-chat/blob/master/CONTRIBUTING.md

Cheers!

rpaschoal commented 5 years ago

The requested feature will be shipped with version 2.0.0 which will be the next release.

Vivekdude commented 5 years ago

@rpaschoal When version 2.0.0 is going to released, We just need to implement this functionality.

rpaschoal commented 5 years ago

Hi @Vivekdude ,

This is implemented at my current dev branch, just needs some more tests around it. I still have to implement the group chat which I haven't started.

I'll do my best to release the next version prior to the 27th of this month even if it does not include the group chat feature. I'll update you here once it has been released.

Cheers!

Vivekdude commented 5 years ago

ok Thanks @rpaschoal Could please guide me to handle the User status like Online, Offline, away, how i supposed to handle that.

rpaschoal commented 5 years ago

Hi @Vivekdude ,

On your chat adapter instance you have a public method called onFriendsListChanged. You can just call it from your angular application and component that uses ng-chat. You would have to be notified by your application that handles the messages, so for example if you are using signalR you would send a message through the hub to the client and on the event of that message invoke onFriendsListChanged with the updated friends list.

There is also an option to use a polling mechanism for the friends list: pollFriendsList. Just search for that on the main README here.

rpaschoal commented 5 years ago

Hi @Magneto2018 and @Vivekdude ,

Just letting you know that this has been released with 2.0.0-rc.1.

I haven't merged the changes on the master branch yet as this is an RC release so please refer to the README on this link for instructions on the new features: https://github.com/rpaschoal/ng-chat/tree/2.0.0-rc.1

I am planning on building a .net core application with a full demo of ng-chat and all its features, and only after that I'll be moving it to 2.0.0 as it will be a good opportunity for better testing and fine tuning of this release.

Cheers!