mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
fix(calls): check if player does not exist --no-verify
This commit is contained in:
1 parent
951ed914d5
commit
46484be9bc
3 files changed
+22
No files matched your search
@@ -4,6 +4,7 @@ import CallsDB, { CallsRepo } from './calls.db';
|
||||
import { v4 as uuidv4 } from 'uuid';
|
||||
import PlayerService from '../players/player.service';
|
||||
import { callLogger } from './calls.utils';
|
||||
import { ContactEvents } from '../../../typings/contact';
|
||||
|
||||
class CallsService {
|
||||
private callMap: Collection<string, CallHistoryItem>;
|
||||
@@ -58,6 +59,12 @@ class CallsService {
|
||||
|
||||
if (!receivingPlayer) {
|
||||
// TODO: handle offline player
|
||||
|
||||
// FIXME: Add actual localization for this.
|
||||
emitNet(CallEvents.ACTION_RESULT, src, {
|
||||
message: 'Could not reach player',
|
||||
type: 'error',
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user