friday icon indicating copy to clipboard operation
friday copied to clipboard

Move `isDuplicatedMessage` from Event Handler Class to Saga

Open huan opened this issue 3 years ago • 0 comments

I think the Event Handler Class will be instantiated from time to time when there's a new event, and will not keep/reuse the class instance for the next one.

So the isDuplicatedMessage will always forget the hash it calculated last time.

https://github.com/wechaty/friday/blob/8338c8e718a7dc0e271a9cd80c8f96a8ab918449/src/core/sync-community-rooms/events/handlers/puppet-message-received.handler.ts#L103-L130

Should move to Saga.

huan avatar Feb 28 '22 13:02 huan