Fixes #2633.
This commit is contained in:
parent
90cac3ecae
commit
286ab1ad83
|
@ -5,6 +5,7 @@
|
|||
- #2326: 404 for asset /logo/conversejs-filled.svg
|
||||
- #2628: Open groupchats toggle emits an error
|
||||
- #2629: OMEMO button tooltip is wrong in private chat
|
||||
- #2633: Excessive logging of warning
|
||||
- #2634: Image previews not loading when not serving Converse locally
|
||||
|
||||
## 8.0.0 (2021-09-03)
|
||||
|
|
|
@ -186,13 +186,16 @@ export async function autoJoinRooms () {
|
|||
* @param { XMLElement } stanza
|
||||
*/
|
||||
async function handleMEPNotification (stanza) {
|
||||
const msgid = stanza.getAttribute('id');
|
||||
const from = stanza.getAttribute('from');
|
||||
if (u.isSameBareJID(from, _converse.bare_jid)) {
|
||||
return;
|
||||
}
|
||||
const room = await api.rooms.get(from);
|
||||
if (!room) {
|
||||
log.warn(`Received a MEP message for a non-existent room: ${from}`);
|
||||
return;
|
||||
}
|
||||
const msgid = stanza.getAttribute('id');
|
||||
if (room.messages.findWhere({ msgid })) {
|
||||
// We already handled this stanza before
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue
Block a user