mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
neochat, bump version (#11677)
This commit is contained in:
@@ -7,8 +7,7 @@ COPYRIGHT="2024 KDE Organisation"
|
||||
LICENSE="GNU GPL v3"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://download.kde.org/stable/release-service/$portVersion/src/neochat-$portVersion.tar.xz"
|
||||
CHECKSUM_SHA256="c88f8292575b7298cad7f426dec26aef33cd3da6dd1be65484436507b461eeb6"
|
||||
PATCHES="2047.patch"
|
||||
CHECKSUM_SHA256="381cb65eff65d58854ddbb7de77a56a6d9bf94ec55ccc73eb31d0d12976f4497"
|
||||
ADDITIONAL_FILES="neochat.rdef.in"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
@@ -1,27 +0,0 @@
|
||||
From 0d286db0c28beddf165e5b3e3a5d9a1510e1d357 Mon Sep 17 00:00:00 2001
|
||||
From: Tobias Fella <fella@posteo.de>
|
||||
Date: Wed, 11 Dec 2024 17:16:10 +0100
|
||||
Subject: [PATCH] Fix crash when sending messages
|
||||
|
||||
ECM recently started adding -fhardened, which makes us crash here since we're doing things that aren't valid, but happened to work out fine previously.
|
||||
---
|
||||
src/chatbarcache.cpp | 3 ++-
|
||||
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/chatbarcache.cpp b/src/chatbarcache.cpp
|
||||
index e87d272944..1161e042c9 100644
|
||||
--- a/src/chatbarcache.cpp
|
||||
+++ b/src/chatbarcache.cpp
|
||||
@@ -319,7 +319,8 @@ void ChatBarCache::postMessage()
|
||||
return;
|
||||
}
|
||||
|
||||
- room->postMessage(text(), sendText, *std::get<std::optional<Quotient::RoomMessageEvent::MsgType>>(result), replyId(), editId(), threadId());
|
||||
+ auto type = std::get<std::optional<Quotient::RoomMessageEvent::MsgType>>(result);
|
||||
+ room->postMessage(text(), sendText, type ? *type : Quotient::RoomMessageEvent::MsgType::Text, replyId(), editId(), threadId());
|
||||
clearCache();
|
||||
}
|
||||
|
||||
--
|
||||
GitLab
|
||||
|
||||
Reference in New Issue
Block a user