* Fix multiple chat loading bug * Open profile links in chat via new tab * Add unmount handling for chat * Add overscroll property to chat * Add channel_name to ChatChannel model * Create route and page for chatroom WIP * Expose ChatChannel id to live page * Implement multichannel support WIP * Implement chatroom page WIP * Add css for chatroom * Update chat's moderation * Refactor chat's message type * Swap the use of :message_markdown & :message_html * Add channel permissions WIP * Fix failing specs * Adjust json reponses * Add empty message prevention * Update participant error message * Change Workshop channel to General
13 lines
341 B
Ruby
13 lines
341 B
Ruby
FactoryBot.define do
|
|
factory :message do
|
|
message_markdown { Faker::Lorem.sentence }
|
|
chat_channel
|
|
|
|
trait :ignore_after_callback do
|
|
after(:build) do |message|
|
|
message.define_singleton_method(:evaluate_channel_permission) {}
|
|
message.define_singleton_method(:evaluate_markdown) {}
|
|
end
|
|
end
|
|
end
|
|
end
|