use ESM, add server setup, cleanup
Change-Id: Iafac35c2082523ae98c31017d9bad5c4d6e18ef3
diff --git a/model/Account.js b/model/Account.js
index 1f70c33..46f96ed 100644
--- a/model/Account.js
+++ b/model/Account.js
@@ -1,4 +1,4 @@
-const Contact = require('./Contact')
+import Contact from './Contact.js'
class Account {
constructor(id, details, volatileDetails) {
@@ -52,6 +52,10 @@
return this.getRegisteredName() || this.getUri()
}
+ getDisplayNameNoFallback() {
+ return this.details["Account.displayName"] || this.getRegisteredName()
+ }
+
getConversationIds() {
return Object.keys(this.conversations)
}
@@ -91,4 +95,4 @@
Account.BOOL_TRUE = "true"
Account.BOOL_FALSE = "false"
-module.exports = Account
+export default Account