Commit 5c8721d7 authored by Filipe de Lima Brito's avatar Filipe de Lima Brito

Upadate AddDirectMessageDialogFragment.java

parent 14ddab86
......@@ -105,6 +105,7 @@ public class AddDirectMessageDialogFragment extends AbstractAddRoomDialogFragmen
protected Task<Void> getMethodCallForSubmitAction() {
String username =
((TextView) getDialog().findViewById(R.id.editor_username)).getText().toString();
return methodCall.createDirectMessage(username);
return methodCall.createDirectMessage(username)
.onSuccess(task -> null);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment