Skip to content

Commit

Permalink
Ack new mentions on part or kick from a channel
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
steven676 authored and pocmo committed Jul 3, 2011
1 parent 5d5ce64 commit d80f413
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions application/src/org/yaaic/irc/IRCConnection.java
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,7 @@ protected void onKick(String target, String kickerNick, String kickerLogin, Stri
{
if (recipientNick.equals(getNick())) {
// We are kicked
service.ackNewMentions(server.getId(), target);
server.removeConversation(target);

Intent intent = Broadcast.createConversationIntent(
Expand Down Expand Up @@ -591,6 +592,7 @@ protected void onPart(String target, String sender, String login, String hostnam
{
if (sender.equals(getNick())) {
// We parted a channel
service.ackNewMentions(server.getId(), target);
server.removeConversation(target);

Intent intent = Broadcast.createConversationIntent(
Expand Down

0 comments on commit d80f413

Please sign in to comment.