Improve handling of connection loss
This commit is contained in:
parent
568ff92582
commit
d0a437f8fb
5 changed files with 69 additions and 87 deletions
|
@ -312,7 +312,11 @@ export class PostThreadViewModel {
|
|||
private async _resolveUri() {
|
||||
const urip = new AtUri(this.params.uri)
|
||||
if (!urip.host.startsWith('did:')) {
|
||||
urip.host = await this.rootStore.resolveName(urip.host)
|
||||
try {
|
||||
urip.host = await this.rootStore.resolveName(urip.host)
|
||||
} catch (e: any) {
|
||||
this.error = e.toString()
|
||||
}
|
||||
}
|
||||
runInAction(() => {
|
||||
this.resolvedUri = urip.toString()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue