Update unread message count when returning from conversation/group.

Fixes bug #42.
This commit is contained in:
akwizgran
2014-02-27 11:57:51 +00:00
parent 094cda8573
commit c021bfd9aa
3 changed files with 5 additions and 11 deletions

View File

@@ -118,6 +118,10 @@ implements EventListener, OnClickListener, OnItemClickListener {
if(b == null) throw new IllegalStateException();
localAuthorId = new AuthorId(b);
Intent data = new Intent();
data.putExtra("briar.CONTACT_ID", id);
setResult(RESULT_OK, data);
LinearLayout layout = new LinearLayout(this);
layout.setLayoutParams(MATCH_MATCH);
layout.setOrientation(VERTICAL);
@@ -297,11 +301,6 @@ implements EventListener, OnClickListener, OnItemClickListener {
public void onPause() {
super.onPause();
db.removeListener(this);
}
@Override
public void onDestroy() {
super.onDestroy();
if(isFinishing()) markMessagesRead();
}