FEATURE: compose a new pre-filled message via URL

This commit is contained in:
Arpit Jalan
2015-11-24 18:16:42 +05:30
parent 8e95c6cf5b
commit 362c515f33
7 changed files with 47 additions and 3 deletions

View File

@ -75,7 +75,7 @@ class StaticController < ApplicationController
uri.path !~ /\./
destination = uri.path
destination = "#{uri.path}?#{uri.query}" if uri.path =~ /new-topic/
destination = "#{uri.path}?#{uri.query}" if uri.path =~ /new-topic/ || uri.path =~ /new-message/
end
rescue URI::InvalidURIError
# Do nothing if the URI is invalid