mirror of
https://github.com/nextcloud/talk-android
synced 2025-07-10 22:34:15 +01:00
Fix #292
This commit is contained in:
parent
37a4043302
commit
3e6b5f8382
@ -5,11 +5,12 @@
|
||||
<option name="myDefaultNotNull" value="android.support.annotation.NonNull" />
|
||||
<option name="myNullables">
|
||||
<value>
|
||||
<list size="4">
|
||||
<list size="5">
|
||||
<item index="0" class="java.lang.String" itemvalue="org.jetbrains.annotations.Nullable" />
|
||||
<item index="1" class="java.lang.String" itemvalue="javax.annotation.Nullable" />
|
||||
<item index="2" class="java.lang.String" itemvalue="edu.umd.cs.findbugs.annotations.Nullable" />
|
||||
<item index="3" class="java.lang.String" itemvalue="android.support.annotation.Nullable" />
|
||||
<item index="2" class="java.lang.String" itemvalue="javax.annotation.CheckForNull" />
|
||||
<item index="3" class="java.lang.String" itemvalue="edu.umd.cs.findbugs.annotations.Nullable" />
|
||||
<item index="4" class="java.lang.String" itemvalue="android.support.annotation.Nullable" />
|
||||
</list>
|
||||
</value>
|
||||
</option>
|
||||
@ -30,7 +31,4 @@
|
||||
<component name="ProjectType">
|
||||
<option name="id" value="Android" />
|
||||
</component>
|
||||
<component name="SvnBranchConfigurationManager">
|
||||
<option name="mySupportsUserInfoFilter" value="true" />
|
||||
</component>
|
||||
</project>
|
@ -156,7 +156,7 @@ public class CallNotificationController extends BaseController {
|
||||
|
||||
this.originalBundle = args;
|
||||
|
||||
credentials = ApiUtils.getCredentials(userBeingCalled.getUserId(), userBeingCalled.getToken());
|
||||
credentials = ApiUtils.getCredentials(userBeingCalled.getUsername(), userBeingCalled.getToken());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -200,7 +200,7 @@ public class ChatController extends BaseController implements MessagesListAdapte
|
||||
if (conversationUser.getUserId().equals("?")) {
|
||||
credentials = null;
|
||||
} else {
|
||||
credentials = ApiUtils.getCredentials(conversationUser.getUserId(), conversationUser.getToken());
|
||||
credentials = ApiUtils.getCredentials(conversationUser.getUsername(), conversationUser.getToken());
|
||||
}
|
||||
|
||||
if (args.containsKey(BundleKeys.KEY_FROM_NOTIFICATION_START_CALL)) {
|
||||
|
@ -208,7 +208,7 @@ public class ContactsController extends BaseController implements SearchView.OnQ
|
||||
currentUser = userUtils.getCurrentUser();
|
||||
|
||||
if (currentUser != null) {
|
||||
credentials = ApiUtils.getCredentials(currentUser.getUserId(), currentUser.getToken());
|
||||
credentials = ApiUtils.getCredentials(currentUser.getUsername(), currentUser.getToken());
|
||||
}
|
||||
|
||||
if (adapter == null) {
|
||||
|
@ -183,7 +183,7 @@ public class ConversationsListController extends BaseController implements Searc
|
||||
currentUser = userUtils.getCurrentUser();
|
||||
|
||||
if (currentUser != null) {
|
||||
credentials = ApiUtils.getCredentials(currentUser.getUserId(), currentUser.getToken());
|
||||
credentials = ApiUtils.getCredentials(currentUser.getUsername(), currentUser.getToken());
|
||||
}
|
||||
|
||||
if (currentUser != null) {
|
||||
|
@ -182,7 +182,7 @@ public class SettingsController extends BaseController {
|
||||
|
||||
private void getCurrentUser() {
|
||||
currentUser = userUtils.getCurrentUser();
|
||||
credentials = ApiUtils.getCredentials(currentUser.getUserId(), currentUser.getToken());
|
||||
credentials = ApiUtils.getCredentials(currentUser.getUsername(), currentUser.getToken());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -84,7 +84,7 @@ public class AccountRemovalWorker extends Worker {
|
||||
PushConfigurationState.class);
|
||||
PushConfigurationState finalPushConfigurationState = pushConfigurationState;
|
||||
|
||||
credentials = ApiUtils.getCredentials(userEntity.getUserId(), userEntity.getToken());
|
||||
credentials = ApiUtils.getCredentials(userEntity.getUsername(), userEntity.getToken());
|
||||
|
||||
ncApi = retrofit.newBuilder().client(okHttpClient.newBuilder().cookieJar(new
|
||||
JavaNetCookieJar(new CookieManager())).build()).build().create(NcApi.class);
|
||||
|
@ -402,7 +402,7 @@ public class NotificationWorker extends Worker {
|
||||
decryptedPushMessage = LoganSquare.parse(new String(decryptedSubject),
|
||||
DecryptedPushMessage.class);
|
||||
|
||||
credentials = ApiUtils.getCredentials(signatureVerification.getUserEntity().getUserId(),
|
||||
credentials = ApiUtils.getCredentials(signatureVerification.getUserEntity().getUsername(),
|
||||
signatureVerification.getUserEntity().getToken());
|
||||
|
||||
ncApi = retrofit.newBuilder().client(okHttpClient.newBuilder().cookieJar(new
|
||||
|
@ -93,7 +93,7 @@ public class MentionAutocompletePresenter extends RecyclerViewPresenter<Mention>
|
||||
if (!TextUtils.isEmpty(query)) {
|
||||
|
||||
adapter.setFilter(query.toString());
|
||||
ncApi.getMentionAutocompleteSuggestions(ApiUtils.getCredentials(currentUser.getUserId(), currentUser
|
||||
ncApi.getMentionAutocompleteSuggestions(ApiUtils.getCredentials(currentUser.getUsername(), currentUser
|
||||
.getToken()), ApiUtils.getUrlForMentionSuggestions(currentUser.getBaseUrl(), roomToken),
|
||||
query.toString(), null)
|
||||
.subscribeOn(Schedulers.newThread())
|
||||
|
@ -260,7 +260,7 @@ public class PushUtils {
|
||||
queryMap.put("devicePublicKey", publicKey);
|
||||
queryMap.put("proxyServer", proxyServer);
|
||||
|
||||
credentials = ApiUtils.getCredentials(userEntity.getUserId(), userEntity.getToken());
|
||||
credentials = ApiUtils.getCredentials(userEntity.getUsername(), userEntity.getToken());
|
||||
|
||||
String finalCredentials = credentials;
|
||||
ncApi.registerDeviceForNotificationsWithNextcloud(
|
||||
|
Loading…
Reference in New Issue
Block a user