Fix double call history & adding contact from history (#231)

This commit is contained in:
Dillon Skaggs authored and GitHub committed 2021-05-20 23:54:01 +02:00
1 parent 488c8df5cb
commit 2411c39b95
6 files changed
+12 -6

No files matched your search

+3 -1
View File
@@ -96,7 +96,7 @@ class CallsService {
const channelId = src;
await this.callsDB.saveCall(curCallAccepted);
await this.callsDB.updateCall(curCallAccepted, true, null);
callLogger.debug(`Call with key ${transmitterNumber} was updated to be accepted`);
// player who is being called
@@ -172,6 +172,8 @@ class CallsService {
emitNet(CallEvents.SEND_HANGUP_ANIM, currentCall.transmitterSource);
}
await this.callsDB.updateCall(currentCall, true, endCallTimeUnix);
// Clear from memory
this.callMap.delete(transmitterNumber);
}