Sorry, long rant coming up, but I don't want to be accused of AIBU by stealth (this is my first post in AIBU so be gentle!).
I've been working on a project for three months for one person (call her A), and the head of the organisation (call him C) had already said back in February that he was going to take me off it in April and move me to something else - mildly annoying, but not a major problem. This week I finally admitted to C that I'm pregnant (I was running out of time if I want to take maternity leave as am 23 weeks now). I hadn't wanted him to know sooner because I'd had a previous triploid pregnancy that ended at 18 weeks, and I've never been so grateful for anything as I was that I hadn't got round to telling him about that: I took a couple of days' leave for the hospital stay and he never knew (though A did know because I was working on something else for her at the time and I'd told her at 12 weeks).
I said I wanted to keep it as quiet as possible in the organisation as a whole for as long as I could, because it's still very male-dominated and there are some pretty appalling attitudes about. He was fine with that and agreed not to tell anyone who didn't need to know: we talked about what would be sensible for me to do work-wise over the next three months, at which point he suggested leaving me on this project after all and slotting someone else in in the summer when I start my leave. Which left me in a bit of a moral quandary re A - I liked and respected her and we'd worked well together for 18 months on various things, and I knew she'd be furious if I worked on this thing for another three months and then disappeared and she had to get someone new in and get them up to speed at just the point when things are likely to kick off. So I said that that would be nice for me but perhaps not so good for the project, but didn't pursue it further with C because I thought that might be counter-productive (he can be quite difficult to deal with).
After a bit of soul-searching, decided to tell A in strict confidence about the pregnancy and explain that she might want to talk to C and sort out someone new now. So she did, as I expected, and he's agreed to find someone to replace me by the end of next week. Never expected anything much in the way of sympathy or support from her: she doesn't have children of her own and it's not her thing. But (a) she didn't even bother to thank me for the tip-off, and (b) I got a call from her this morning saying she didn't think there was any point in her continuing as my line manager since I'm off this project - basically she couldn't even wait a decent interval, till she got another team member, to get rid of me. So I'm trying to console myself with having done the honourable thing, but it's slightly thin consolation in the circumstances.
If you've got to the end of that rant, AIBU to be a bit annoyed with her? (I'm also now feeling really depressed about my prospects in this job, but I'm the breadwinner and it would be almost impossible for me to move at the moment.)