File tree Expand file tree Collapse file tree 1 file changed +17
-3
lines changed
c-sharp-chat/PubnubChatApi/PubnubChatApi/Entities Expand file tree Collapse file tree 1 file changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -647,13 +647,27 @@ public async void Join(ChatMembershipData? membershipData = null)
647
647
if ( membershipData == null )
648
648
{
649
649
connectionHandle =
650
- await SetListening ( connectionHandle , true , ( ) => pn_channel_join ( pointer , string . Empty ) ) ;
650
+ await SetListening ( connectionHandle , true , ( ) =>
651
+ {
652
+ Console . WriteLine ( "ABOUT TO C_ABI JOIN" ) ;
653
+ Console . WriteLine ( pointer ) ;
654
+ var ptr = pn_channel_join ( pointer , string . Empty ) ;
655
+ Console . WriteLine ( "C_ABI JOINED" ) ;
656
+ return ptr ;
657
+ } ) ;
651
658
}
652
659
else
653
660
{
654
661
connectionHandle = await SetListening ( connectionHandle , true ,
655
- ( ) => pn_channel_join_with_membership_data ( pointer , membershipData . CustomDataJson ,
656
- membershipData . Type , membershipData . Status ) ) ;
662
+ ( ) =>
663
+ {
664
+ Console . WriteLine ( "ABOUT TO C_ABI JOIN WITH MEM. DATA" ) ;
665
+ Console . WriteLine ( pointer ) ;
666
+ var ptr = pn_channel_join_with_membership_data ( pointer , membershipData . CustomDataJson ,
667
+ membershipData . Type , membershipData . Status ) ;
668
+ Console . WriteLine ( "C_ABI JOINED WITH MEM. DATA" ) ;
669
+ return ptr ;
670
+ } ) ;
657
671
}
658
672
}
659
673
You can’t perform that action at this time.
0 commit comments