Browse Source

improvements & fix

marinofaggiana 4 years ago
parent
commit
6b27106084
2 changed files with 2 additions and 2 deletions
  1. 1 1
      iOSClient/AppDelegate.swift
  2. 1 1
      iOSClient/Networking/NCService.swift

+ 1 - 1
iOSClient/AppDelegate.swift

@@ -611,7 +611,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
                
                 vcAccountRequest.accounts = accounts
                 
-                let popup = NCPopupViewController(contentController: vcAccountRequest, popupWidth: 300, popupHeight: 300)
+                let popup = NCPopupViewController(contentController: vcAccountRequest, popupWidth: 300, popupHeight: 245)
                 popup.backgroundAlpha = 0.8
                 
                 UIApplication.shared.keyWindow?.rootViewController?.present(popup, animated: true)

+ 1 - 1
iOSClient/Networking/NCService.swift

@@ -78,7 +78,7 @@ class NCService: NSObject {
                     let fileNamePath = CCUtility.getDirectoryUserData() + "/" + stringUser + "-" + self.appDelegate.user + ".png"
                     NCCommunication.shared.downloadContent(serverUrl: avatarUrl) { (account, data, errorCode, errorMessage) in
                         
-                        if errorCode == 0 {
+                        if errorCode == 0 && account == self.appDelegate.account {
                             
                             DispatchQueue.global().async {