Skip to content

Commit a5db63b

Browse files
committed
Correct types
1 parent a82fd21 commit a5db63b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/stream-chat/moderation.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ def add_custom_flags(entity_type, entity_id, entity_creator_id, moderation_paylo
240240
# @param [Array] flags Array of custom flags to add
241241
sig { params(message_id: String, flags: T::Array[T.untyped]).returns(StreamChat::StreamResponse) }
242242
def add_custom_message_flags(message_id, flags)
243-
add_custom_flags(MODERATION_ENTITY_TYPES[:message], message_id, '', {}, flags)
243+
add_custom_flags(T.must(MODERATION_ENTITY_TYPES[:message]), message_id, '', {}, flags)
244244
end
245245
end
246246
end

0 commit comments

Comments
 (0)