Skip to content

Commit 921d4a6

Browse files
authored
Send asset: messages through embed hook
1 parent 1b58096 commit 921d4a6

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lua/custom_chat/client/block_types.lua

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -505,10 +505,7 @@ blocks["url"] = function( value, ctx )
505505

506506
local lastMessage = CustomChat.lastReceivedMessage
507507

508-
if value:sub( 1, 8 ) == "asset://" then
509-
canEmbed = true
510-
511-
elseif lastMessage and IsValid( lastMessage.speaker ) then
508+
if lastMessage and IsValid( lastMessage.speaker ) then
512509
canEmbed = hook.Run( "CanEmbedCustomChat", lastMessage.speaker, value, urlType ) ~= false
513510
end
514511

0 commit comments

Comments
 (0)