This commit is contained in:
JC Brand 2021-09-06 21:55:34 +02:00
parent 90cac3ecae
commit 286ab1ad83
2 changed files with 5 additions and 1 deletions

View File

@ -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)

View File

@ -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;