diff --git a/CHANGES.md b/CHANGES.md
index 62bd92006e..d18a18e1c3 100644
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -8,6 +8,7 @@ Features β¨:
- Store encrypted file in cache and cleanup decrypted file at each app start (#2512)
- Emoji Keyboard (#2520)
- Social login (#2452)
+ - Support for chat effects in timeline (confetti, snow) (#2535)
Improvements π:
- Add Setting Item to Change PIN (#2462)
diff --git a/build.gradle b/build.gradle
index 6dd61a720c..7531dee61e 100644
--- a/build.gradle
+++ b/build.gradle
@@ -43,6 +43,10 @@ allprojects {
includeGroupByRegex 'com\\.github\\.chrisbanes'
// PFLockScreen-Android
includeGroupByRegex 'com\\.github\\.vector-im'
+
+ //Chat effects
+ includeGroupByRegex 'com\\.github\\.jetradarmobile'
+ includeGroupByRegex 'nl\\.dionsegijn'
}
}
maven {
diff --git a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/api/session/room/model/message/MessageType.kt b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/api/session/room/model/message/MessageType.kt
index 0f133323b0..a2b4e135d1 100644
--- a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/api/session/room/model/message/MessageType.kt
+++ b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/api/session/room/model/message/MessageType.kt
@@ -33,4 +33,7 @@ object MessageType {
// Add, in local, a fake message type in order to StickerMessage can inherit Message class
// Because sticker isn't a message type but a event type without msgtype field
const val MSGTYPE_STICKER_LOCAL = "org.matrix.android.sdk.sticker"
+
+ const val MSGTYPE_CONFETTI = "nic.custom.confetti"
+ const val MSGTYPE_SNOW = "nic.custom.snow"
}
diff --git a/vector/build.gradle b/vector/build.gradle
index 28d8fe5c1b..7bb8ca187c 100644
--- a/vector/build.gradle
+++ b/vector/build.gradle
@@ -410,6 +410,9 @@ dependencies {
// Badge for compatibility
implementation 'me.leolin:ShortcutBadger:1.1.22@aar'
+ // Chat effects
+ implementation 'nl.dionsegijn:konfetti:1.2.5'
+ implementation 'com.github.jetradarmobile:android-snowfall:1.2.0'
// DI
implementation "com.google.dagger:dagger:$daggerVersion"
kapt "com.google.dagger:dagger-compiler:$daggerVersion"
diff --git a/vector/src/main/assets/open_source_licenses.html b/vector/src/main/assets/open_source_licenses.html
index acf0bec14f..bf341e38b7 100755
--- a/vector/src/main/assets/open_source_licenses.html
+++ b/vector/src/main/assets/open_source_licenses.html
@@ -390,6 +390,11 @@ SOFTWARE.
Copyright (C) 2016 - Niklas Baudy, Ruben Gees, Mario ΔaniΔ and contributors
+
Apache License @@ -576,5 +581,14 @@ Apache License+
+ ISC License +