Minor fixes.

pull/50/head
Mikunj 7 years ago
parent db1145c0ce
commit bd103e2ad2

@ -62,13 +62,14 @@
* *
* `isKeyExchangeCompleted` return whether we know for certain * `isKeyExchangeCompleted` return whether we know for certain
* that both of our preKeyBundles have been exhanged. * that both of our preKeyBundles have been exhanged.
* - This will be set when we receive a valid CIPHER message from the other user. * - This will be set when we receive a valid CIPHER or
* PREKEY_BUNDLE message from the other user.
* * Valid meaning we can decypher the message using the preKeys provided * * Valid meaning we can decypher the message using the preKeys provided
* or the keys we have stored. * or the keys we have stored.
* *
* `isFriend` will determine whether we should send a FRIEND_REQUEST message. * `isFriend` will determine whether we should send a FRIEND_REQUEST message.
* *
* `isKeyExhangeCompleted` will determine whether we keep * `isKeyExchangeCompleted` will determine whether we keep
* sending preKeyBundle to the other user. * sending preKeyBundle to the other user.
*/ */
@ -513,7 +514,8 @@
// Update our local state // Update our local state
await this.updatePendingFriendRequests(); await this.updatePendingFriendRequests();
// Send the notification // Send the notification if we had an outgoing friend request
if (pending.length > 0)
this.notifyFriendRequest(this.id, 'accepted') this.notifyFriendRequest(this.id, 'accepted')
}, },
async onFriendRequestSent() { async onFriendRequestSent() {

Loading…
Cancel
Save