libpurple/protocols/mxit/protocol.c

changeset 35678
97cb9646c26f
parent 35501
602747bb4af9
child 35680
965839bfe169
--- a/libpurple/protocols/mxit/protocol.c	Thu Apr 03 03:52:31 2014 +0200
+++ b/libpurple/protocols/mxit/protocol.c	Thu Apr 03 04:20:57 2014 +0200
@@ -1545,13 +1545,12 @@
 		return;
 	}
 	else if ( msgflags & CP_MSG_TL_ENCRYPTED ) {
-		/* this is a transport-layer encrypted message. */
-		message = mxit_decrypt_message( session, message );
-		if ( !message ) {
-			/* could not be decrypted */
-			purple_serv_got_im( session->con, sender, _( "An encrypted message was received which could not be decrypted." ), PURPLE_MESSAGE_ERROR, time( NULL ) );
-			return;
-		}
+		/* This is a transport-layer encrypted message. We don't support
+		 * it anymore, because original client doesn't look like it was. */
+		purple_serv_got_im(session->con, sender,
+			_("An encrypted message was received which could not be decrypted."),
+			PURPLE_MESSAGE_ERROR, time(NULL));
+		return;
 	}
 
 	if ( msgflags & CP_MSG_NOTIFY_DELIVERY ) {

mercurial