reiichi001 / Dalamud.DiscordBridge

GNU Affero General Public License v3.0
16 stars 18 forks source link

Implement actual duplicate message checking #1

Closed reiichi001 closed 1 year ago

reiichi001 commented 3 years ago

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