Skip to content

Conversation

@mad-alpha
Copy link

Added timestamp with every message on client side as well as in user cards.

@mad-alpha mad-alpha closed this May 19, 2023
@mad-alpha mad-alpha deleted the Update branch May 19, 2023 20:34
@mad-alpha mad-alpha restored the Update branch May 19, 2023 20:41
@mad-alpha mad-alpha reopened this May 19, 2023
@mad-alpha mad-alpha changed the title Update code Fixes : Timestamp with messages #1 May 19, 2023
@mad-alpha mad-alpha changed the title Fixes : Timestamp with messages #1 Fixes #1 May 19, 2023
@mad-alpha mad-alpha changed the title Fixes #1 fixes #1 May 19, 2023
@mad-alpha mad-alpha changed the title fixes #1 fixes#1 May 19, 2023
@mad-alpha mad-alpha changed the title fixes#1 Closes #1 May 19, 2023
@mad-alpha mad-alpha changed the title Closes #1 Fixes #1 May 19, 2023
@PradyumnaKrishna
Copy link
Owner

Thanks @mad-alpha for this Fix, I will review it soon.

@PradyumnaKrishna
Copy link
Owner

PradyumnaKrishna commented May 22, 2023

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:
https://github.com/PradyumnaKrishna/Enigma-Protocol/blob/bed07952c2a33682c48e09ad66028e4a1dfc89c6/client/src/views/Chat.vue#L223-L227

Also you will have to render it in the UI.

@PradyumnaKrishna PradyumnaKrishna added gssoc23 GirlScript Summer of Code level2 Enhancement of existing features labels May 22, 2023
@PradyumnaKrishna
Copy link
Owner

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"`

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

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

Labels

gssoc23 GirlScript Summer of Code level2 Enhancement of existing features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants