1
0
mirror of https://github.com/moparisthebest/Yaaic synced 2024-11-26 19:02:17 -05:00

Merged patch of tkn

This commit is contained in:
Sebastian Kaspari 2010-04-11 22:11:47 +02:00
parent c866d7ef3e
commit f0aabcde8b

View File

@ -245,12 +245,8 @@ public class ConversationActivity extends Activity implements ServiceConnection,
if (conversationToClose.getType() == Conversation.TYPE_CHANNEL) {
binder.getService().getConnection(serverId).partChannel(conversationToClose.getName());
}
if (conversationToClose.getType() != Conversation.TYPE_SERVER) {
if (conversationToClose.getType() == Conversation.TYPE_CHANNEL) {
binder.getService().getConnection(server.getId()).partChannel(conversationToClose.getName());
} else {
else if (conversationToClose.getType() == Conversation.TYPE_QUERY) {
onRemoveConversation(conversationToClose.getName());
}
} else {
Toast.makeText(this, "You can not close the server info window", Toast.LENGTH_SHORT).show();
}