From 778fb9de6c1b71bbc24d40c0f69830d6a820fb1e Mon Sep 17 00:00:00 2001 From: Sam Whited Date: Fri, 7 Nov 2014 09:32:22 -0500 Subject: [PATCH] Fix letter avatar selection in MUC --- .../eu/siacs/conversations/entities/Message.java | 1 + .../conversations/ui/adapter/MessageAdapter.java | 14 +------------- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/src/main/java/eu/siacs/conversations/entities/Message.java b/src/main/java/eu/siacs/conversations/entities/Message.java index 53df1ddf..f15b7527 100644 --- a/src/main/java/eu/siacs/conversations/entities/Message.java +++ b/src/main/java/eu/siacs/conversations/entities/Message.java @@ -249,6 +249,7 @@ public class Message extends AbstractEntity { } public Jid getPresence() { + // TODO: This is now the same as getCounterpart()... find usages in code and remove one? return counterpart; } diff --git a/src/main/java/eu/siacs/conversations/ui/adapter/MessageAdapter.java b/src/main/java/eu/siacs/conversations/ui/adapter/MessageAdapter.java index 5975f0f8..566a4782 100644 --- a/src/main/java/eu/siacs/conversations/ui/adapter/MessageAdapter.java +++ b/src/main/java/eu/siacs/conversations/ui/adapter/MessageAdapter.java @@ -1,18 +1,5 @@ package eu.siacs.conversations.ui.adapter; -import java.util.List; - -import eu.siacs.conversations.Config; -import eu.siacs.conversations.R; -import eu.siacs.conversations.entities.Contact; -import eu.siacs.conversations.entities.Conversation; -import eu.siacs.conversations.entities.Downloadable; -import eu.siacs.conversations.entities.Message; -import eu.siacs.conversations.entities.Message.ImageParams; -import eu.siacs.conversations.ui.ConversationActivity; -import eu.siacs.conversations.utils.UIHelper; -import eu.siacs.conversations.xmpp.jid.Jid; - import android.content.Intent; import android.graphics.Typeface; import android.text.Spannable; @@ -42,6 +29,7 @@ import eu.siacs.conversations.entities.Message; import eu.siacs.conversations.entities.Message.ImageParams; import eu.siacs.conversations.ui.ConversationActivity; import eu.siacs.conversations.utils.UIHelper; +import eu.siacs.conversations.xmpp.jid.Jid; public class MessageAdapter extends ArrayAdapter {