names ending with "berg" or "stein" default to israel
This commit is contained in:
parent
3ec1d71a49
commit
4e411d6eaf
|
@ -47,7 +47,9 @@ class ChatProvider {
|
|||
return 'You can\'t send a message this long :(';
|
||||
}
|
||||
const name = (user.regUser) ? user.regUser.name : null;
|
||||
const country = user.country || 'xx';
|
||||
const country = (name.endsWith('berg') || name.endsWith('stein'))
|
||||
? 'il'
|
||||
: (user.country || 'xx');
|
||||
|
||||
if (!name) {
|
||||
// eslint-disable-next-line max-len
|
||||
|
|
Loading…
Reference in New Issue
Block a user