mirror of
https://github.com/moparisthebest/Yaaic
synced 2024-11-26 02:42:16 -05:00
Notify the user on receipt of all private messages, not just ones with nick mentions
You'd rarely use someone's nick in a privmsg with them, and this matches the behavior of other clients.
This commit is contained in:
parent
464430ee74
commit
c4504be725
@ -244,15 +244,18 @@ public class IRCConnection extends PircBot
|
|||||||
service.sendBroadcast(intent);
|
service.sendBroadcast(intent);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isMentioned(action)) {
|
boolean mentioned = isMentioned(action);
|
||||||
// highlight
|
if (mentioned || target.equals(this.getNick())) {
|
||||||
message.setColor(Message.COLOR_RED);
|
|
||||||
service.updateNotification(
|
service.updateNotification(
|
||||||
target + ": " + sender + " " + action,
|
target + ": " + sender + " " + action,
|
||||||
service.getSettings().isVibrateHighlightEnabled(),
|
service.getSettings().isVibrateHighlightEnabled(),
|
||||||
service.getSettings().isSoundHighlightEnabled()
|
service.getSettings().isSoundHighlightEnabled()
|
||||||
);
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (mentioned) {
|
||||||
|
// highlight
|
||||||
|
message.setColor(Message.COLOR_RED);
|
||||||
conversation.setStatus(Conversation.STATUS_HIGHLIGHT);
|
conversation.setStatus(Conversation.STATUS_HIGHLIGHT);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -608,14 +611,14 @@ public class IRCConnection extends PircBot
|
|||||||
service.sendBroadcast(intent);
|
service.sendBroadcast(intent);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
service.updateNotification(
|
||||||
|
"<" + sender + "> " + text,
|
||||||
|
service.getSettings().isVibrateHighlightEnabled(),
|
||||||
|
service.getSettings().isSoundHighlightEnabled()
|
||||||
|
);
|
||||||
|
|
||||||
if (isMentioned(text)) {
|
if (isMentioned(text)) {
|
||||||
message.setColor(Message.COLOR_RED);
|
message.setColor(Message.COLOR_RED);
|
||||||
service.updateNotification(
|
|
||||||
"<" + sender + "> " + text,
|
|
||||||
service.getSettings().isVibrateHighlightEnabled(),
|
|
||||||
service.getSettings().isSoundHighlightEnabled()
|
|
||||||
);
|
|
||||||
|
|
||||||
conversation.setStatus(Conversation.STATUS_HIGHLIGHT);
|
conversation.setStatus(Conversation.STATUS_HIGHLIGHT);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user