Page MenuHomePhabricator

[lib] introduced shimUnsupportedMessageInfo function to reaction message spec
ClosedPublic

Authored by ginsu on Nov 28 2022, 3:54 PM.
Tags
None
Referenced Files
F2017661: D5746.id18900.diff
Sat, Jun 15, 3:51 PM
Unknown Object (File)
Fri, Jun 14, 5:30 AM
Unknown Object (File)
Tue, Jun 11, 11:42 PM
Unknown Object (File)
Thu, May 30, 1:51 PM
Unknown Object (File)
Sun, May 26, 8:39 PM
Unknown Object (File)
Sun, May 19, 3:20 PM
Unknown Object (File)
Sun, May 19, 3:20 PM
Unknown Object (File)
Sun, May 19, 3:20 PM
Subscribers

Details

Summary

introduced shimUnsupportedMessageInfo function in reaction message spec. shimUnsupportedMessageInfo checks if the user is below the min code version which supports reactions and if that is the case returns an unsupported message info. The robotext for this unsupported message info is "user sent a reaction".

Before landing this diff I will go back and change the minCodeVersion to be accurate to where we currently are


Depends on D5690
Linear Task: ENG-2245

Test Plan

Please see the screenshots below to see what happens when the reaction message is "unsupported"

What it looks like on the app

Screenshot 2022-11-28 at 11.24.26 AM.png (1×1 px, 826 KB)

The messageInfo object

Screenshot 2022-11-28 at 11.25.24 AM.png (568×846 px, 262 KB)

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

ginsu requested review of this revision.Nov 28 2022, 4:08 PM
atul retitled this revision from [lib] introduced shimUnsupportedMessageInfo functino to reaction message spec to [lib] introduced shimUnsupportedMessageInfo function to reaction message spec.Nov 28 2022, 4:09 PM
This revision is now accepted and ready to land.Nov 28 2022, 4:21 PM

Before landing this diff I will go back and change the minCodeVersion to be accurate to where we currently are

Will create a separate diff today/tomorrow to address this

In D5746#176062, @ginsu wrote:

Before landing this diff I will go back and change the minCodeVersion to be accurate to where we currently are

Will create a separate diff today/tomorrow to address this

It is usually better to wait with setting the version to just before the release. Even if we set the current version now, we might decide later to release a new bugfix and we would have to remember about updating this again to avoid releasing the feature by mistake.