🚀 Launch 3.3.0+138 (SNAPSHOT) (HOTFIX)
This commit is contained in:
		@@ -8,7 +8,7 @@
 | 
			
		||||
import Foundation
 | 
			
		||||
 | 
			
		||||
func getAttachmentUrl(for identifier: String) -> String {
 | 
			
		||||
    let serverBaseUrl = "https://api.solian.app"
 | 
			
		||||
    let serverBaseUrl = getServerUrl()
 | 
			
		||||
    
 | 
			
		||||
    return identifier.starts(with: "http") ? identifier : "\(serverBaseUrl)/drive/files/\(identifier)"
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -26,6 +26,6 @@ extension UserDefaults {
 | 
			
		||||
    }
 | 
			
		||||
    
 | 
			
		||||
    func getServerUrl(forKey key: String = "app_server_url") -> String {
 | 
			
		||||
        return self.getFlutterValue(forKey: key) ?? "https://nt.solian.app"
 | 
			
		||||
        return self.getFlutterValue(forKey: key) ?? "https://api.solian.app"
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user