mirror of
https://github.com/moparisthebest/Yaaic
synced 2024-11-16 05:55:08 -05:00
Ack new mentions on part or kick from a channel
If we don't do this, the user is left with a new message notification she can't clear, and we leak the Channel object.
This commit is contained in:
parent
5d5ce6445a
commit
d80f4133f1
@ -417,6 +417,7 @@ public class IRCConnection extends PircBot
|
|||||||
{
|
{
|
||||||
if (recipientNick.equals(getNick())) {
|
if (recipientNick.equals(getNick())) {
|
||||||
// We are kicked
|
// We are kicked
|
||||||
|
service.ackNewMentions(server.getId(), target);
|
||||||
server.removeConversation(target);
|
server.removeConversation(target);
|
||||||
|
|
||||||
Intent intent = Broadcast.createConversationIntent(
|
Intent intent = Broadcast.createConversationIntent(
|
||||||
@ -591,6 +592,7 @@ public class IRCConnection extends PircBot
|
|||||||
{
|
{
|
||||||
if (sender.equals(getNick())) {
|
if (sender.equals(getNick())) {
|
||||||
// We parted a channel
|
// We parted a channel
|
||||||
|
service.ackNewMentions(server.getId(), target);
|
||||||
server.removeConversation(target);
|
server.removeConversation(target);
|
||||||
|
|
||||||
Intent intent = Broadcast.createConversationIntent(
|
Intent intent = Broadcast.createConversationIntent(
|
||||||
|
Loading…
Reference in New Issue
Block a user