ucladevx / Bruin-Bite-iOS

Mozilla Public License 2.0
8 stars 1 forks source link

Implementation of timestamps in chat #153

Open 1strangequark opened 4 years ago

1strangequark commented 4 years ago

Full implementation of timestamps in the chat. Each timestamp is added during the cell generation process of each chat cell. The timestamp info is grabbed from the already existing information and is applied as gray text next to the chat bubbles. The function decideToDisplayTimestamp() then decides whether to display the timestamp depending on whether the previous message in the chat has a timestamp at least 300 seconds prior (Thus meaning that a timestamp is not displayed for every single message but only messages after a period of no interaction)