names ending with "berg" or "stein" default to israel

This commit is contained in:
HF 2020-04-28 04:38:36 +02:00
parent 3ec1d71a49
commit 4e411d6eaf

View File

@ -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