1
0
mirror of https://github.com/moparisthebest/Yaaic synced 2024-12-24 08:28:49 -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 // Render channel name as first message in channel
// XXX: There will be no messages shown if channel is empty, why? // XXX: There will be no messages shown if channel is empty, why?
Message header = new Message(conversation.getName());
header.setColor(Message.COLOR_RED); if (conversation.getType() != Conversation.TYPE_SERVER) {
messages.add(header.renderTextView(context)); Message header = new Message(conversation.getName());
header.setColor(Message.COLOR_RED);
messages.add(header.renderTextView(context));
}
for (Message message : conversation.getHistory()) { for (Message message : conversation.getHistory()) {
messages.add(message.renderTextView(context)); messages.add(message.renderTextView(context));