Closed Marak closed 2 years ago
Was able to implement all above profile::buddy::*
events.
Combined pond and buddy message rendering into common App.Messages
Choose to not implement message::*
events at this time. Is currently not required and there is benefit in keeping main message processing as async with callback vs EE with no callback. Can revisit if needed.
Overall looking very good. Code is much cleaner and we were able to remove duplicate message rendering code.
Closing for now. Can re-open to track regressions from refactor.
In order to reduce complexity of code and make message and buddylist easier to work with, we will refactor message processing and buddylist profile into Event Emitter.
desktop.on()
anddesktop.emit()
both already exist, so we will utilize these. This shouldn't be too much effort, the majority of the code is already decoupled and prepped for this.The syntax looks something like: