Fix messages never being notified from servers without MAM (#432)
* Comment a return that stop every notifications to be trigger when an account is not synced * Do a correct check if MAM capability is available for the message to notify
This commit is contained in:
parent
ab7cd67851
commit
4ad07fea47
|
@ -44,7 +44,8 @@ public class NotificationEvents : StreamInteractionModule, Object {
|
|||
}
|
||||
|
||||
private void on_message_received(Entities.Message message, Conversation conversation) {
|
||||
if (!synced_accounts.contains(conversation.account)) {
|
||||
bool is_mam_message = Xep.MessageArchiveManagement.MessageFlag.get_flag(message.stanza) != null;
|
||||
if (!synced_accounts.contains(conversation.account) && is_mam_message) {
|
||||
if (!mam_potential_new.has_key(conversation.account)) {
|
||||
mam_potential_new[conversation.account] = new HashMap<Conversation, Entities.Message>(Conversation.hash_func, Conversation.equals_func);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue