Merge branch 'room-fix-last-message-encrypted-list' into 'master'
[Room] Fix last message when encrypted See merge request famedly/famedlysdk!223
This commit is contained in:
		
						commit
						0ca36473fa
					
				|  | @ -181,6 +181,12 @@ class Room { | |||
|           "/clients/${client.deviceID}/rooms/${this.id}/session_keys", | ||||
|           json.encode(sessionKeys)); | ||||
|     } | ||||
|     if (getState("m.room.encrypted") != null) { | ||||
|       final Event decrypted = getState("m.room.encrypted").decrypted; | ||||
|       if (decrypted.type != EventTypes.Encrypted) { | ||||
|         setState(decrypted); | ||||
|       } | ||||
|     } | ||||
|     onSessionKeyReceived.add(sessionId); | ||||
|   } | ||||
| 
 | ||||
|  | @ -210,6 +216,10 @@ class Room { | |||
|         clearOutboundGroupSession(); | ||||
|       } | ||||
|     } | ||||
|     if ((getState(state.typeKey)?.time?.millisecondsSinceEpoch ?? 0) > | ||||
|         state.time.millisecondsSinceEpoch) { | ||||
|       return; | ||||
|     } | ||||
|     if (!states.states.containsKey(state.typeKey)) { | ||||
|       states.states[state.typeKey] = {}; | ||||
|     } | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue