Fix 'TypeError: Cannot readproperty 'messageSent' of undefined'.
authorCamila <hello@camila.codes>
Thu, 19 May 2022 11:28:59 +0000 (13:28 +0200)
committerMatthieu Gallien <matthieu_gallien@yahoo.fr>
Tue, 24 May 2022 09:51:55 +0000 (11:51 +0200)
Signed-off-by: Camila <hello@camila.codes>
src/gui/tray/ActivityItem.qml

index 196ce2086a3e928f6828759138bc159fa5e0e885..83631179024aeb7b5be9e91d78f015e6d7a5d34d 100644 (file)
@@ -80,7 +80,7 @@ MouseArea {
 
         Loader {
             id: talkReplyTextFieldLoader
-            active: root.isChatActivity && root.isTalkReplyPossible && root.activityData.messageSent === ""
+            active: root.isChatActivity && root.isTalkReplyPossible && model.messageSent === ""
             visible: root.isTalkReplyOptionVisible
 
             Layout.leftMargin: Style.trayListItemIconSize + activityContent.spacing