Skip to content

Instantly share code, notes, and snippets.

@arlolra
Created June 15, 2015 22:49
Show Gist options
  • Save arlolra/fed583ea9567690c8d29 to your computer and use it in GitHub Desktop.
Save arlolra/fed583ea9567690c8d29 to your computer and use it in GitHub Desktop.
diff --git a/src/context.c b/src/context.c
index 44d8b86..b0669f5 100644
--- a/src/context.c
+++ b/src/context.c
@@ -449,7 +449,7 @@ void otrl_context_forget_fingerprint(Fingerprint *fprint,
otrl_context_forget(context);
}
} else {
- if (context->msgstate != OTRL_MSGSTATE_PLAINTEXT ||
+ if (context->msgstate != OTRL_MSGSTATE_ENCRYPTED ||
context->active_fingerprint != fprint) {
free(fprint->fingerprint);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment