mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-25 21:42:07 +01:00
Allow MUC room subject changes from the MUCs bare JID
Fixes SMACK-754.
This commit is contained in:
parent
e6787b21ce
commit
a887cde1ce
2 changed files with 1 additions and 5 deletions
|
@ -170,10 +170,6 @@ public class MultiUserChat {
|
|||
public void processStanza(Stanza packet) {
|
||||
Message msg = (Message) packet;
|
||||
EntityFullJid from = msg.getFrom().asEntityFullJidIfPossible();
|
||||
if (from == null) {
|
||||
LOGGER.warning("Message subject not changed by a full JID: " + msg.getFrom());
|
||||
return;
|
||||
}
|
||||
// Update the room subject
|
||||
subject = msg.getSubject();
|
||||
// Fire event for subject updated listeners
|
||||
|
|
|
@ -30,7 +30,7 @@ public interface SubjectUpdatedListener {
|
|||
* Called when a MUC room has changed its subject.
|
||||
*
|
||||
* @param subject the new room's subject.
|
||||
* @param from the user that changed the room's subject (e.g. room@conference.jabber.org/nick).
|
||||
* @param from the user that changed the room's subject or <code>null</code> if the room itself changed the subject.
|
||||
*/
|
||||
public abstract void subjectUpdated(String subject, EntityFullJid from);
|
||||
|
||||
|
|
Loading…
Reference in a new issue