@@ -139,7 +139,7 @@ - (void)onReceiveFriendNotificationEvent:(JMSGFriendNotificationEvent *)event {
139139 [[NSNotificationCenter defaultCenter ] postNotificationName: kJJMessageContactNotify
140140 object: @{
141141 @" type" :@" invite_received" ,
142- @" reason" :[friendEvent eventDescription ],
142+ @" reason" :[friendEvent eventDescription ] ?: @" " ,
143143 @" fromUsername" :[friendEvent getFromUser ].username ,
144144 @" fromUserAppKey" :user.appKey }];
145145 }
@@ -150,7 +150,7 @@ - (void)onReceiveFriendNotificationEvent:(JMSGFriendNotificationEvent *)event {
150150 [[NSNotificationCenter defaultCenter ] postNotificationName: kJJMessageContactNotify
151151 object: @{
152152 @" type" :@" invite_accepted" ,
153- @" reason" :[friendEvent eventDescription ],
153+ @" reason" :[friendEvent eventDescription ] ?: @" " ,
154154 @" fromUsername" :[friendEvent getFromUser ].username ,
155155 @" fromUserAppKey" :user.appKey }];
156156 }
@@ -161,7 +161,7 @@ - (void)onReceiveFriendNotificationEvent:(JMSGFriendNotificationEvent *)event {
161161 [[NSNotificationCenter defaultCenter ] postNotificationName: kJJMessageContactNotify
162162 object: @{
163163 @" type" :@" invite_declined" ,
164- @" reason" :[friendEvent eventDescription ],
164+ @" reason" :[friendEvent eventDescription ] ?: @" " ,
165165 @" fromUsername" :[friendEvent getFromUser ].username ,
166166 @" fromUserAppKey" :user.appKey }];
167167 }
@@ -172,7 +172,7 @@ - (void)onReceiveFriendNotificationEvent:(JMSGFriendNotificationEvent *)event {
172172 [[NSNotificationCenter defaultCenter ] postNotificationName: kJJMessageContactNotify
173173 object: @{
174174 @" type" :@" contact_deleted" ,
175- @" reason" :[friendEvent eventDescription ],
175+ @" reason" :[friendEvent eventDescription ] ?: @" " ,
176176 @" fromUsername" :[friendEvent getFromUser ].username ,
177177 @" fromUserAppKey" :user.appKey }];
178178 }
0 commit comments