From d80f4133f1c8dd93440bf5e4bc0619e2ea19cbed Mon Sep 17 00:00:00 2001 From: Steven Luo Date: Sun, 3 Jul 2011 02:18:17 -0700 Subject: [PATCH] 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. --- application/src/org/yaaic/irc/IRCConnection.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/application/src/org/yaaic/irc/IRCConnection.java b/application/src/org/yaaic/irc/IRCConnection.java index 545e1de..50aa52f 100644 --- a/application/src/org/yaaic/irc/IRCConnection.java +++ b/application/src/org/yaaic/irc/IRCConnection.java @@ -417,6 +417,7 @@ public class IRCConnection extends PircBot { if (recipientNick.equals(getNick())) { // We are kicked + service.ackNewMentions(server.getId(), target); server.removeConversation(target); Intent intent = Broadcast.createConversationIntent( @@ -591,6 +592,7 @@ public class IRCConnection extends PircBot { if (sender.equals(getNick())) { // We parted a channel + service.ackNewMentions(server.getId(), target); server.removeConversation(target); Intent intent = Broadcast.createConversationIntent(