[Telepathy-commits] [telepathy-gabble/master] Map <not-authorized/> to Send_Error_Permission_Denied

Will Thompson will.thompson at collabora.co.uk
Tue Feb 3 06:34:50 PST 2009


---
 src/message-util.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/message-util.c b/src/message-util.c
index c8c02e7..63059c1 100644
--- a/src/message-util.c
+++ b/src/message-util.c
@@ -247,6 +247,7 @@ _tp_send_error_from_error_node (LmMessageNode *error_node,
           return TP_CHANNEL_TEXT_SEND_ERROR_INVALID_CONTACT;
 
         case XMPP_ERROR_FORBIDDEN:
+        case XMPP_ERROR_NOT_AUTHORIZED:
           return TP_CHANNEL_TEXT_SEND_ERROR_PERMISSION_DENIED;
 
         case XMPP_ERROR_RESOURCE_CONSTRAINT:
-- 
1.5.6.5




More information about the telepathy-commits mailing list