Meghan Markle was noticeably absent when Prince Harry and Queen Elizabeth II hosted President Trump and first lady Melania for lunch at the palace during a recent state visit — but it was nothing personal.

According to British royal expert and author Katie Nicholl, a source close to the Duchess of Sussex insists the media got it all wrong.

MEGHAN MARKLE, PRINCE HARRY MEET YANKEES AND RED SOX AT FIRST MLB IN LONDON

“Had Meghan not been on maternity leave, she would have been there alongside Harry,” claimed the source, Nicholl told Vanity Fair. “There was no snub, this wasn’t personal. She would never let personal feelings come in the way of duty.”

Prince Harry, Duke of Sussex and Meghan, Duchess of Sussex ride by carriage down the Mall during Trooping The Colour on June 8, 2019 in London. (Photo by Samir Hussein/Samir Hussein/WireImage)

Prince Harry, Duke of Sussex and Meghan, Duchess of Sussex ride by carriage down the Mall during Trooping The Colour on June 8, 2019 in London. (Photo by Samir Hussein/Samir Hussein/WireImage)

During the Trumps’ visit in early June, Harry, 34, attended the official functions while his wife stayed out of the picture. This quickly led to speculation she had intentionally avoided the U.S. president, who called her “nasty” for having once labeled him “misogynistic” and “divisive.”

However, the source told Nicholl the 37-year-old was still recovering after giving birth to her firstborn, Archie Harrison Mountbatten-Windsor, on May 6. While Markle made an appearance at Trooping the Colour and, more recently, at the London Stadium for the first Major League Baseball game played in Europe, she won’t go back to work full-time until later in the year.

And one person who is impressed by Markle's work drive is Harry’s grandmother, the queen of England.

MEGHAN MARKLE, PRINCE HARRY AND ARCHIE WILL TOUR AFRICA IN THE FALL 'AS A FAMILY'

President Trump, left and Queen Elizabeth II toast, during the State Banquet at Buckingham Palace, in London, June 3, 2019. (Dominic Lipinski/Pool Photo via AP)

President Trump, left and Queen Elizabeth II toast, during the State Banquet at Buckingham Palace, in London, June 3, 2019. (Dominic Lipinski/Pool Photo via AP)

“The queen has been astonished and very impressed by Meghan’s work drive,” a royal source told Nicholl. “There’s a feeling that Meghan likes to be busy and must be kept busy. She’s very driven."

In June, Trump sat down with Piers Morgan for ITV’s “Good Morning Britain” and clarified controversial comments concerning the former American actress.

Trump said he wasn't calling Markle nasty but rather was just surprised to hear her comments about him, including her assertion that if he became president it would force Americans to relocate to Canada.

"I wasn’t referring to 'she’s nasty.' I said she was nasty about me. And essentially I didn’t know she was nasty about me," Trump told Morgan in the interview.

President Trump and Britain's Prince Charles outside Winfield House, the residence of the Ambassador of the United States of America to the U.K., in Regent's Park, London, on June 4, 2019. (AP Photo/Alastair Grant)

President Trump and Britain's Prince Charles outside Winfield House, the residence of the Ambassador of the United States of America to the U.K., in Regent's Park, London, on June 4, 2019. (AP Photo/Alastair Grant)

In an interview with President Trump, a reporter for U.K.’s The Sun read aloud to him comments from a 2016 interview in which Markle accused him of being “misogynistic” and “divisive” during his 2016 presidential campaign.

“I’m voting for Hillary Clinton, not because she is a woman, but because Trump has made it easy to see that you don’t really want that kind of world that he’s painting,” Markle said in an interview on "The Nightly Show with Larry Wilmore" while promoting her television series, "Suits."

“I didn’t know that," Trump said of her comments when asked about them, The Sun reported. "What can I say? I didn’t know that she was nasty."

TRUMP OPENS UP ON REPORTED 'NASTY' COMMENT ABOUT MEGHAN MARKLE

President Trump and first lady Melania Trump greet Britain's Prince Charles and Camilla, the Duchess of Cornwall, outside Winfield House, the residence of the Ambassador of the United States of America to the UK, in Regent's Park, London, on June 4, 2019. (Chris Jackson/Pool Photo via AP)

President Trump and first lady Melania Trump greet Britain's Prince Charles and Camilla, the Duchess of Cornwall, outside Winfield House, the residence of the Ambassador of the United States of America to the UK, in Regent's Park, London, on June 4, 2019. (Chris Jackson/Pool Photo via AP)

MEGHAN MARKLE TO SKIP LUNCH WITH PRINCE HARRY, TRUMP AND QUEEN ELIZABETH DURING STATE VISIT

The president and first lady visited Britain on a three-day trip with Elizabeth, 93, hosting the two at Buckingham Palace. Trump and Melania, 49, toured the Churchill War Rooms and had dinner with Charles, 70, and his wife Camilla, Duchess of Cornwall, 71.

Despite Markle's absence, Trump insisted that there was no tension between him and her husband Harry.

Britain's Prince Harry, Duke of Sussex (R), and his wife Meghan, Duchess of Sussex, pose for a photo with their newborn baby son in St George's Hall at Windsor Castle in Windsor, west of London on May 8, 2019. (Photo by Dominic Lipinski / POOL / AFP) (Photo credit should read DOMINIC LIPINSKI/AFP/Getty Images)

Meghan Markle and Prince Harry greet the press as they debut Baby Sussex. The couple met reporters at Windsor Castle, where they also met with Queen Elizabeth II and Prince Philip, Duke of Edinburgh. (Getty)

"I congratulated him and I think he’s a terrific guy," Trump told ITV. "The royal family is really nice."

"In fact, he spent a lot of time talking to [my daughter] Ivanka and talking to my family. I went up — he couldn’t have been nicer."

Trump went on to praise Markle, saying: “You know what? She’s doing a good job, I hope she enjoys her life. ... I think she’s very nice.”

Fox News' Vandana Rambaran contributed to this report.