aboutsummaryrefslogtreecommitdiffstats
path: root/libmatrix.c
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2015-11-02 16:19:26 +0000
committerRichard van der Hoff <richard@matrix.org>2015-11-02 16:19:26 +0000
commitc0b7ecec629c6b31cac5782c8c9b0bcdf5b62772 (patch)
treedf8b21884a076d2d16362f22b1abc9900824a522 /libmatrix.c
parenta380e96fd91837834fbd729515778656fca86566 (diff)
downloadpurple-matrix-c0b7ecec629c6b31cac5782c8c9b0bcdf5b62772.tar.gz
Reload old messages on first connection
The Pidgin UI is crappy for finding old messages, so reload them from the server on startup.
Diffstat (limited to 'libmatrix.c')
-rw-r--r--libmatrix.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libmatrix.c b/libmatrix.c
index 0e41493..ead6361 100644
--- a/libmatrix.c
+++ b/libmatrix.c
@@ -1030,6 +1030,11 @@ static void matrixprpl_init(PurplePlugin *plugin)
purple_account_option_string_new(
_("Home server URL"), PRPL_ACCOUNT_OPT_HOME_SERVER,
DEFAULT_HOME_SERVER));
+ protocol_options = g_list_append(protocol_options,
+ purple_account_option_bool_new(
+ _("On reconnect, replay recent messages from joined rooms"),
+ PRPL_ACCOUNT_OPT_REPLAY_OLD_MESSAGES, TRUE));
+
prpl_info.protocol_options = protocol_options;