Minor improvements
This commit is contained in:
+1
-1
@@ -219,7 +219,7 @@ class Portal {
|
|||||||
room = await user.intent.createRoom({
|
room = await user.intent.createRoom({
|
||||||
createAsClient: true,
|
createAsClient: true,
|
||||||
options: {
|
options: {
|
||||||
name: user.getDisplayName(),
|
//name: user.getDisplayName(),
|
||||||
topic: "Telegram private chat",
|
topic: "Telegram private chat",
|
||||||
visibility: "private",
|
visibility: "private",
|
||||||
invite,
|
invite,
|
||||||
|
|||||||
@@ -95,13 +95,13 @@ class TelegramPeer {
|
|||||||
*/
|
*/
|
||||||
async updateInfo(dialog) {
|
async updateInfo(dialog) {
|
||||||
let changed = false
|
let changed = false
|
||||||
if (this.type === "channel" || this.type === "user") {
|
if (dialog.username && (this.type === "channel" || this.type === "user")) {
|
||||||
if (this.username !== dialog.username) {
|
if (this.username !== dialog.username) {
|
||||||
this.username = dialog.username
|
this.username = dialog.username
|
||||||
changed = true
|
changed = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (this.title !== dialog.title) {
|
if (dialog.title && this.title !== dialog.title) {
|
||||||
this.title = dialog.title
|
this.title = dialog.title
|
||||||
changed = true
|
changed = true
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user