   end
   defp html_escape(body, _), do: body
 
+  @doc """
+  Runs the configured message replacement patterns regex's against the
+  message body.
+  """
   def run_message_replacement_patterns(body, [_ | _] = patterns) do
     Enum.reduce(patterns, body, fn {re, sub}, body ->
       Regex.replace(re, body, sub)

    end
  end

  def encode_mentions(body) do
    Regex.replace ~r/(^|\s)@([\.a-zA-Z0-9-_]+)/, body,
      ~s'\\1<a rebel-channel="user" rebel-click="flex_call" data-id="members-list"' <>
      ~s' data-fun="flex_user_open" class="mention-link" data-username="\\2">@\\2</a>'
  end

  def encode_room_links(body) do
    Regex.replace ~r/(^|\s)#([\w]+)/, body, ~s'\\1<a class="mention-link" data-channel="\\2">#\\2</a>'
  end

  def message_formats(body, false) do
    body
    |> italic_formats()


  require Logger

  @doc """
  Get the names of the people who reacted to a specific reaction.
  """
  def get_reaction_people(reaction, user) do
    UccChat.ReactionService.get_reaction_people_names(reaction, user)
  end

  @doc false
  def file_upload_allowed_media_types do
    ""
  end

  @doc false
  def get_not_subscribed_templ(_mb) do
    %{}
  end
