fix: throw error in getMessageReadyToDisappear

for community messages
pull/2971/head
William Grant 2 years ago
parent 3feb8cddf2
commit 50680bba7d

@ -448,10 +448,11 @@ export function getMessageReadyToDisappear(
}
if (conversationModel.isPublic()) {
window.log.warn(
"getMessageReadyToDisappear() Disappearing messages aren't supported in communities"
throw Error(
`getMessageReadyToDisappear() Disappearing messages aren't supported in communities. Message id: ${messageModel.get(
'id'
)}`
);
return messageModel;
}
const {

Loading…
Cancel
Save