Minor improvements
This commit is contained in:
+1
-1
@@ -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,
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user