mirror of
https://github.com/moparisthebest/Yaaic
synced 2025-02-16 23:10:11 -05:00
Merge branch 'master' of git://github.com/tkn/Yaaic
This commit is contained in:
commit
c866d7ef3e
@ -10,4 +10,4 @@
|
||||
# Indicates whether an apk should be generated for each density.
|
||||
split.density=false
|
||||
# Project target.
|
||||
target=android-3
|
||||
target=android-7
|
||||
|
@ -241,6 +241,10 @@ public class ConversationActivity extends Activity implements ServiceConnection,
|
||||
break;
|
||||
case R.id.close:
|
||||
Conversation conversationToClose = deckAdapter.getItem(deck.getSelectedItemPosition());
|
||||
// Make sure we part a channel when closing the channel conversation
|
||||
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());
|
||||
|
Loading…
Reference in New Issue
Block a user