discourse/plugins/chat/app/models/chat/null_message.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
310 B
Ruby
Raw Normal View History

# frozen_string_literal: true
module Chat
class NullMessage < Chat::Message
def user
nil
end
def build_excerpt
nil
end
def id
nil
end
def created_at
Time.now # a proper NullTime object would be better, but this is good enough for now
end
end
end