|
|
|
@ -2,6 +2,7 @@ import appMessagesManager from "../../lib/appManagers/appMessagesManager";
@@ -2,6 +2,7 @@ import appMessagesManager from "../../lib/appManagers/appMessagesManager";
|
|
|
|
|
import { PopupButton } from "."; |
|
|
|
|
import PopupPeer from "./peer"; |
|
|
|
|
import appPeersManager from "../../lib/appManagers/appPeersManager"; |
|
|
|
|
import rootScope from "../../lib/rootScope"; |
|
|
|
|
|
|
|
|
|
export default class PopupPinMessage { |
|
|
|
|
constructor(peerId: number, mid: number, unpin?: true, onConfirm?: () => void) { |
|
|
|
@ -68,6 +69,12 @@ export default class PopupPinMessage {
@@ -68,6 +69,12 @@ export default class PopupPinMessage {
|
|
|
|
|
} else { |
|
|
|
|
description = 'Would you like to pin this message?'; |
|
|
|
|
|
|
|
|
|
if(peerId === rootScope.myId) { |
|
|
|
|
buttons.push({ |
|
|
|
|
text: 'PIN', |
|
|
|
|
callback: () => callback() |
|
|
|
|
}); |
|
|
|
|
} else { |
|
|
|
|
buttons.push({ |
|
|
|
|
text: 'PIN JUST FOR ME', |
|
|
|
|
callback: () => callback(true) |
|
|
|
@ -79,6 +86,7 @@ export default class PopupPinMessage {
@@ -79,6 +86,7 @@ export default class PopupPinMessage {
|
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
buttons.push({ |
|
|
|
|
text: 'CANCEL', |
|
|
|
|