mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-24 17:52:17 -05:00
fixed history deletion. fixed #780
This commit is contained in:
parent
a6cfbf2f2d
commit
2bd4621245
@ -2086,6 +2086,16 @@ public class XmppConnectionService extends Service implements OnPhoneContactsLoa
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void clearConversationHistory(final Conversation conversation) {
|
||||||
|
conversation.clearMessages();
|
||||||
|
new Thread(new Runnable() {
|
||||||
|
@Override
|
||||||
|
public void run() {
|
||||||
|
databaseBackend.deleteMessagesInConversation(conversation);
|
||||||
|
}
|
||||||
|
}).start();
|
||||||
|
}
|
||||||
|
|
||||||
public interface OnConversationUpdate {
|
public interface OnConversationUpdate {
|
||||||
public void onConversationUpdate();
|
public void onConversationUpdate();
|
||||||
}
|
}
|
||||||
|
@ -491,7 +491,7 @@ public class ConversationActivity extends XmppActivity implements
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onClick(DialogInterface dialog, int which) {
|
public void onClick(DialogInterface dialog, int which) {
|
||||||
conversation.clearMessages();
|
ConversationActivity.this.xmppConnectionService.clearConversationHistory(conversation);
|
||||||
if (endConversationCheckBox.isChecked()) {
|
if (endConversationCheckBox.isChecked()) {
|
||||||
endConversation(conversation);
|
endConversation(conversation);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user