From 1d7aa671eaa91f2cda2e5899a097cd9bc126a219 Mon Sep 17 00:00:00 2001 From: Morgan McMillian Date: Sat, 20 Mar 2021 06:08:00 -0700 Subject: [PATCH] fetch the users profile --- appservice.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/appservice.py b/appservice.py index a0d4ca2..8c14bb9 100644 --- a/appservice.py +++ b/appservice.py @@ -150,6 +150,7 @@ def new_message(event, user): prefix = "" else: token = app.config['MATRIX_PNUT_TOKEN'] + matrix_profile = get_profile(event['user_id']) if "displayname" in matrix_profile: prefix = "[" + matrix_profile['displayname'] + "] (" + event['user_id'] + ")\n" else: @@ -626,6 +627,7 @@ def on_direct_message(event, user, room): prefix = "" else: token = app.config['MATRIX_PNUT_TOKEN'] + matrix_profile = get_profile(event['user_id']) if "displayname" in matrix_profile: prefix = "[" + matrix_profile['displayname'] + "] (" + event['user_id'] + ")\n" else: