Ability to bump post-midnight chats to the previous day?

An instant messenger which can connect to AIM, GTalk, Jabber, ICQ, and more.
Post Reply
CaptainValor
Harmless
Posts: 7
Joined: Mon Jan 08, 2007 8:16 pm

Ability to bump post-midnight chats to the previous day?

Post by CaptainValor »

I don't know if Adium has this feature currently, but is there a way to set the logging so that if one starts a chat say at 10 PM on a Friday, and the chat runs past midnight into Saturday, the chat is still saved under Friday? Ideally, one could to set a "cutoff" time (say, 4 AM) after which the chat is saved on that same day, but chats started before then are saved under the previous day. The default for this could be midnight, so no change would occur unless the user wished.

I'm requesting this because I tend to consider a "day" all the time before I go to sleep at night. This creates more consistency since all my chats between two sleeping sessions are kept together. I would love for Adium to have this ability. Thanks! :D
User avatar
djmori
Mocha
Posts: 522
Joined: Sun Dec 05, 2004 2:08 am
Location: Bogota, Colombia
Contact:

Re: Ability to bump post-midnight chats to the previous day?

Post by djmori »

CaptainValor wrote:I don't know if Adium has this feature currently, but is there a way to set the logging so that if one starts a chat say at 10 PM on a Friday, and the chat runs past midnight into Saturday, the chat is still saved under Friday? Ideally, one could to set a "cutoff" time (say, 4 AM) after which the chat is saved on that same day, but chats started before then are saved under the previous day. The default for this could be midnight, so no change would occur unless the user wished.

I'm requesting this because I tend to consider a "day" all the time before I go to sleep at night. This creates more consistency since all my chats between two sleeping sessions are kept together. I would love for Adium to have this ability. Thanks! :D
are you using 1.0Beta or 0.89.1???
In the beta, Every conversation is stored under one single log with the start time, no matter if you talk the hole night trough (no other log is created at 12AM).
CaptainValor
Harmless
Posts: 7
Joined: Mon Jan 08, 2007 8:16 pm

Post by CaptainValor »

Yes, but in the special case where a new conversation starts after 12 AM, I'd like for it to still be listed under the previous day.

I'm using the latest Beta build.
LuxuryChair
Frappa
Posts: 242
Joined: Wed Jul 06, 2005 1:51 am
Location: La Crescenta, CA
Contact:

Post by LuxuryChair »

I see, something like a dropdown in the advanced preferences under logging that says:

"New day starts at:" {midnight, 3AM, 6AM, 8AM}?
Image
CaptainValor
Harmless
Posts: 7
Joined: Mon Jan 08, 2007 8:16 pm

Post by CaptainValor »

Yes! Exactly. :grin:
User avatar
Catfish_Man
Cocoaforge Admin
Posts: 1203
Joined: Thu Dec 02, 2004 6:30 am
Location: Portland, Oregon
Contact:

Post by Catfish_Man »

I would not burn preferences space on something like this, but one sneaky cool thing that might be possible would be to read iCal's preference for this. I'd argue that if your day in one app starts at 4, it probably does in others. Thoughts?
User avatar
bgannin
Growl Team
Posts: 1817
Joined: Thu Dec 02, 2004 8:11 am
Location: ..here
Contact:

Post by bgannin »

Catfish_Man wrote:I would not burn preferences space on something like this, but one sneaky cool thing that might be possible would be to read iCal's preference for this. I'd argue that if your day in one app starts at 4, it probably does in others. Thoughts?
I agree, but devil's advocate leads me to 2 challenges:
- folks who use another app exclusively [like Entourage]
- folks who never use/configure iCal (can also be a part of the former as well)
Try my software!

#define ADIUMX pimp //by me
#define QUESTION ((2b) || (!2b))
Have you hugged a programmer today?
LuxuryChair
Frappa
Posts: 242
Joined: Wed Jul 06, 2005 1:51 am
Location: La Crescenta, CA
Contact:

Post by LuxuryChair »

bgannin wrote:I agree, but devil's advocate leads me to 2 challenges:
- folks who use another app exclusively [like Entourage]
- folks who never use/configure iCal (can also be a part of the former as well)
I'm not remembering what it is but I remember even some Apple apps working in a way similar to this. I think setting your default mail program in safari?

In any case, I think that the people who fall into those categories will either not care about the time cut off or come here (or the online help) to ask the question of how. The vast majority of people use it on midnight, I would think. I've seen few requests for it, at least. (heh, though I would probably change the setting on mine if I knew it was possible, so maybe better communication to the user that such a change is possible would be nice - but how?)
Image
User avatar
evands
Cocoaforge Admin
Posts: 3152
Joined: Thu Dec 02, 2004 10:55 pm
Location: Decatur, GA
Contact:

Post by evands »

That would mirror how we determine the first day of the week... :)

Code: Select all

- (int)daysSinceStartOfWeekGivenToday:(NSCalendarDate *)today
{
	int todayDayOfWeek = [today dayOfWeek];

	//Try to look at the iCal preferences if possible
	if (!iCalFirstDayOfWeekDetermined) {
		CFPropertyListRef iCalFirstDayOfWeek = CFPreferencesCopyAppValue(CFSTR("first day of week"),CFSTR("com.apple.iCal"));
		if (iCalFirstDayOfWeek) {
			//This should return a CFNumberRef... we're using another app's prefs, so make sure.
			if (CFGetTypeID(iCalFirstDayOfWeek) == CFNumberGetTypeID()) {
				firstDayOfWeek = [(NSNumber *)iCalFirstDayOfWeek intValue];
			}

			CFRelease(iCalFirstDayOfWeek);
		}

		//Don't check again
		iCalFirstDayOfWeekDetermined = YES;
	}

	return ((todayDayOfWeek >= firstDayOfWeek) ? (todayDayOfWeek - firstDayOfWeek) : ((todayDayOfWeek + 7) - firstDayOfWeek));
}
The duck still burns.
--
My company: Saltatory Software. Check it out :)
CaptainValor
Harmless
Posts: 7
Joined: Mon Jan 08, 2007 8:16 pm

Post by CaptainValor »

Well, I understand very few people would use this feature. But apparently it wouldn't be terribly hard to implement code-wise, and it would certainly make the few of us who would use it very pleased. :)
Post Reply