Do not show a notification for a conversation we are in

This commit is contained in:
Torsten Grote
2016-01-13 16:13:23 -02:00
parent a1bfe00f1b
commit e98677b2bb
3 changed files with 35 additions and 5 deletions

View File

@@ -122,6 +122,7 @@ public class ConversationActivity extends BriarActivity
public void onResume() {
super.onResume();
eventBus.addListener(this);
notificationManager.blockPrivateMessageNotification(contactId);
loadContactAndGroup();
loadHeaders();
@@ -133,6 +134,7 @@ public class ConversationActivity extends BriarActivity
public void onPause() {
super.onPause();
eventBus.removeListener(this);
notificationManager.unblockPrivateMessageNotification(contactId);
if (isFinishing()) markMessagesRead();
}