monika0691 / emite

Automatically exported from code.google.com/p/emite
0 stars 0 forks source link

Create a extension point to modify incomming chat messages before rendering... #278

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

We need a interchangeably mechanism to modify the messages before being 
displayed in Hablar. 
This is a generalization of issue 207.

The proposal is create a new interface (maybe MessageChatRenderer) that is 
invoked before 
message rendering in order to modify or decorate the message. Probably this 
interface methos is 
called inside RoomPresenter.showMessage (and probably inside 
ChatPresenter.showMessage).

Original issue reported on code.google.com by danigb on 14 May 2010 at 3:07

GoogleCodeExporter commented 9 years ago

Original comment by danigb on 14 May 2010 at 3:07

GoogleCodeExporter commented 9 years ago
Could this potentially be implemented using an event that is called on message 
display.  
This can then be hooked into in order to alter the message text before it is 
displayed?

Original comment by ashward....@gmail.com on 14 May 2010 at 3:13

GoogleCodeExporter commented 9 years ago

The only problem with the event-oriented approach is the performance 
considerations of using a event bus (a 
signal in suco library) to fire the event... the question is, do you think it 
would be usefull to have more than one 
ChatMessageRendered attached to a RoomPresenter? If so, then the event approach 
is nice, but if not I would use 
a simple object association relation...

Original comment by danigb on 14 May 2010 at 3:18

GoogleCodeExporter commented 9 years ago

Original comment by ashward....@gmail.com on 24 Feb 2011 at 2:37