mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
Reverted changes related to multiple messages and changed handleTwoHanded to send single, clearer, messages.
This commit is contained in:
@@ -106,15 +106,10 @@ angular.module('habitrpg')
|
||||
}
|
||||
if (err) {
|
||||
var message = err.code ? err.message : err;
|
||||
console.log(message);
|
||||
if (typeof message === 'string')
|
||||
message = [message];
|
||||
_.each(message, (msg) => {
|
||||
if (MOBILE_APP) Notification.push({type:'text',text:msg});
|
||||
else Notification.text(msg);
|
||||
// In the case of 200s, they're friendly alert messages like "Your pet has hatched!" - still send the op
|
||||
if ((err.code && err.code >= 400) || !err.code) return;
|
||||
});
|
||||
if (MOBILE_APP) Notification.push({type:'text',text:message});
|
||||
else Notification.text(message);
|
||||
// In the case of 200s, they're friendly alert messages like "Your pet has hatched!" - still send the op
|
||||
if ((err.code && err.code >= 400) || !err.code) return;
|
||||
}
|
||||
userServices.log({op:k, params: req.params, query:req.query, body:req.body});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user