We're updating the issue view to help you get more done. 

XEP-0045 7.2.13 - ofrom adresses in message stanza

Description

https://github.com/igniterealtime/Openfire/pull/1711

 

Introduction

In non-anonymous rooms, participants can/should see the others' real JID. That's usually done via presences. However, according to XEP-0045, section 7.2.13 a server MAY send the real JID also as an "addresses" stanza with type "ofrom" within the message.

This PR implements that. I opted to add the field if {{canAnyoneDiscoverJID}} is set to true for the room. Ofc, a more sophisticated implementation might include other cases based on the participant's role.

Testing

I wanted to write some tests for this, but {{LocalMUCRoom}} had some difficult to mock dependencies to singleton classes (namely the {{MUCPersistenceManager}} that is used in the constructor).

Environment

None

Acceptance Test - Entry

None

Assignee

Guus der Kinderen

Reporter

Daryl Herzmann

Labels

None

Expected Effort

None

Ignite Forum URL

None

Components

Fix versions

Affects versions

Priority

Minor
Configure