give Aquila Uganda flag
This commit is contained in:
parent
94e7de9894
commit
ce83847fa6
|
@ -60,7 +60,7 @@ export class ChatProvider {
|
||||||
async sendMessage(user, message, channelId: number = 0) {
|
async sendMessage(user, message, channelId: number = 0) {
|
||||||
const name = (user.regUser) ? user.regUser.name : null;
|
const name = (user.regUser) ? user.regUser.name : null;
|
||||||
const country = user.country || 'xx';
|
const country = user.country || 'xx';
|
||||||
const displayCountry = (name.endsWith('berg') || name.endsWith('stein'))
|
let displayCountry = (name.endsWith('berg') || name.endsWith('stein'))
|
||||||
? 'il'
|
? 'il'
|
||||||
: country;
|
: country;
|
||||||
|
|
||||||
|
@ -71,6 +71,9 @@ export class ChatProvider {
|
||||||
if (!user.regUser.verified) {
|
if (!user.regUser.verified) {
|
||||||
return 'Your mail has to be verified in order to chat';
|
return 'Your mail has to be verified in order to chat';
|
||||||
}
|
}
|
||||||
|
if (name === 'Aquila') {
|
||||||
|
displayCountry = 'ug';
|
||||||
|
}
|
||||||
|
|
||||||
if (message.length > 2
|
if (message.length > 2
|
||||||
&& message === message.toUpperCase()
|
&& message === message.toUpperCase()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user