 			if window.plugins?.socialsharing?
 				isSocialSharingOpen = true
 
-				if e.target and e.target.nodeName is 'A'
+				if e.target and e.target.nodeName is 'A' and /^https?:\/\/.+/.test(e.target.getAttribute('href'))
 					if message.attachments?
 						attachment = _.find message.attachments, (item) -> return item.title is e.target.innerText
 						if attachment?

		return Template.instance().selectable.get()

isSocialSharingOpen = false

Template.room.events
	"click, touchend": (e, t) ->

		, 100

	"touchstart .message": (e, t) ->
		touchMoved = false
		isSocialSharingOpen = false
		if e.originalEvent.touches.length isnt 1
			return
