Skip to content

Commit

Permalink
perf(chatScroll): Fix connection warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
alexjba committed Jan 19, 2023
1 parent eb60d90 commit 4e3e245
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions ui/imports/shared/status/StatusChatInput.qml
Original file line number Diff line number Diff line change
Expand Up @@ -293,12 +293,12 @@ Rectangle {
enabled: control.emojiPopupOpened
target: emojiPopup

onEmojiSelected: function (text, atCursor) {
function onEmojiSelected(text, atCursor) {
insertInTextInput(atCursor ? messageInputField.cursorPosition : messageInputField.length, text)
emojiBtn.highlighted = false
messageInputField.forceActiveFocus();
}
onClosed: {
function onClosed() {
emojiBtn.highlighted = false
control.emojiPopupOpened = false
}
Expand All @@ -308,12 +308,12 @@ Rectangle {
enabled: control.stickersPopupOpened
target: control.stickersPopup

onStickerSelected: {
function onStickerSelected(hashId, packId, url) {
control.stickerSelected(hashId, packId, url)
control.hideExtendedArea();
messageInputField.forceActiveFocus();
}
onClosed: {
function onClosed() {
stickersBtn.highlighted = false
control.stickersPopupOpened = false
}
Expand Down Expand Up @@ -908,7 +908,7 @@ Rectangle {
enabled: control.isActiveChannel
target: Global.dragArea
ignoreUnknownSignals: true
onDroppedOnValidScreen: (drop) => {
function onDroppedOnValidScreen(drop) {
let validImages = validateImages(drop.urls)
if (validImages.length > 0) {
showImageArea(validImages)
Expand Down
8 changes: 4 additions & 4 deletions ui/imports/shared/views/chat/LinksMessageView.qml
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,16 @@ Column {

Connections {
target: localAccountSensitiveSettings
onWhitelistedUnfurlingSitesChanged: {
function onWhitelistedUnfurlingSitesChanged() {
fetched = false
linkMessageLoader.sourceComponent = undefined
linkMessageLoader.sourceComponent = linkMessageLoader.getSourceComponent()
}
onNeverAskAboutUnfurlingAgainChanged: {
function onNeverAskAboutUnfurlingAgainChanged() {
linkMessageLoader.sourceComponent = undefined
linkMessageLoader.sourceComponent = linkMessageLoader.getSourceComponent()
}
onDisplayChatImagesChanged: {
function onDisplayChatImagesChanged() {
linkMessageLoader.sourceComponent = undefined
linkMessageLoader.sourceComponent = linkMessageLoader.getSourceComponent()
}
Expand Down Expand Up @@ -106,7 +106,7 @@ Column {
id: linkCommunityFetchConnections
enabled: false
target: root.store.communitiesModuleInst
onCommunityAdded: {
function onCommunityAdded(communityId) {
if (communityId !== linkData.communityId) {
return
}
Expand Down

0 comments on commit 4e3e245

Please sign in to comment.