Skip to content
This repository has been archived by the owner on Jul 21, 2020. It is now read-only.

Commit

Permalink
Re-added a message packet initializer
Browse files Browse the repository at this point in the history
  • Loading branch information
jackcook committed Aug 16, 2016
1 parent d680a3c commit 856a5dd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions BeamAPI.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "BeamAPI"
s.version = "1.1"
s.version = "1.1.1"
s.summary = "An interface to communicate with Beam's backend."
s.homepage = "https://github.com/WatchBeam/beam-client-swift"
s.license = "MIT"
Expand All @@ -9,7 +9,7 @@ Pod::Spec.new do |s|
s.requires_arc = true
s.ios.deployment_target = "8.2"
s.tvos.deployment_target = "9.0"
s.source = { :git => "https://github.com/WatchBeam/beam-client-swift.git", :tag => "1.1" }
s.source = { :git => "https://github.com/WatchBeam/beam-client-swift.git", :tag => "1.1.1" }
s.source_files = "Pod/Classes/**/*"

s.dependency "Starscream", "~> 1.1"
Expand Down
6 changes: 6 additions & 0 deletions Pod/Classes/Models/Chat/ChatMessagePacket.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ public class ChatMessagePacket: ChatPacket, ChatSendable {
super.init(data: ["data": data])
}

/// Initializes a chat message packet with a message string.
public init(message: String) {
messageText = message.stringByReplacingOccurrencesOfString("\"", withString: "\\\"")
super.init()
}

public var identifier: String {
return "msg"
}
Expand Down

0 comments on commit 856a5dd

Please sign in to comment.