Project

General

Profile

MUC doesn't add 'id' attribute to message

Igor Khomenko
Added over 4 years ago

Hi there,

I have realised that MUC doesn't add 'id' attribute to message.

For example, User1, User2 and User3 are in room.

User1 sent a message stanza included 'id' attribute. User2 and User3 will receive a message without this attribute.

I checked XEP-0045 specification http://xmpp.org/extensions/xep-0045.html#message and found next info:

Note well that for tracking purposes this service assigns a new 'id' to each message it generates

Could you please comment this


Replies (4)

(1)
Avatar?id=6098&size=32x32

Added by Bartosz Malkowski TigaseTeam over 4 years ago

Indeed.

I will add it.

(1)

Added by Igor Khomenko over 4 years ago

Thanks,

I don't know what is the reason to generate a new 'id' and not use origin one. But still, would be great to have at least something :)

(1)
Avatar?id=6098&size=32x32

Added by Bartosz Malkowski TigaseTeam over 4 years ago

New id is generated because this is not the same stanza and this is not response to IQ stanza.

I'm just curious: why do you need id in message stanza from MUC?

Added by Igor Khomenko over 4 years ago

I'm checking now http://xmpp.org/extensions/xep-0333.html and http://www.xmpp.org/extensions/xep-0184.html

Not sure will I use them for MUC and is it possible at all or not, but they based on 'id' attribute.

Anyway it would be great to have same message structure for 1-1 and MUC chats, so we don't need to generate 'id' for MUC message on the client side or something like this

    (1-4/4)