-
Notifications
You must be signed in to change notification settings - Fork 35
Fixes #1 #11
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
base: main
Are you sure you want to change the base?
Fixes #1 #11
Conversation
|
Thanks @mad-alpha for this Fix, I will review it soon. |
|
This should not be done on the server side but on client side. You have to send a timestamp here, which will be sent to other user: Also you will have to render it in the UI. |
|
Any help required @mad-alpha? I can assist you if you wanted. |
| User string `json:"user"` | ||
| Text string `json:"message,omitempty"` | ||
| To string `json:"to,omitempty"` | ||
| Timstamp string `json:"timestamp,omitempty"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
More suitable datatype is *time.Time
Added timestamp with every message on client side as well as in user cards.