2020-06-17 19:18:31 +00:00
|
|
|
import QtQuick 2.13
|
|
|
|
import QtQuick.Controls 2.13
|
|
|
|
import QtQuick.Layouts 1.13
|
2020-05-27 21:09:12 +00:00
|
|
|
import "../../../shared"
|
2020-09-29 09:06:57 +00:00
|
|
|
import "../../../shared/status"
|
2020-05-25 20:34:26 +00:00
|
|
|
import "../../../imports"
|
2020-06-25 16:27:46 +00:00
|
|
|
import "./components"
|
2020-05-27 21:59:34 +00:00
|
|
|
import "./ChatColumn"
|
2020-09-29 09:06:57 +00:00
|
|
|
import "./ChatColumn/ChatComponents"
|
2020-07-20 19:29:57 +00:00
|
|
|
import "./data"
|
2020-10-28 07:44:09 +00:00
|
|
|
import "../Wallet"
|
2020-05-25 20:34:26 +00:00
|
|
|
|
2020-05-26 18:16:07 +00:00
|
|
|
StackLayout {
|
2020-07-10 15:37:23 +00:00
|
|
|
id: chatColumnLayout
|
2020-11-19 18:30:09 +00:00
|
|
|
property alias chatMessages: chatMessages
|
|
|
|
|
2020-05-26 18:16:07 +00:00
|
|
|
property int chatGroupsListViewCount: 0
|
2020-07-20 17:04:33 +00:00
|
|
|
|
2020-07-09 17:47:36 +00:00
|
|
|
property bool isReply: false
|
2020-07-20 17:04:33 +00:00
|
|
|
property bool isImage: false
|
|
|
|
|
|
|
|
property bool isExtendedInput: isReply || isImage
|
|
|
|
|
2020-07-15 16:19:25 +00:00
|
|
|
property bool isConnected: false
|
2020-08-10 13:06:46 +00:00
|
|
|
property string contactToRemove: ""
|
|
|
|
|
2020-09-23 07:28:20 +00:00
|
|
|
property var onActivated: function () {
|
|
|
|
chatInput.textInput.forceActiveFocus(Qt.MouseFocusReason)
|
|
|
|
}
|
|
|
|
|
2020-12-06 22:15:51 +00:00
|
|
|
property bool isBlocked: profileModel.contacts.isContactBlocked(chatsModel.activeChannel.id)
|
2020-12-03 21:58:36 +00:00
|
|
|
|
2020-12-02 09:10:22 +00:00
|
|
|
|
2020-09-23 07:28:20 +00:00
|
|
|
Component.onCompleted: {
|
|
|
|
chatInput.textInput.forceActiveFocus(Qt.MouseFocusReason)
|
|
|
|
}
|
|
|
|
|
2020-05-26 18:16:07 +00:00
|
|
|
Layout.fillHeight: true
|
|
|
|
Layout.fillWidth: true
|
2020-05-28 12:56:43 +00:00
|
|
|
Layout.minimumWidth: 300
|
2020-05-25 20:34:26 +00:00
|
|
|
|
2020-06-05 14:50:39 +00:00
|
|
|
currentIndex: chatsModel.activeChannelIndex > -1 && chatGroupsListViewCount > 0 ? 0 : 1
|
2020-05-26 15:55:32 +00:00
|
|
|
|
2021-02-03 21:38:05 +00:00
|
|
|
|
2021-02-15 16:29:16 +00:00
|
|
|
property var idMap: ({})
|
2021-02-03 21:38:05 +00:00
|
|
|
|
|
|
|
function addSuggestionFromMessageList(i){
|
|
|
|
const contactAddr = chatsModel.messageList.getMessageData(i, "publicKey");
|
|
|
|
if(idMap[contactAddr]) return;
|
|
|
|
chatInput.suggestionsList.append({
|
|
|
|
alias: chatsModel.messageList.getMessageData(i, "alias"),
|
|
|
|
ensName: chatsModel.messageList.getMessageData(i, "ensName"),
|
|
|
|
address: contactAddr,
|
|
|
|
identicon: chatsModel.messageList.getMessageData(i, "identicon"),
|
|
|
|
localNickname: chatsModel.messageList.getMessageData(i, "localName")
|
|
|
|
});
|
|
|
|
idMap[contactAddr] = true;
|
|
|
|
}
|
|
|
|
|
2021-02-03 20:13:05 +00:00
|
|
|
function populateSuggestions(){
|
|
|
|
chatInput.suggestionsList.clear()
|
|
|
|
const len = chatsModel.suggestionList.rowCount()
|
|
|
|
|
2021-02-03 21:38:05 +00:00
|
|
|
idMap = {}
|
2021-02-03 20:13:05 +00:00
|
|
|
|
|
|
|
for (let i = 0; i < len; i++) {
|
|
|
|
const contactAddr = chatsModel.suggestionList.rowData(i, "address");
|
|
|
|
if(idMap[contactAddr]) continue;
|
|
|
|
chatInput.suggestionsList.append({
|
|
|
|
alias: chatsModel.suggestionList.rowData(i, "alias"),
|
|
|
|
ensName: chatsModel.suggestionList.rowData(i, "ensName"),
|
|
|
|
address: contactAddr,
|
|
|
|
identicon: chatsModel.suggestionList.rowData(i, "identicon"),
|
|
|
|
localNickname: chatsModel.suggestionList.rowData(i, "localNickname")
|
|
|
|
});
|
|
|
|
idMap[contactAddr] = true;
|
|
|
|
}
|
|
|
|
const len2 = chatsModel.messageList.rowCount();
|
2021-02-15 16:29:16 +00:00
|
|
|
for (let f = 0; f < len2; f++) {
|
|
|
|
addSuggestionFromMessageList(f);
|
2021-02-03 20:13:05 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2020-09-23 16:13:39 +00:00
|
|
|
function showReplyArea() {
|
2020-07-20 17:04:33 +00:00
|
|
|
isReply = true;
|
|
|
|
isImage = false;
|
2020-09-29 09:06:57 +00:00
|
|
|
let replyMessageIndex = chatsModel.messageList.getMessageIndex(SelectedMessage.messageId);
|
|
|
|
if (replyMessageIndex === -1) return;
|
|
|
|
|
|
|
|
let userName = chatsModel.messageList.getMessageData(replyMessageIndex, "userName")
|
|
|
|
let message = chatsModel.messageList.getMessageData(replyMessageIndex, "message")
|
|
|
|
let identicon = chatsModel.messageList.getMessageData(replyMessageIndex, "identicon")
|
|
|
|
|
|
|
|
chatInput.showReplyArea(userName, message, identicon)
|
2020-07-20 17:04:33 +00:00
|
|
|
}
|
|
|
|
|
2020-09-29 09:06:57 +00:00
|
|
|
function requestAddressForTransaction(address, amount, tokenAddress, tokenDecimals = 18) {
|
2020-10-12 11:44:04 +00:00
|
|
|
amount = utilsModel.eth2Wei(amount.toString(), tokenDecimals)
|
2020-12-06 15:24:28 +00:00
|
|
|
chatsModel.transactions.requestAddress(chatsModel.activeChannel.id,
|
|
|
|
address,
|
|
|
|
amount,
|
|
|
|
tokenAddress)
|
2020-11-03 10:29:56 +00:00
|
|
|
txModalLoader.close()
|
2020-07-20 17:04:33 +00:00
|
|
|
}
|
2020-09-29 09:06:57 +00:00
|
|
|
function requestTransaction(address, amount, tokenAddress, tokenDecimals = 18) {
|
2020-10-12 11:44:04 +00:00
|
|
|
amount = utilsModel.eth2Wei(amount.toString(), tokenDecimals)
|
2020-12-06 15:24:28 +00:00
|
|
|
chatsModel.transactions.request(chatsModel.activeChannel.id,
|
2020-09-29 09:06:57 +00:00
|
|
|
address,
|
|
|
|
amount,
|
|
|
|
tokenAddress)
|
2020-11-03 10:29:56 +00:00
|
|
|
txModalLoader.close()
|
2020-07-20 17:04:33 +00:00
|
|
|
}
|
2020-09-29 09:06:57 +00:00
|
|
|
|
2020-12-03 21:58:36 +00:00
|
|
|
Connections {
|
2020-12-06 22:15:51 +00:00
|
|
|
target: profileModel.contacts
|
2020-12-03 21:58:36 +00:00
|
|
|
onContactListChanged: {
|
2020-12-06 22:15:51 +00:00
|
|
|
isBlocked = profileModel.contacts.isContactBlocked(chatsModel.activeChannel.id);
|
2020-12-03 21:58:36 +00:00
|
|
|
}
|
|
|
|
}
|
2020-07-20 17:04:33 +00:00
|
|
|
|
2020-05-26 18:16:07 +00:00
|
|
|
ColumnLayout {
|
2020-07-09 17:47:36 +00:00
|
|
|
spacing: 0
|
2020-05-26 15:55:32 +00:00
|
|
|
|
2020-05-26 18:16:07 +00:00
|
|
|
RowLayout {
|
|
|
|
id: chatTopBar
|
|
|
|
Layout.alignment: Qt.AlignHCenter | Qt.AlignTop
|
2020-05-26 15:55:32 +00:00
|
|
|
Layout.fillWidth: true
|
2020-05-26 18:16:07 +00:00
|
|
|
z: 60
|
2020-07-09 17:47:36 +00:00
|
|
|
spacing: 0
|
2020-07-15 16:19:25 +00:00
|
|
|
TopBar {
|
|
|
|
id: topBar
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
RowLayout {
|
|
|
|
Layout.alignment: Qt.AlignHCenter
|
|
|
|
Layout.fillWidth: true
|
|
|
|
z: 60
|
|
|
|
Rectangle {
|
2020-07-24 14:33:17 +00:00
|
|
|
Component.onCompleted: {
|
2020-07-24 14:33:17 +00:00
|
|
|
isConnected = chatsModel.isOnline
|
2020-07-24 14:33:17 +00:00
|
|
|
if(!isConnected){
|
|
|
|
connectedStatusRect.visible = true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-07-15 16:19:25 +00:00
|
|
|
id: connectedStatusRect
|
|
|
|
Layout.fillWidth: true
|
|
|
|
height: 40;
|
|
|
|
color: isConnected ? Style.current.green : Style.current.darkGrey
|
|
|
|
visible: false
|
|
|
|
Text {
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
|
anchors.verticalCenter: parent.verticalCenter
|
|
|
|
color: Style.current.white
|
|
|
|
id: connectedStatusLbl
|
|
|
|
text: isConnected ?
|
2020-08-26 15:52:26 +00:00
|
|
|
//% "Connected"
|
|
|
|
qsTrId("connected") :
|
|
|
|
//% "Disconnected"
|
|
|
|
qsTrId("disconnected")
|
2020-07-15 16:19:25 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Timer {
|
|
|
|
id: timer
|
|
|
|
}
|
|
|
|
|
|
|
|
Connections {
|
|
|
|
target: chatsModel
|
|
|
|
onOnlineStatusChanged: {
|
2020-07-24 14:33:17 +00:00
|
|
|
if (connected == isConnected) return;
|
|
|
|
isConnected = connected;
|
|
|
|
if(isConnected){
|
2020-07-15 16:19:25 +00:00
|
|
|
timer.setTimeout(function(){
|
|
|
|
connectedStatusRect.visible = false;
|
|
|
|
}, 5000);
|
|
|
|
} else {
|
|
|
|
connectedStatusRect.visible = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-05-25 20:34:26 +00:00
|
|
|
}
|
|
|
|
|
2020-05-26 18:16:07 +00:00
|
|
|
RowLayout {
|
|
|
|
id: chatContainer
|
2020-05-25 20:34:26 +00:00
|
|
|
Layout.fillWidth: true
|
|
|
|
Layout.fillHeight: true
|
2020-05-26 18:16:07 +00:00
|
|
|
Layout.alignment: Qt.AlignLeft | Qt.AlignTop
|
2020-07-09 17:47:36 +00:00
|
|
|
spacing: 0
|
2020-05-28 17:34:54 +00:00
|
|
|
ChatMessages {
|
2020-07-09 17:47:36 +00:00
|
|
|
id: chatMessages
|
2020-05-28 17:34:54 +00:00
|
|
|
messageList: chatsModel.messageList
|
|
|
|
}
|
2020-05-27 22:59:17 +00:00
|
|
|
}
|
2020-05-25 20:34:26 +00:00
|
|
|
|
2020-11-16 12:32:56 +00:00
|
|
|
StatusImageModal {
|
2020-09-12 18:22:07 +00:00
|
|
|
id: imagePopup
|
|
|
|
}
|
|
|
|
|
2020-07-20 19:29:57 +00:00
|
|
|
EmojiReactions {
|
|
|
|
id: reactionModel
|
|
|
|
}
|
|
|
|
|
2020-08-03 17:17:03 +00:00
|
|
|
MessageContextMenu {
|
2020-07-09 17:47:36 +00:00
|
|
|
id: messageContextMenu
|
|
|
|
}
|
2021-02-03 20:13:05 +00:00
|
|
|
|
2020-07-14 11:40:58 +00:00
|
|
|
Connections {
|
|
|
|
target: chatsModel
|
|
|
|
onActiveChannelChanged: {
|
2021-02-03 20:13:05 +00:00
|
|
|
chatInput.suggestions.hide();
|
2021-02-03 21:38:05 +00:00
|
|
|
chatInput.textInput.forceActiveFocus(Qt.MouseFocusReason)
|
2021-02-03 20:13:05 +00:00
|
|
|
populateSuggestions();
|
|
|
|
}
|
|
|
|
onMessagePushed: {
|
2021-02-03 21:38:05 +00:00
|
|
|
addSuggestionFromMessageList(messageIndex);
|
2020-07-14 11:40:58 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-06-24 03:23:49 +00:00
|
|
|
Rectangle {
|
2020-07-09 17:47:36 +00:00
|
|
|
id: inputArea
|
2020-06-24 03:23:49 +00:00
|
|
|
Layout.alignment: Qt.AlignHCenter | Qt.AlignBottom
|
2020-05-25 20:34:26 +00:00
|
|
|
Layout.fillWidth: true
|
2020-06-24 03:23:49 +00:00
|
|
|
Layout.preferredWidth: parent.width
|
2020-09-29 09:06:57 +00:00
|
|
|
height: chatInput.height
|
2020-06-24 03:23:49 +00:00
|
|
|
Layout.preferredHeight: height
|
2020-09-29 09:06:57 +00:00
|
|
|
color: "transparent"
|
2020-07-09 17:47:36 +00:00
|
|
|
|
2020-12-01 17:18:49 +00:00
|
|
|
Connections {
|
|
|
|
target: chatsModel
|
|
|
|
onLoadingMessagesChanged:
|
|
|
|
if(value){
|
|
|
|
loadingMessagesIndicator.active = true
|
|
|
|
} else {
|
|
|
|
timer.setTimeout(function(){
|
|
|
|
loadingMessagesIndicator.active = false;
|
|
|
|
}, 5000);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-09-07 11:47:00 +00:00
|
|
|
Loader {
|
2020-12-01 17:18:49 +00:00
|
|
|
id: loadingMessagesIndicator
|
2020-09-07 11:47:00 +00:00
|
|
|
active: chatsModel.loadingMessages
|
|
|
|
sourceComponent: loadingIndicator
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.bottom: chatInput.top
|
|
|
|
anchors.rightMargin: Style.current.padding
|
|
|
|
anchors.bottomMargin: Style.current.padding
|
|
|
|
}
|
|
|
|
|
|
|
|
Component {
|
|
|
|
id: loadingIndicator
|
2021-02-08 12:16:28 +00:00
|
|
|
LoadingAnimation {}
|
2020-09-07 11:47:00 +00:00
|
|
|
}
|
|
|
|
|
2020-09-29 09:06:57 +00:00
|
|
|
StatusChatInput {
|
2020-07-14 11:40:58 +00:00
|
|
|
id: chatInput
|
2020-11-16 19:42:53 +00:00
|
|
|
visible: {
|
2020-12-11 20:38:10 +00:00
|
|
|
const community = chatsModel.activeCommunity
|
|
|
|
if (chatsModel.activeChannel.chatType !== Constants.chatTypePrivateGroupChat &&
|
|
|
|
(!community.active ||
|
|
|
|
community.access === Constants.communityChatPublicAccess ||
|
|
|
|
community.admin)) {
|
|
|
|
return true
|
|
|
|
}
|
2020-11-16 19:42:53 +00:00
|
|
|
return chatsModel.activeChannel.isMember
|
|
|
|
}
|
2020-12-02 09:10:22 +00:00
|
|
|
enabled: !isBlocked
|
2020-12-03 21:58:36 +00:00
|
|
|
chatInputPlaceholder: isBlocked ?
|
|
|
|
qsTr("This user has been blocked.") :
|
|
|
|
qsTr("Type a message.")
|
2020-09-29 09:06:57 +00:00
|
|
|
anchors.bottom: parent.bottom
|
2020-12-06 15:24:28 +00:00
|
|
|
recentStickers: chatsModel.stickers.recent
|
|
|
|
stickerPackList: chatsModel.stickers.stickerPacks
|
2020-09-29 09:06:57 +00:00
|
|
|
chatType: chatsModel.activeChannel.chatType
|
|
|
|
onSendTransactionCommandButtonClicked: {
|
2020-10-28 07:44:09 +00:00
|
|
|
if (chatsModel.activeChannel.ensVerified) {
|
|
|
|
txModalLoader.sourceComponent = cmpSendTransactionWithEns
|
|
|
|
} else {
|
|
|
|
txModalLoader.sourceComponent = cmpSendTransactionNoEns
|
|
|
|
}
|
|
|
|
txModalLoader.item.open()
|
|
|
|
}
|
|
|
|
onReceiveTransactionCommandButtonClicked: {
|
|
|
|
txModalLoader.sourceComponent = cmpReceiveTransaction
|
|
|
|
txModalLoader.item.open()
|
|
|
|
}
|
|
|
|
onStickerSelected: {
|
2020-12-06 15:24:28 +00:00
|
|
|
chatsModel.stickers.send(hashId, packId)
|
2020-10-28 07:44:09 +00:00
|
|
|
}
|
2020-12-07 14:59:24 +00:00
|
|
|
onSendMessage: {
|
|
|
|
if (chatInput.fileUrls.length > 0){
|
2020-12-17 10:40:37 +00:00
|
|
|
chatsModel.sendImage(chatInput.fileUrls[0], false);
|
2020-12-07 14:59:24 +00:00
|
|
|
}
|
|
|
|
var msg = chatsModel.plainText(Emoji.deparse(chatInput.textInput.text))
|
|
|
|
if (msg.length > 0){
|
|
|
|
msg = chatInput.interpretMessage(msg)
|
2020-12-21 20:25:37 +00:00
|
|
|
chatsModel.sendMessage(msg, chatInput.isReply ? SelectedMessage.messageId : "", Utils.isOnlyEmoji(msg) ? Constants.emojiType : Constants.messageType, false);
|
2021-02-08 12:38:55 +00:00
|
|
|
chatInput.textInput.textFormat = TextEdit.PlainText;
|
2020-12-07 14:59:24 +00:00
|
|
|
if(event) event.accepted = true
|
|
|
|
chatInput.messageSound.stop()
|
|
|
|
Qt.callLater(chatInput.messageSound.play);
|
2021-02-08 12:38:55 +00:00
|
|
|
|
|
|
|
Qt.callLater(function(){
|
|
|
|
chatInput.textInput.clear();
|
|
|
|
chatInput.textInput.textFormat = TextEdit.RichText;
|
|
|
|
});
|
|
|
|
|
2020-12-07 14:59:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
2020-10-28 07:44:09 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
EmptyChat {}
|
|
|
|
|
|
|
|
Loader {
|
|
|
|
id: txModalLoader
|
2020-11-03 10:29:56 +00:00
|
|
|
function close() {
|
|
|
|
if (!this.item) {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
this.item.close()
|
|
|
|
this.closed()
|
|
|
|
}
|
|
|
|
function closed() {
|
|
|
|
this.sourceComponent = undefined
|
|
|
|
}
|
2020-10-28 07:44:09 +00:00
|
|
|
}
|
|
|
|
Component {
|
|
|
|
id: cmpSendTransactionNoEns
|
|
|
|
ChatCommandModal {
|
|
|
|
id: sendTransactionNoEns
|
2020-11-03 10:29:56 +00:00
|
|
|
onClosed: {
|
|
|
|
txModalLoader.closed()
|
|
|
|
}
|
2020-10-28 07:44:09 +00:00
|
|
|
sendChatCommand: chatColumnLayout.requestAddressForTransaction
|
|
|
|
isRequested: false
|
|
|
|
//% "Send"
|
|
|
|
commandTitle: qsTrId("command-button-send")
|
|
|
|
title: commandTitle
|
|
|
|
//% "Request Address"
|
|
|
|
finalButtonLabel: qsTrId("request-address")
|
|
|
|
selectRecipient.selectedRecipient: {
|
|
|
|
return {
|
|
|
|
address: Constants.zeroAddress, // Setting as zero address since we don't have the address yet
|
2020-10-29 23:08:07 +00:00
|
|
|
alias: chatsModel.activeChannel.alias,
|
2020-10-28 07:44:09 +00:00
|
|
|
identicon: chatsModel.activeChannel.identicon,
|
|
|
|
name: chatsModel.activeChannel.name,
|
|
|
|
type: RecipientSelector.Type.Contact
|
|
|
|
}
|
|
|
|
}
|
|
|
|
selectRecipient.selectedType: RecipientSelector.Type.Contact
|
|
|
|
selectRecipient.readOnly: true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
Component {
|
|
|
|
id: cmpReceiveTransaction
|
|
|
|
ChatCommandModal {
|
|
|
|
id: receiveTransaction
|
2020-11-03 10:29:56 +00:00
|
|
|
onClosed: {
|
|
|
|
txModalLoader.closed()
|
|
|
|
}
|
2020-10-28 07:44:09 +00:00
|
|
|
sendChatCommand: chatColumnLayout.requestTransaction
|
|
|
|
isRequested: true
|
|
|
|
//% "Request"
|
|
|
|
commandTitle: qsTrId("wallet-request")
|
|
|
|
title: commandTitle
|
|
|
|
//% "Request"
|
|
|
|
finalButtonLabel: qsTrId("wallet-request")
|
|
|
|
selectRecipient.selectedRecipient: {
|
|
|
|
return {
|
|
|
|
address: Constants.zeroAddress, // Setting as zero address since we don't have the address yet
|
2020-10-29 23:08:07 +00:00
|
|
|
alias: chatsModel.activeChannel.alias,
|
2020-10-28 07:44:09 +00:00
|
|
|
identicon: chatsModel.activeChannel.identicon,
|
|
|
|
name: chatsModel.activeChannel.name,
|
|
|
|
type: RecipientSelector.Type.Contact
|
2020-09-29 09:06:57 +00:00
|
|
|
}
|
2020-10-28 07:44:09 +00:00
|
|
|
}
|
|
|
|
selectRecipient.selectedType: RecipientSelector.Type.Contact
|
|
|
|
selectRecipient.readOnly: true
|
2020-05-25 20:34:26 +00:00
|
|
|
}
|
2020-05-26 18:16:07 +00:00
|
|
|
}
|
2020-10-28 07:44:09 +00:00
|
|
|
Component {
|
|
|
|
id: cmpSendTransactionWithEns
|
|
|
|
SendModal {
|
|
|
|
id: sendTransactionWithEns
|
|
|
|
onOpened: {
|
|
|
|
walletModel.getGasPricePredictions()
|
|
|
|
}
|
2020-11-03 10:29:56 +00:00
|
|
|
onClosed: {
|
|
|
|
txModalLoader.closed()
|
|
|
|
}
|
2020-10-28 07:44:09 +00:00
|
|
|
selectRecipient.readOnly: true
|
|
|
|
selectRecipient.selectedRecipient: {
|
|
|
|
return {
|
|
|
|
address: "",
|
2020-10-29 23:08:07 +00:00
|
|
|
alias: chatsModel.activeChannel.alias,
|
2020-10-28 07:44:09 +00:00
|
|
|
identicon: chatsModel.activeChannel.identicon,
|
|
|
|
name: chatsModel.activeChannel.name,
|
2020-10-29 23:08:07 +00:00
|
|
|
type: RecipientSelector.Type.Contact,
|
2020-10-28 07:44:09 +00:00
|
|
|
ensVerified: true
|
|
|
|
}
|
|
|
|
}
|
2020-10-29 23:08:07 +00:00
|
|
|
selectRecipient.selectedType: RecipientSelector.Type.Contact
|
2020-10-28 07:44:09 +00:00
|
|
|
}
|
2020-09-29 09:06:57 +00:00
|
|
|
}
|
2020-05-25 20:34:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*##^##
|
|
|
|
Designer {
|
2020-05-27 17:26:21 +00:00
|
|
|
D{i:0;formeditorColor:"#ffffff";height:770;width:800}
|
2020-05-25 20:34:26 +00:00
|
|
|
}
|
|
|
|
##^##*/
|