1
0
mirror of https://github.com/moparisthebest/Yaaic synced 2024-12-23 16:08:48 -05:00

Don't write name into ServerInfo view (as there's no name)

This commit is contained in:
Sebastian Kaspari 2010-03-10 22:48:21 +01:00
parent 6e99800a21
commit b8043453bd

View File

@ -54,9 +54,12 @@ public class MessageListAdapter extends BaseAdapter
// Render channel name as first message in channel
// XXX: There will be no messages shown if channel is empty, why?
Message header = new Message(conversation.getName());
header.setColor(Message.COLOR_RED);
messages.add(header.renderTextView(context));
if (conversation.getType() != Conversation.TYPE_SERVER) {
Message header = new Message(conversation.getName());
header.setColor(Message.COLOR_RED);
messages.add(header.renderTextView(context));
}
for (Message message : conversation.getHistory()) {
messages.add(message.renderTextView(context));