static void
ring_text_manager_receive_status_report(RingTextManager *self,
		  char const *destination,
		  char const *token,
		  gboolean const *success)
{
  RingTextManagerPrivate *priv = self->priv;
  RingTextChannel *channel;

  if (priv->cstatus != TP_CONNECTION_STATUS_CONNECTED) {
    /* Uh-oh */
    DEBUG("not yet connected, ignoring");
    return;
  }

  channel = get_text_channel(self, destination, 0, 0);

  if (channel)
    ring_text_channel_receive_status_report(channel, token, success);
}
static void
ring_text_manager_receive_status_report(RingTextManager *self,
  SMSGStatusReport *status_report)
{
  RingTextManagerPrivate *priv = self->priv;
  RingTextChannel *channel;

  char const *recipient = sms_g_status_report_get_recipient(status_report);

  DEBUG("SMS-STATUS_REPORT for %s", recipient);

  if (priv->cstatus != TP_CONNECTION_STATUS_CONNECTED) {
    /* Uh-oh */
    DEBUG("not yet connected, ignoring");
    return;
  }

  channel = get_text_channel(self, recipient, 0, 0);

  if (channel)
    ring_text_channel_receive_status_report(channel, status_report);
}