mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-10-15 15:30:36 +00:00
core: prohibit image previews when images are prohibited (#7296)
This commit is contained in:
@@ -815,6 +815,13 @@ isVoice = \case
|
||||
MCVoice {} -> True
|
||||
_ -> False
|
||||
|
||||
isMedia :: MsgContent -> Bool
|
||||
isMedia = \case
|
||||
MCImage {} -> True
|
||||
MCVideo {} -> True
|
||||
MCFile {} -> True
|
||||
_ -> False
|
||||
|
||||
isReport :: MsgContent -> Bool
|
||||
isReport = \case
|
||||
MCReport {} -> True
|
||||
|
||||
Reference in New Issue
Block a user