mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
Fix double call history & adding contact from history (#231)
This commit is contained in:
1 parent
488c8df5cb
commit
2411c39b95
6 files changed
+12
-6
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user