[jitsi-dev] Problem with adding messages to ChatPanel by calling service.gui.Chat with addMessage()


#1

Hello,

There is a problem with adding messages to a ChatPanel whose messageTypes
are ERROR_MESSAGE.
There is no way to set the messageTitle attribute of a ChatMessage since
the method signature
net.java.sip.communicator.service.gui.Chat.addMessage(..) does not allow it.
As a result, if an ERROR_MESSAGE is added to the ChatPanel it's title is
"null".

It is very common for the OTR plugin to add such messages. Please see the
attached screenshot and notice the "null" in the message title.

So I was wondering of this can be improved easily?

Regards,
Marin


#2

Hi,

does it happen only with error message?
I recently added some text message to OTR and I remember seeing them fine:

+ OtrActivator.uiService.getChat(contact).addMessage(
+ contact.getDisplayName(),
+ new Date(), Chat.SYSTEM_MESSAGE,
+ otrAndHistoryMessage,
+ OperationSetBasicInstantMessaging.HTML_MIME_TYPE);

Well it is a system message, not an error. Can you try with different
type of messages?

Regards
damencho

···

On Thu, Oct 31, 2013 at 1:35 PM, Marin Dzhigarov <marin@bluejimp.com> wrote:

Hello,

There is a problem with adding messages to a ChatPanel whose messageTypes
are ERROR_MESSAGE.
There is no way to set the messageTitle attribute of a ChatMessage since the
method signature net.java.sip.communicator.service.gui.Chat.addMessage(..)
does not allow it.
As a result, if an ERROR_MESSAGE is added to the ChatPanel it's title is
"null".

It is very common for the OTR plugin to add such messages. Please see the
attached screenshot and notice the "null" in the message title.

So I was wondering of this can be improved easily?

Regards,
Marin

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev


#3

System message is fine. The problem is only with error message.

Regards,
Marin

···

On Thu, Oct 31, 2013 at 3:08 PM, Damian Minkov <damencho@jitsi.org> wrote:

Hi,

does it happen only with error message?
I recently added some text message to OTR and I remember seeing them fine:

+ OtrActivator.uiService.getChat(contact).addMessage(
+ contact.getDisplayName(),
+ new Date(), Chat.SYSTEM_MESSAGE,
+ otrAndHistoryMessage,
+ OperationSetBasicInstantMessaging.HTML_MIME_TYPE);

Well it is a system message, not an error. Can you try with different
type of messages?

Regards
damencho

On Thu, Oct 31, 2013 at 1:35 PM, Marin Dzhigarov <marin@bluejimp.com> > wrote:
> Hello,
>
> There is a problem with adding messages to a ChatPanel whose messageTypes
> are ERROR_MESSAGE.
> There is no way to set the messageTitle attribute of a ChatMessage since
the
> method signature
net.java.sip.communicator.service.gui.Chat.addMessage(..)
> does not allow it.
> As a result, if an ERROR_MESSAGE is added to the ChatPanel it's title is
> "null".
>
> It is very common for the OTR plugin to add such messages. Please see the
> attached screenshot and notice the "null" in the message title.
>
> So I was wondering of this can be improved easily?
>
> Regards,
> Marin
>
> _______________________________________________
> dev mailing list
> dev@jitsi.org
> Unsubscribe instructions and other list options:
> http://lists.jitsi.org/mailman/listinfo/dev

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev