Skip to content
This repository has been archived by the owner on Jan 24, 2022. It is now read-only.

Commit

Permalink
[relay] why wasn't i just using otherPerson???
Browse files Browse the repository at this point in the history
  • Loading branch information
kirb committed Jun 12, 2017
1 parent aeafbac commit 2ae26e2
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions relay/IMAgentRelay.x
Original file line number Diff line number Diff line change
Expand Up @@ -80,17 +80,15 @@ void HBTSPostMessage(HBTSMessageType type, NSString *name, BOOL isTyping) {
%orig;

IMFileTransfer *transfer = [self transferForGUID:transferGUID];

HBTSPostMessage(HBTSMessageTypeSendingFile, [[%c(IMDMessageStore) sharedInstance] messageWithGUID:transfer.messageGUID].handle, NO);
HBTSPostMessage(HBTSMessageTypeSendingFile, transfer.otherPerson, NO);
}

- (void)updateTransfer:(NSString *)transferGUID currentBytes:(unsigned long long)currentBytes totalBytes:(unsigned long long)totalBytes {
- (void)updateTransfer:(NSString *)transferGUID currentBytes:(size_t)currentBytes totalBytes:(size_t)totalBytes {
%orig;

IMFileTransfer *transfer = [self transferForGUID:transferGUID];

if (currentBytes >= totalBytes) {
HBTSPostMessage(HBTSMessageTypeTypingEnded, [[%c(IMDMessageStore) sharedInstance] messageWithGUID:transfer.messageGUID].handle, NO);
IMFileTransfer *transfer = [self transferForGUID:transferGUID];
HBTSPostMessage(HBTSMessageTypeTypingEnded, transfer.otherPerson, NO);
}
}

Expand Down

0 comments on commit 2ae26e2

Please sign in to comment.