disable file messages again

This commit is contained in:
Green Sky 2024-12-16 12:02:47 +01:00
parent 14f751af0b
commit 296d3a97ef
No known key found for this signature in database

View File

@ -89,7 +89,8 @@ void MessageFragmentStore::handleMessage(const Message3Handle& m) {
} }
// TODO: this is bad, we need a non persistence tag instead // TODO: this is bad, we need a non persistence tag instead
if (!m.any_of<Message::Components::MessageText, Message::Components::MessageFileObject>()) { //if (!m.any_of<Message::Components::MessageText, Message::Components::MessageFileObject>()) {
if (!m.any_of<Message::Components::MessageText>()) { // fix file message object storage first!
// skip everything else for now // skip everything else for now
return; return;
} }
@ -423,8 +424,9 @@ bool MessageFragmentStore::syncFragToStorage(ObjectHandle fh, Message3Registry&
// filter: require msg for now // filter: require msg for now
// this will be removed in the future // this will be removed in the future
//if (!reg.any_of<Message::Components::MessageText>(m)) { if (!reg.any_of<Message::Components::MessageText>(m)) {
if (!reg.any_of<Message::Components::MessageText, Message::Components::MessageFileObject>(m)) { // fix message file objects first
//if (!reg.any_of<Message::Components::MessageText, Message::Components::MessageFileObject>(m)) {
continue; continue;
} }