Skip to content

Commit

Permalink
join by self notification fix
Browse files Browse the repository at this point in the history
  • Loading branch information
overtake committed Apr 8, 2016
1 parent 8118860 commit 17a1c6e
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -291,5 +291,37 @@
landmarkType = "5">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "TelegramTest/DialogsManager.m"
timestampString = "481817803.406222"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "528"
endingLineNumber = "528"
landmarkName = "-setTopMessageToDialog:"
landmarkType = "5">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "TelegramTest/CommonMediaHistoryFilter.m"
timestampString = "481818233.236518"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "19"
endingLineNumber = "19"
landmarkName = "-init"
landmarkType = "5">
</BreakpointContent>
</BreakpointProxy>
</Breakpoints>
</Bucket>
8 changes: 8 additions & 0 deletions TelegramTest/CommonMediaHistoryFilter.m
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@
@implementation CommonMediaHistoryFilter


-(instancetype)init {
if(self = [super init]) {

}

return self;
}

-(void)remoteRequest:(BOOL)next max_id:(int)max_id hole:(TGMessageHole *)hole callback:(void (^)(id response,ChatHistoryState state))callback {

int maxDate = next ? self.minDate : INT32_MAX;
Expand Down
2 changes: 1 addition & 1 deletion TelegramTest/MessagesBottomView.m
Original file line number Diff line number Diff line change
Expand Up @@ -1109,7 +1109,7 @@ - (TMView *)secretInfoView {


if(response.updates.count == 0) {
TL_localMessage *msg = [TL_localMessageService createWithFlags:TGMENTIONMESSAGE n_id:0 from_id:[UsersManager currentUserId] to_id:weakSelf.dialog.peer reply_to_msg_id:0 date:[[MTNetwork instance] getTime] action:([TL_messageActionChatAddUser createWithUsers:[@[@([UsersManager currentUserId])] mutableCopy]]) fakeId:[MessageSender getFakeMessageId] randomId:rand_long() dstate:DeliveryStateNormal];
TL_localMessage *msg = [TL_localMessageService createWithFlags:TGMENTIONMESSAGE | (1 << 14) n_id:[MessageSender getFakeMessageId] from_id:[UsersManager currentUserId] to_id:weakSelf.dialog.peer reply_to_msg_id:0 date:[[MTNetwork instance] getTime] action:([TL_messageActionChatAddUser createWithUsers:[@[@([UsersManager currentUserId])] mutableCopy]]) fakeId:[MessageSender getFakeMessageId] randomId:rand_long() dstate:DeliveryStateNormal];

[MessagesManager addAndUpdateMessage:msg];
}
Expand Down
2 changes: 1 addition & 1 deletion TelegramTest/Telegraph-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>44777</string>
<string>44779</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.social-networking</string>
<key>LSMinimumSystemVersion</key>
Expand Down
2 changes: 1 addition & 1 deletion TelegramTest/Telegraph-Prefix.pch
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@


#ifdef TGDEBUG
#define ACCEPT_FEATURE ([@[@"vihor",@"Marvin",@"Ricdallaglio",@"Victor",@"Jdkdkdkdmdmdmx",@"dmitry",@"peter",@"Zlomch",@"MarcoK",@"VitocoEP",@"zinoviev",@"ecstasy",@"Gerardo",@"kondratyevdev",@"Markus",@"Telegrafm",@"doublespb",@"izhukov",@"requilence"] indexOfObject:[UsersManager currentUser].username] != NSNotFound)
#define ACCEPT_FEATURE ([@[@"vihor",@"Marvin",@"Ricdallaglio",@"Victor",@"Jdkdkdkdmdmdmx",@"dmitry",@"peter",@"Zlomch",@"MarcoK",@"VitocoEP",@"zinoviev",@"ecstasy",@"Gerardo",@"kondratyevdev",@"Markus",@"Telegrafm",@"doublespb",@"izhukov",@"requilence",@"nadymov"] indexOfObject:[UsersManager currentUser].username] != NSNotFound)
#else
#define ACCEPT_FEATURE YES
#endif
Expand Down

0 comments on commit 17a1c6e

Please sign in to comment.