[Adium-commits] adium 1975:309533fb315c: When a file transfer request needs atte...

adium-commits at adiumx.com adium-commits at adiumx.com
Sat Apr 25 20:44:20 UTC 2009


details:	http://hg.adiumx.com/adium/rev/309533fb315c
revision:	1975:309533fb315c
author:		Zachary West <zacw at adiumx.com>
date:		Sat Apr 25 16:44:14 2009 -0400

When a file transfer request needs attention, increment the unviewed content count. I was losing these pretty regularly.

diffstat:

 ChangeLogs/Changes.txt                         |  1 +
 Source/ESFileTransferRequestPromptController.m |  3 +++
 2 files changed, 4 insertions(+), 0 deletions(-)

diffs (24 lines):

diff -r 6158b743c19c -r 309533fb315c ChangeLogs/Changes.txt
--- a/ChangeLogs/Changes.txt	Sat Apr 25 08:30:04 2009 -0700
+++ b/ChangeLogs/Changes.txt	Sat Apr 25 16:44:14 2009 -0400
@@ -100,6 +100,7 @@
  * Nudge and buzz messages now appear as events in the window instead of messages from the contact.
  * Added an option to only count mentions for group chats when badging the dock or status menu item. (#11850)
  * Fixed clicking service links with message text when the link appears in the window it would open.
+ * When a new file transfer arrives which requires confirmation, the chat's unviewed content count is increased.
 
 Accounts 
  * Fixed setting a global user icon. Previously, if you didn't have an account icon set but did set a global one, you would have no icon.
diff -r 6158b743c19c -r 309533fb315c Source/ESFileTransferRequestPromptController.m
--- a/Source/ESFileTransferRequestPromptController.m	Sat Apr 25 08:30:04 2009 -0700
+++ b/Source/ESFileTransferRequestPromptController.m	Sat Apr 25 16:44:14 2009 -0400
@@ -60,6 +60,9 @@
 		[fileTransfer setFileTransferRequestPromptController:self];
 		AILog(@"%@: Requeseting file transfer %@", self, fileTransfer);
 		[adium.contentController receiveContentObject:fileTransfer];
+		
+		// We don't want it to be a normal event, but we DO want to increment the unviewed content count.
+		[fileTransfer.chat incrementUnviewedContentCount];
 	}
 
 	return self;




More information about the commits mailing list