|
|
@ -356,6 +356,7 @@ export class AppImManager { |
|
|
|
|
|
|
|
|
|
|
|
public contextMenu = document.getElementById('bubble-contextmenu') as HTMLDivElement; |
|
|
|
public contextMenu = document.getElementById('bubble-contextmenu') as HTMLDivElement; |
|
|
|
private contextMenuPin = this.contextMenu.querySelector('.menu-pin') as HTMLDivElement; |
|
|
|
private contextMenuPin = this.contextMenu.querySelector('.menu-pin') as HTMLDivElement; |
|
|
|
|
|
|
|
private contextMenuEdit = this.contextMenu.querySelector('.menu-edit') as HTMLDivElement; |
|
|
|
private contextMenuMsgID: number; |
|
|
|
private contextMenuMsgID: number; |
|
|
|
|
|
|
|
|
|
|
|
public replyElements: { |
|
|
|
public replyElements: { |
|
|
@ -569,6 +570,8 @@ export class AppImManager { |
|
|
|
|
|
|
|
|
|
|
|
let side = bubble.parentElement.classList.contains('in') ? 'left' : 'right'; |
|
|
|
let side = bubble.parentElement.classList.contains('in') ? 'left' : 'right'; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.contextMenuEdit.style.display = side == 'right' ? '' : 'none'; |
|
|
|
|
|
|
|
|
|
|
|
this.contextMenu.classList.remove('bottom-left', 'bottom-right'); |
|
|
|
this.contextMenu.classList.remove('bottom-left', 'bottom-right'); |
|
|
|
this.contextMenu.classList.add(side == 'left' ? 'bottom-right' : 'bottom-left'); |
|
|
|
this.contextMenu.classList.add(side == 'left' ? 'bottom-right' : 'bottom-left'); |
|
|
|
|
|
|
|
|
|
|
@ -1475,6 +1478,7 @@ export class AppImManager { |
|
|
|
let nameDiv = document.createElement('div'); |
|
|
|
let nameDiv = document.createElement('div'); |
|
|
|
nameDiv.classList.add('name'); |
|
|
|
nameDiv.classList.add('name'); |
|
|
|
nameDiv.innerHTML = 'Forwarded from ' + title; |
|
|
|
nameDiv.innerHTML = 'Forwarded from ' + title; |
|
|
|
|
|
|
|
nameDiv.style.color = appPeersManager.getPeerColorByID(message.fromID); |
|
|
|
bubble.append(nameDiv); |
|
|
|
bubble.append(nameDiv); |
|
|
|
} |
|
|
|
} |
|
|
|
} else { |
|
|
|
} else { |
|
|
@ -1545,6 +1549,7 @@ export class AppImManager { |
|
|
|
let nameDiv = document.createElement('div'); |
|
|
|
let nameDiv = document.createElement('div'); |
|
|
|
nameDiv.classList.add('name'); |
|
|
|
nameDiv.classList.add('name'); |
|
|
|
nameDiv.innerHTML = title; |
|
|
|
nameDiv.innerHTML = title; |
|
|
|
|
|
|
|
nameDiv.style.color = appPeersManager.getPeerColorByID(message.fromID); |
|
|
|
bubble.append(nameDiv); |
|
|
|
bubble.append(nameDiv); |
|
|
|
} else if(!message.reply_to_mid) { |
|
|
|
} else if(!message.reply_to_mid) { |
|
|
|
bubble.classList.add('hide-name'); |
|
|
|
bubble.classList.add('hide-name'); |
|
|
|