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())) {
|
||||
// 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(
|
||||
|
|
Loading…
Reference in New Issue