AdamToday at 11:36 PM
would this actually work properly though? for example, say 2 people send the same message to a channel at the same time, the message wouldn't exist in either cache
and would just get sent twice
AdamToday at 11:37 PM
you'd likely need to grab the timestamp out of the message id and then have the person who sent it last delete it
in the case of a duplicate
AdamToday at 11:43 PM
no i mean you still use time
if its not in the cache, you listen to new message events
if you get a new message with a timestamp from before your message, you delete yours
that way you handle both the cached case or latency case
AdamToday at 11:36 PM would this actually work properly though? for example, say 2 people send the same message to a channel at the same time, the message wouldn't exist in either cache and would just get sent twice
AdamToday at 11:37 PM you'd likely need to grab the timestamp out of the message id and then have the person who sent it last delete it in the case of a duplicate
AdamToday at 11:43 PM no i mean you still use time if its not in the cache, you listen to new message events if you get a new message with a timestamp from before your message, you delete yours that way you handle both the cached case or latency case