1
0
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:
Steven Luo 2011-07-03 02:18:17 -07:00 committed by Sebastian Kaspari
parent 5d5ce6445a
commit d80f4133f1

View File

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