Minor improvements

This commit is contained in:
Tulir Asokan
2017-11-26 14:39:52 +02:00
parent b2a3954ad7
commit 02ab9bb6df
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -219,7 +219,7 @@ class Portal {
room = await user.intent.createRoom({
createAsClient: true,
options: {
name: user.getDisplayName(),
//name: user.getDisplayName(),
topic: "Telegram private chat",
visibility: "private",
invite,
+2 -2
View File
@@ -95,13 +95,13 @@ class TelegramPeer {
*/
async updateInfo(dialog) {
let changed = false
if (this.type === "channel" || this.type === "user") {
if (dialog.username && (this.type === "channel" || this.type === "user")) {
if (this.username !== dialog.username) {
this.username = dialog.username
changed = true
}
}
if (this.title !== dialog.title) {
if (dialog.title && this.title !== dialog.title) {
this.title = dialog.title
changed = true
}