aaaa
This commit is contained in:
parent
4efb919c00
commit
18b2fd231d
|
@ -214,8 +214,9 @@ public class Notifications {
|
||||||
try{
|
try{
|
||||||
String opExecutor = caller.getClient().getId();
|
String opExecutor = caller.getClient().getId();
|
||||||
Boolean result = setUserNotificationsOnOff(setting.getUsername(), setting.isDisableNotification(), opExecutor);
|
Boolean result = setUserNotificationsOnOff(setting.getUsername(), setting.isDisableNotification(), opExecutor);
|
||||||
String toReturn = "Notifications have been set";
|
String toReturn = "Could not set notifications";
|
||||||
if (result) {
|
if (result) {
|
||||||
|
toReturn = "Notifications have been set";
|
||||||
toReturn += setting.isDisableNotification() ? " OFF ": " ON ";
|
toReturn += setting.isDisableNotification() ? " OFF ": " ON ";
|
||||||
toReturn += "for username=" + setting.getUsername();
|
toReturn += "for username=" + setting.getUsername();
|
||||||
}
|
}
|
||||||
|
@ -260,7 +261,7 @@ public class Notifications {
|
||||||
if (disable) {
|
if (disable) {
|
||||||
result = entries.set(key, SocialUtils.CACHING_TIME_TO_EXPIRATION, "op.ex:" + callerId); //operator executor is who silenced the user
|
result = entries.set(key, SocialUtils.CACHING_TIME_TO_EXPIRATION, "op.ex:" + callerId); //operator executor is who silenced the user
|
||||||
} else {
|
} else {
|
||||||
result = entries.delete(username);
|
result = entries.delete(key);
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
return result.getStatus().isSuccess();
|
return result.getStatus().isSuccess();
|
||||||
|
|
Loading…
Reference in New Issue