aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firebase
diff options
context:
space:
mode:
authorGravatar Chen Liang <chliang@google.com>2018-06-19 10:54:41 -0700
committerGravatar GitHub <noreply@github.com>2018-06-19 10:54:41 -0700
commitfb9482c303a3f53c2f16eb41a8614f2d4302a9e3 (patch)
tree9bac5a863e48c10a13de912c02d032628a4dd5e9 /Firebase
parentbfdc10cbca18a6510055bd7f0661f0296adcc873 (diff)
remove the token check for topic subscription/unsubscription (#1422)
Diffstat (limited to 'Firebase')
-rw-r--r--Firebase/Messaging/FIRMessaging.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/Firebase/Messaging/FIRMessaging.m b/Firebase/Messaging/FIRMessaging.m
index 3c4d999..a97374b 100644
--- a/Firebase/Messaging/FIRMessaging.m
+++ b/Firebase/Messaging/FIRMessaging.m
@@ -695,7 +695,7 @@ NSString *const kFIRMessagingPlistAutoInitEnabled =
- (void)subscribeToTopic:(NSString *)topic
completion:(nullable FIRMessagingTopicOperationCompletion)completion {
- if (self.defaultFcmToken.length && topic.length) {
+ if (topic.length) {
NSString *normalizeTopic = [[self class ] normalizeTopic:topic];
if ([FIRMessagingPubSub hasTopicsPrefix:topic]) {
FIRMessagingLoggerWarn(kFIRMessagingMessageCodeTopicFormatIsDeprecated,
@@ -721,7 +721,7 @@ NSString *const kFIRMessagingPlistAutoInitEnabled =
- (void)unsubscribeFromTopic:(NSString *)topic
completion:(nullable FIRMessagingTopicOperationCompletion)completion {
- if (self.defaultFcmToken.length && topic.length) {
+ if (topic.length) {
NSString *normalizeTopic = [[self class] normalizeTopic:topic];
if ([FIRMessagingPubSub hasTopicsPrefix:topic]) {
FIRMessagingLoggerWarn(kFIRMessagingMessageCodeTopicFormatIsDeprecated,