about summary refs log tree commit diff stats
path: root/src/otr/otrlibv3.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/otr/otrlibv3.c')
-rw-r--r--src/otr/otrlibv3.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/otr/otrlibv3.c b/src/otr/otrlibv3.c
index 76061c5d..a2e31b1c 100644
--- a/src/otr/otrlibv3.c
+++ b/src/otr/otrlibv3.c
@@ -117,7 +117,7 @@ otrlib_handle_tlvs(OtrlUserState user_state, OtrlMessageAppOps *ops, ConnContext
             otrl_message_abort_smp(user_state, ops, NULL, context);
         } else {
             // [get secret from user and continue SMP];
-            cons_debug("%s initiated SMP with secret", context->username);
+            ui_smp_recipient_initiated(context->username);
             g_hash_table_insert(smp_initiators, strdup(context->username), strdup(context->username));
         }
     }
@@ -140,9 +140,9 @@ otrlib_handle_tlvs(OtrlUserState user_state, OtrlMessageAppOps *ops, ConnContext
             context->smstate->nextExpected = OTRL_SMP_EXPECT1;
             // Report result to user
             if ((context->active_fingerprint->trust != NULL) && (context->active_fingerprint->trust[0] != '\0')) {
-                cons_debug("SMP SUCCESSFUL");
+                ui_smp_successful_sender(context->username);
             } else {
-                cons_debug("SMP UNSUCCESSFUL");
+                ui_smp_unsuccessful_sender(context->username);
             }
         }
     }
@@ -155,9 +155,9 @@ otrlib_handle_tlvs(OtrlUserState user_state, OtrlMessageAppOps *ops, ConnContext
             context->smstate->nextExpected = OTRL_SMP_EXPECT1;
             // Report result to user
             if ((context->active_fingerprint->trust != NULL) && (context->active_fingerprint->trust[0] != '\0')) {
-                cons_debug("SMP SUCCESSFUL");
+                ui_smp_successful_receiver(context->username);
             } else {
-                cons_debug("SMP UNSUCCESSFUL");
+                ui_smp_unsuccessful_receiver(context->username);
             }
         }
     }
@@ -166,6 +166,6 @@ otrlib_handle_tlvs(OtrlUserState user_state, OtrlMessageAppOps *ops, ConnContext
         // The message we are waiting for will not arrive, so reset
         // and prepare for the next SMP
         context->smstate->nextExpected = OTRL_SMP_EXPECT1;
-        cons_debug("SMP ABORTED");
+        ui_smp_aborted(context->username);
     }
 }
\ No newline at end of file