|
|
@ -154,11 +154,11 @@ define('chat', [
|
|
|
|
alerts.error(err);
|
|
|
|
alerts.error(err);
|
|
|
|
|
|
|
|
|
|
|
|
// Revert on failure
|
|
|
|
// Revert on failure
|
|
|
|
module.markChatElUnread($(chatEl), !(state === 1));
|
|
|
|
module.markChatElUnread($(chatEl), !state);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
// Immediate feedback
|
|
|
|
// Immediate feedback
|
|
|
|
module.markChatElUnread($(chatEl), state === 1);
|
|
|
|
module.markChatElUnread($(chatEl), state);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
module.isFromBlockedUser = function (fromUid) {
|
|
|
|
module.isFromBlockedUser = function (fromUid) {
|
|
|
|