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 files changed, 2 insertions(+), 0 deletions(-)

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(
-- 
1.7.2.5

Reply via email to