|
|
@ -954,11 +954,14 @@ MessageReceiver.prototype.extend({
|
|
|
|
if (conversation && !message.flags) {
|
|
|
|
if (conversation && !message.flags) {
|
|
|
|
const isFriendRequestAccept = await conversation.onFriendRequestAccepted();
|
|
|
|
const isFriendRequestAccept = await conversation.onFriendRequestAccepted();
|
|
|
|
if (isFriendRequestAccept) {
|
|
|
|
if (isFriendRequestAccept) {
|
|
|
|
await conversation.notifyFriendRequest(envelope.source, 'accepted');
|
|
|
|
await conversation.notifyFriendRequest(
|
|
|
|
this.removeFromCache(envelope);
|
|
|
|
envelope.source,
|
|
|
|
return null;
|
|
|
|
'accepted'
|
|
|
|
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
this.removeFromCache(envelope);
|
|
|
|
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const ev = new Event('message');
|
|
|
|
const ev = new Event('message');
|
|
|
|