Add hidden MAM setting and trigger MAM retrievel when opening new window
Only when we start the conversation. Not yet when we get messaged and a new window is opened. Need to have sorting of messages in the window buffer then, I guess. Also MAM IQ should only be send one time in such a case. If MAM is enabled history from sql backend will not be shown. `mam` in profrc enables experimental MAM. Can change soon again. Don't rely on stuff in this stage ;)
This commit is contained in:
@@ -1799,6 +1799,7 @@ _get_group(preference_t pref)
|
||||
case PREF_REVEAL_OS:
|
||||
case PREF_TLS_CERTPATH:
|
||||
case PREF_CORRECTION_ALLOW:
|
||||
case PREF_MAM:
|
||||
return PREF_GROUP_CONNECTION;
|
||||
case PREF_OTR_LOG:
|
||||
case PREF_OTR_POLICY:
|
||||
@@ -2070,6 +2071,8 @@ _get_key(preference_t pref)
|
||||
return "avatar.cmd";
|
||||
case PREF_SLASH_GUARD:
|
||||
return "slashguard";
|
||||
case PREF_MAM:
|
||||
return "mam";
|
||||
default:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@@ -170,6 +170,7 @@ typedef enum {
|
||||
PREF_HISTORY_COLOR_MUC,
|
||||
PREF_AVATAR_CMD,
|
||||
PREF_SLASH_GUARD,
|
||||
PREF_MAM,
|
||||
} preference_t;
|
||||
|
||||
typedef struct prof_alias_t {
|
||||
|
||||
Reference in New Issue
Block a user