Compare commits
No commits in common. "a901af6be97669faa8a67fee41e2b60273fcd0cb" and "056346cee93327e797e24de3d1e263ab04d5cbff" have entirely different histories.
a901af6be9
...
056346cee9
|
@ -75,15 +75,6 @@ class ComposeAttachmentsViewController: UITableViewController {
|
||||||
tableView.dragInteractionEnabled = true
|
tableView.dragInteractionEnabled = true
|
||||||
tableView.dragDelegate = self
|
tableView.dragDelegate = self
|
||||||
tableView.dropDelegate = self
|
tableView.dropDelegate = self
|
||||||
|
|
||||||
if mastodonController.instance == nil {
|
|
||||||
mastodonController.getOwnInstance { [weak self] (_) in
|
|
||||||
guard let self = self else { return }
|
|
||||||
DispatchQueue.main.async {
|
|
||||||
self.updateAddAttachmentsButtonEnabled()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
override func viewWillAppear(_ animated: Bool) {
|
override func viewWillAppear(_ animated: Bool) {
|
||||||
|
@ -107,9 +98,7 @@ class ComposeAttachmentsViewController: UITableViewController {
|
||||||
}
|
}
|
||||||
|
|
||||||
private func isAddAttachmentsButtonEnabled() -> Bool {
|
private func isAddAttachmentsButtonEnabled() -> Bool {
|
||||||
switch mastodonController.instance?.instanceType {
|
switch mastodonController.instance.instanceType {
|
||||||
case nil:
|
|
||||||
return false
|
|
||||||
case .pleroma:
|
case .pleroma:
|
||||||
return true
|
return true
|
||||||
case .mastodon:
|
case .mastodon:
|
||||||
|
|
Loading…
Reference in New Issue